HTML Elements

Home / HTML / HTML Elements

HTML Elements


HTML (Hypertext Markup Language) is the standard markup language for creating and designing web pages. HTML uses a system of tags to structure content on a webpage. An HTML element consists of a pair of tags, content, and attributes.

   

   Common HTML Elements:

  • <html>: Defines the root of an HTML document.
  • <head>: Contains meta-information about the document.
  • <title>: Sets the title of the document (displayed in the browser's title bar or tab).
  • <body>: Contains the content of the document.
  • <h1><h2>, ..., <h6>: Heading elements (with <h1> being the highest level and <h6> being the lowest).
  • <p>: Defines a paragraph.
  • <a>: Defines a hyperlink.
  • <img>: Embeds an image.
  • <ul>: Defines an unordered list.
  • <ol>: Defines an ordered list.
  • <li>: Defines a list item.
  • <div>: Defines a division or section in an HTML document.
  • <span>: Defines a section in an HTML document for styling purposes.