T E C h O C E A N H U B

HTML tags and elements

HTML (Hypertext Markup Language) is the standard markup language used for creating web pages. HTML uses tags and elements to structure and present the content on a web page. Here are some commonly used HTML tags and elements:

  1. <html>: Represents the root element of an HTML document.
  2. <head>: Contains metadata about the HTML document, such as the title and links to CSS stylesheets or JavaScript files.
  3. <title>: Defines the title of the document, which is displayed in the browser’s title bar or tab.
  4. <body>: Contains the visible content of the HTML document.
  5. <h1>, <h2>, <h3>, <h4>, <h5>, <h6>: Headings of different levels, with <h1> being the highest and <h6> being the lowest.
  6. <p>: Defines a paragraph.
  7. <a>: Creates a hyperlink to another webpage or a specific location within the same document.
  8. <img>: Inserts an image into the document.
  9. <ul>: Represents an unordered (bulleted) list.
  10. <ol>: Represents an ordered (numbered) list.
  11. <li>: Defines a list item within <ul> or <ol>.
  12. <table>: Defines a table.
  13. <tr>: Defines a table row.
  14. <td>: Defines a table cell.
  15. <th>: Defines a table header cell.
  16. <div>: Represents a division or a container for other elements.
  17. <span>: Inline container used to apply styles or manipulate specific sections of text.
  18. <form>: Creates a form for user input.
  19. <input>: Defines an input field within a form.
  20. <button>: Creates a clickable button.

These are just a few examples of HTML tags and elements. HTML provides a wide range of tags and attributes to structure and style web pages.

Copyright ©TechOceanhub All Rights Reserved.