Cover Image for HTML5 Tags
66 views

HTML5 Tags

HTML5 introduced a variety of new elements and attributes that enhance the structure and semantics of web documents. Here are some of the important HTML5 tags and elements:

  1. : HTML5 documents start with the <!DOCTYPE html> declaration, which specifies the document type and version.
  2. <html>: The root element of an HTML document that encapsulates all the content.
  3. <head>: Contains metadata about the document, such as the document title, character encoding, and linked stylesheets and scripts.
  4. <title>: Specifies the title of the document, which is displayed in the browser’s title bar or tab.
  5. <meta>: Provides metadata about the document, including character encoding, author, and description.
  6. <link>: Used to link external resources like stylesheets or icon files.
  7. <style>: Contains CSS code for styling the document.
  8. <script>: Includes JavaScript code that can be inline or reference an external script file.
  9. <base>: Specifies the base URL for relative URLs within the document.
  10. <body>: Contains the visible content of the document.
  11. <h1>, <h2>, <h3>, <h4>, <h5>, <h6>: Heading elements from highest (h1) to lowest (h6) indicating the hierarchy of headings.
  12. <p>: Represents a paragraph of text.
  13. <a>: Creates hyperlinks to other web pages or resources.
  14. <img>: Embeds images in the document.
  15. <ul>, <ol>, <li>: Elements for creating unordered and ordered lists, as well as list items.
  16. <table>, <tr>, <td>, <th>, <caption>: Tags for creating tables, table rows, table data cells, table header cells, and captions.
  17. <div>: A generic container for grouping and styling content.
  18. <span>: A generic inline container for styling content.
  19. <section>: Represents a section of a document, often used for grouping related content.
  20. <article>: Represents a self-contained composition within a document, like a news article or blog post.
  21. <header> and <footer>: Elements for defining the header and footer of a section or document.
  22. <nav>: Defines navigation menus.
  23. <aside>: Represents content that is tangentially related to the content around it, such as sidebars or advertising.
  24. <figure> and <figcaption>: Used for grouping media content (e.g., images) and their captions.
  25. <audio> and <video>: Tags for embedding audio and video content.
  26. <canvas>: Provides a drawing surface for JavaScript to create graphics.
  27. <svg>: Allows for the creation of scalable vector graphics.
  28. <form> and form elements: Used to create interactive forms for user input, including input fields, buttons, and labels.
  29. <label>: Associates a label with a form control for better user experience and accessibility.
  30. <input>: Provides various input types for forms, such as text, password, radio buttons, checkboxes, and more.
  31. <textarea>: Creates a multi-line text input area.
  32. <button>: Represents a clickable button.
  33. <select> and <option>: Elements for creating dropdown select menus.
  34. <details> and <summary>: Used to create disclosure widgets that reveal or hide content.
  35. <time>: Represents a specific period in time or a range of time.
  36. <progress>: Displays the completion progress of a task.
  37. <meter>: Represents a scalar measurement within a known range.
  38. <mark>: Highlights text within the document.
  39. <datalist>: Provides a list of predefined options for an <input> element.
  40. <output>: Represents the result of a calculation or user action.

These are just a selection of the many HTML5 tags and elements that you can use to structure and enrich your web documents. HTML5’s focus on semantics and enhanced multimedia support makes it a powerful tool for modern web development.

YOU MAY ALSO LIKE...

The Tech Thunder

The Tech Thunder

The Tech Thunder


COMMENTS