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
|<!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>