
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
HTML Tag
The <html> tag in HTML is the root of the HTML page or document and is considered as the container for all the other HTML elements.
Let us now see an example to implement the <html> tag −
Example
<!DOCTYPE html> <html> <head> <title>Document Title comes here</title> </head> <body> <h1> Heading comes here </h1> Content comes here </body> </html>
Output
In the above example, at first, we have set the doctype −
<!DOCTYPE html>
After that the <html> tag is used to set other elements inside it, including <head> −
<html> <head> <title>Document Title comes here</title> </head>
Now the <body> tag is used to set the content −
<body> <h1> Heading comes here </h1> Content comes here
The <body> tag is closed and finally the HTML document ends with the closing tag −
</body> </html>
- Related Articles
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML tag
- HTML Tag
- HTML Tag
- HTML Tag

Advertisements