All tags and their uses in html(List)

 Here is a list of some common HTML tags and their uses:

  1. <html>: Defines the root element of a HTML document.
  2. <head>: Contains metadata about the document, such as the title of the page and links to stylesheets.
  3. <title>: Specifies the title of the document, which is displayed in the browser's title bar.
  4. <body>: Contains the content of the HTML document.
  5. <header>: Represents a container for introductory content or a set of navigational links.
  6. <nav>: Defines a section of a page that contains navigation links.
  7. <main>: Specifies the main content of a document.
  8. <section>: Defines a standalone section of a document, such as a chapter or appendix.
  9. <article>: Specifies independent, self-contained content, such as a blog post or forum post.
  10. <aside>: Specifies content that is tangentially related to the main content, such as a sidebar or pull quote.
  11. <h1> to <h6>: Specify headings of different levels, with <h1> being the most important and <h6> being the least important.
  12. <p>: Defines a paragraph of text.
  13. <a>: Defines a hyperlink to another web page or to a specific location on the same page.
  14. <img>: Specifies an image to be displayed on the page.
  15. <ul>: Specifies an unordered list, where each list item is marked with a bullet point.
  16. <ol>: Specifies an ordered list, where each list item is marked with a number or letter.
  17. <li>: Specifies a list item within an ordered or unordered list.
  18. <table>: Specifies a table, with rows and columns used to organize data.
  19. <tr>: Specifies a row within a table.
  20. <th>: Specifies a header cell within a table, typically used for the first row to define column headings.
  21. <td>: Specifies a data cell within a table, used to contain the actual data.
  22. <form>: Specifies a form that allows users to input data that can be submitted to a server.
  23. <input>: Specifies an input field where the user can enter data.
  24. <label>: Specifies a label for an input element.
  25. <select>: Specifies a drop-down list of options.
  26. <option>: Specifies an option within a drop-down list.
  27. <textarea>: Specifies a multi-line input field.
  28. <button>: Specifies a clickable button.

This is not an exhaustive list, but these tags should cover the majority of HTML usage for basic websites.

html tags


1 Comments

Post a Comment

Previous Post Next Post