ESSENTIAL HTML TAGS YOU SHOULD KNOW
![]() |
Tag |
The standard language used to build and design web pages is called HTML, or Hypertext Markup Language. It is made up of different tags, each of which has a distinct function in organizing and formatting content. The following fundamental HTML tags are frequently used in web development:
1. <!DOCTYPE>: Specifies the type of document and HTML version being utilized.
2. <html>: An HTML document's root element, which holds all other elements.
3. <head>: Includes meta-data about the document, including links to external sites, character encoding, and title.
4. <title>: Determines the webpage's title, which shows up in the tab or title bar of the browser.
5. <body>: Includes all of the webpage's primary content, including text, pictures, links, and other components.
6. <h1> to <h6>: Heading components that organize the content hierarchy are arranged from most important (h1) to least important (h6).
7. <p>: Defines a paragraph of text.
8. <a>: Links one page to another, files, or other sites on the same website.
9. <img>: Adds a picture to the page with the attributes set to width, height, alternative text, and the image source.
10. <ul> and <ol>: define unordered and ordered lists, respectively, containing list items (<li>).
11. <div> and <span>: Generic container elements used for grouping and styling content, with <div> typically used for block-level elements and <span> for inline elements.
12. <br>: Insert a line break within text.
13. <hr>: Insert a horizontal rule to separate content sections.
These fundamental HTML tags serve as the foundation for web pages, giving content shown in web browsers structure, organization, and visual formatting.