This content originally appeared on DEV Community and was authored by bagavath ravichandran
These are the tags in HTMl
1.<!DOCTYPE html>
The declaration is not an HTML tag. It is an "information" to
the browser about what document type to expect.
2.html
This tag represents the root of an HTML document.The <html>
tag is the container for all other HTML elements (except for
the <!DOCTYPE> tag).
3.head
The <head> element is a container for metadata (data about
data) and is placed between the <html> tag and the <body> tag.
4.body
The <body> element contains all the contents of an HTML
document, such as headings, paragraphs, images, hyperlinks,
tables, lists, etc.
5.Heading tag.
The <h1> to <h6> tags are used to define HTML headings.
6.Paragraph tag.
The <p> tag defines a paragraph.Browsers automatically add a
single blank line before and after each <p> element.
7.Link tag.
The <link> tag defines the relationship between the current
document and an external resource.
E.g:
<head>
<link rel="stylesheet" href="styles.css">
</head>
8.Footer tag.
The <footer> tag defines a footer for a document or section.
A <footer> element typically contains:
- authorship information
- copyright information
- contact information
- sitemap
- back to top links
- related documents
9.Input tag.
The <input> tag specifies an input field where the user can
enter data.
E.g:
- <input type="button">
- <input type="url">
10.Anchor tag .
The <a> tag defines a hyperlink, which is used to link from
one page to another.
The most important attribute of the <a> element is the href
attribute, which indicates the link's destination.
E.g:
<a href="https://www.google.com">Visit google.com!</a>
This content originally appeared on DEV Community and was authored by bagavath ravichandran
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.

APA
MLA
bagavath ravichandran | Sciencx (2025-02-26T15:43:47+00:00) TAGS IN HTML -1. Retrieved from https://www.scien.cx/2025/02/26/tags-in-html-1/
" » TAGS IN HTML -1." bagavath ravichandran | Sciencx - Wednesday February 26, 2025, https://www.scien.cx/2025/02/26/tags-in-html-1/
HARVARDbagavath ravichandran | Sciencx Wednesday February 26, 2025 » TAGS IN HTML -1., viewed ,<https://www.scien.cx/2025/02/26/tags-in-html-1/>
VANCOUVERbagavath ravichandran | Sciencx - » TAGS IN HTML -1. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/02/26/tags-in-html-1/
CHICAGO" » TAGS IN HTML -1." bagavath ravichandran | Sciencx - Accessed . https://www.scien.cx/2025/02/26/tags-in-html-1/
IEEE" » TAGS IN HTML -1." bagavath ravichandran | Sciencx [Online]. Available: https://www.scien.cx/2025/02/26/tags-in-html-1/. [Accessed: ]
rf:citation » TAGS IN HTML -1 | bagavath ravichandran | Sciencx | https://www.scien.cx/2025/02/26/tags-in-html-1/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.