HTML tags are the building blocks of web pages. Here's a guide to common tags and their usage:

Basic Structure

  • <!DOCTYPE html>: Declares the document type 📄
  • <html>: Root element of an HTML page 🏠
  • <head>: Contains meta-information 🧠
  • <body>: Holds the content visible on the page 📜

Common Tags

  • Text Content:

    • <p> for paragraphs 📖
    • <h1> to <h6> for headings 📚
    • <strong> and <em> for emphasis 📌
    • <a href="https://example.com">Link</a> for hyperlinks 🌐
  • Images:

    • <img src="https://cloud-image.ullrai.com/q/html_tags/" alt="HTML Tags">
    • Use alt attribute for accessibility 📸
  • Lists:

    • <ul> for unordered lists 🧾
    • <ol> for ordered lists 📋
    • <li> for list items 📦
  • Links & Navigation:

Tips

  • Always close tags properly ✅
  • Use semantic tags for better SEO 📈
  • Validate your HTML with W3C Validator 🧪
HTML Structure