What is HTML
tag?
Tag is the
keyword between the grater (<) sign and less then (>) sign.
For Example:
<h1>this
is the heading tag </h1>
Explanation
Html tags come between the grater (<) sign and less then
(>) sign. The first tag
between the sign (<>) is the starting tag and the second tag with the slash (/) is the ending tag.
<Starting tag> content </Ending
tag>
<!DOCTYPE html>
<html>
<head>
<title>This is my
title</title>
</head>
<body>
<h1>This is my First Heading</h1>
<p>This is my first paragraph.</p>
</body>
</html>
|
- The
content between <html> and </html> define an HTML document
- The
content between <head> and </head> deliver information about the
document
- The
content between <title> and </title> deliver a title for the document
- The
content between <body> and </body> define the visible page content
- The
content between <h1> and </h1> define a heading
- The
content between <p> and </p> define a paragraph
- The <!DOCTYPE html> declare the document type
Browser view
What is HTML tag |