All Important HTML Tags with Examples (Beginner Guide) HTML has more than 100 tags, but only a few are used in regular web development. This post explains the most commonly used HTML tags, along with simple examples, so beginners can quickly understand how they work. 1. <!DOCTYPE> Declares the document type as HTML5. <!DOCTYPE html> 2. <html> Main container of the entire webpage. <html> ... </html> 3. <head> Contains information for the browser, not visible to users. 4. <title> Defines the page title shown in browser tab. <title>My Website</title> 5. <body> Contains all visible content on the webpage. Text Formatting Tags 6. <h1> to <h6> Headings from largest (h1) to smallest (h6). <h1>Main Heading</h1> <h2>Sub Heading</h2> 7. <p> Defines a paragraph. 8. <br> Line break. 9. <b>...