HTML stands for Hypertext Markup Language, and it is the standard markup language used to create web pages and web applications. It provides a way to structure content on the web using a series of markup tags, which describe the content and its relationships to other elements on the page.
HTML is a simple language that is easy to learn, but it provides a powerful set of tools for creating complex web pages. It allows developers to structure content into headings, paragraphs, lists, tables, and other elements, and to add multimedia elements such as images, audio, and video.
Basic HTML Document :
<title>My First Web Page</title>
<h1>Welcome to my website</h1>
<p>This is my first web page using HTML.</p>
Welcome to my website
This is my first web page using HTML.
The <!DOCTYPE> declaration specifies the version of HTML used in the document.
- The <html> tag is the root element of the HTML document and contains all the other elements.
- The <head> tag contains metadata such as the title of the document, which is displayed in the browser’s tab or title bar.
- The <body> tag contains the content of the web page, including headings, paragraphs, links, and images.
- The <h1> tag creates a level 1 heading.
- The <p> tag creates a paragraph.
- The <a> tag creates a hyperlink, with the href attribute specifying the link destination.
This is a basic example of an HTML document, you can add more tags and elements to make your web pages more complex and interactive.
There are some HTML tags :
There are many HTML tags available, but some of the most commonly used ones include:
- <html> – The root element of an HTML document
- <head> – Contains metadata about the document, such as the title and meta tags
- <body> – Contains the content of the web page
- <h1> to <h6> – Headings of different levels
- <p> – Paragraph
- <a> – Hyperlink
- <img> – Image
- <ul> – Unordered list
- <ol> – Ordered list
- <li> – List item
- <div> – Division or section of the document
- <span> – Smaller section of text within a block of text
- <form> – Form for user input
- <input> – Input field for forms
- <label> – Label for input fields
- <select> – Drop-down menu
- <option> – Option in a drop-down menu
- <textarea> – Multi-line input field
- <button> – Clickable button
- <table> – Table
- <tr> – Table row
- <th> – Table header cell
<td> – Table data cell
These are just a few examples of HTML tags, and there are many more tags available for different purposes. As you become more familiar with HTML, you can explore the full range of tags and learn how to use them to create more complex web pages. Click here to learn more .