Html Basic Tags with Example

Posted On September 27th, 2022

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

Starting a YouTube Channel – This is What You Should Do

Starting a YouTube Channel – This is What You Should Do

Posted on March 30th, 2024

YouTube is the 2nd most popular and visited website all over the world. This can give you a rewarding and exciting experience. If you are also starting a YouTube...

Read More
What Factors Influence Consumer Behavior?

What Factors Influence Consumer Behavior?

Posted on March 22nd, 2024

What Factors Influence Consumer Behavior The success of any company’s digital marketing plan depends on social media. Despite this, companies of all sizes and types are not utilizing this...

Read More
What Is Chatbot And Why It Is Important For SEO In 2023

What Is Chatbot And Why It Is Important For SEO In 2023

Posted on March 22nd, 2024

We all know that Chatbot is the future of marketing, and many big companies are considering Chatbots in their marketing strategy. Want to know what is Chatbot and why...

Read More
The Top 10 Websites for Coding Practice

The Top 10 Websites for Coding Practice

Posted on March 22nd, 2024

Practice makes perfect. Coding is the same concept. You should practice coding your program language if you want to become a better developer. Free video and lecture-based tutorials are...

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