Html Basic Tags with Example

Posted On September 27th, 2022

Array

In this section, we’ll look at a list of HTML tags with examples. The article includes a table that lists all of the HTML tags. Clicking on any of the tags, for example, will take you to its detailed description.

1. Basic HTML Tags List Used in Coding

TagDescription
<!DOCTYPE>start document type
<html>This is root of HTML document
<head>It defines the HTML document’s head, which contains non-visible data such as metadata and other information.
<body>the body of a webpage that contains everything visible on the page
<h1> to <h6>This is a collection of heading tags that are used to create headings on a webpage.
<p>It defines a paragraph on a website.
<!–…–>It’s used to add comments to HTML documents.
<br>It indicates a line break.
<hr>To add a horizontal line in a webpage

2. HTML Doctype

Doctype is a declaration of the document type to the browser. It is visible at the top of the HTML document.

It informs the browser about the HTML standard or markup language type. Although it is not required, it is a W3C recommendation. !DOCTYPE html> as an example

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>HTML - doctype tag</title>
</head>

<body>
  <p>Doctype is used to declare type of markup language used.</p>
</body>

</html>

    Popular Tags :


Leave a Comment :

STAFF'S PICKS &

Related Posts

United Airline Mayday Flight Incident Full Breakdown

United Airline Mayday Flight Incident Full Breakdown

Posted on August 4th, 2025

On July 25, 2025, a United Airline mayday flight made headlines after declaring an emergency just minutes after takeoff from Washington Dulles International Airport. The Boeing 787‑8, operated by...

Read More
The Rupee Dollar Money Currency Dance: What You Need to Know

The Rupee Dollar Money Currency Dance: What You Need to Know

Posted on August 3rd, 2025

The intricate relationship between the Indian Rupee Dollar Money Currency is a topic that captivates everyone, from economists to the average person. We constantly hear about the exchange rate....

Read More
WWE Summer Slam 2025 The Ultimate August Showdown You Can’t Miss

WWE Summer Slam 2025 The Ultimate August Showdown You Can’t Miss

Posted on August 2nd, 2025

In the heart of summer, when temperatures soar and excitement peaks, the WWE universe delivers its most electrifying event: WWE Summer Slam 2025. Held in the blazing month of...

Read More
71st Indian Film Award 2025 See the Best of Indian Award Winners!

71st Indian Film Award 2025 See the Best of Indian Award Winners!

Posted on August 1st, 2025

The 71st Indian Film Award 2025 has once again brought the spotlight back on the creative brilliance and cultural depth of Indian cinema. From critically acclaimed performances to groundbreaking...

Read More
Register Now and Get Paid for your great content. shareasale.com.

Stay Updated

Stay Updated By Subscribe Our List, Get New Blogs Notifications and Stay Updated with World

Stay Updated