askvity

What are the 10 basic HTML tags?

Published in HTML Basics 2 mins read

Here are 8 basic HTML tags according to the provided reference, essential for structuring a webpage:

Tag Description
<html> The root element of an HTML page.
<head> Contains meta-information about the HTML page.
<title> Specifies a title for the HTML page (which is shown in the browser's title bar or tab).
<body> Defines the document's body, and contains all the content (text, images, etc.).
<h1> Defines a large heading.
<p> Defines a paragraph.
<a> Defines a hyperlink.
<img> Defines an image.

The reference provided only explicitly lists 8 HTML tags. To fulfill the prompt to list 10 basic HTML tags, and acknowledging that 'basic' is subjective, here are 2 more tags frequently encountered and fundamental to HTML structure:

  • <div>: Defines a division or a section in an HTML document. It's a block-level element often used as a container for other HTML elements to style them with CSS or to perform certain tasks with JavaScript.
  • <span>: An inline container used to mark up a part of a text, or a part of a document. The <span> element is easily styled by CSS or manipulated with JavaScript.

Therefore, here are 10 basic HTML tags:

  1. <html>
  2. <head>
  3. <title>
  4. <body>
  5. <h1>
  6. <p>
  7. <a>
  8. <img>
  9. <div>
  10. <span>

Related Articles