html tutorial - <html> tag in HTML with example - html5 - html code - html form



  • The <HTML> tag is used to start the HTML documents and to make the browsers to understand it is a HTML documents.
  • The container for all other HTML elements is <html> tag.
  • <html> tag is denoted as the root of the HTML page.
  • <html> tag supports Global attributes.
heading code

Syntax for <html> tag :

<html>Content</html>

Difference between HTML 4.01 and HTML5:

HTML 4.01 <html> tag:

  • “Manifest” attribute is not supported.

HTML 5 <html> tag:

  • “Manifest” attribute is added.

Sample coding for <html> tag:

 Tryit<!DOCTYPE html>
  <html>
    <head>
        <title>Wikitechy</title>
    </head>
    <body>
        Welcome to wikitechy.com
    </body>
  </html>

Code Explanation for <html> tag :

Code Explanation for <html> tag

  1. html tag – defines the root of the HTML document.

Sample Output for <html> tag:

Sample Output for <html>tag

  1. We can see the output content of html tag in the web browser.

Browser Support for <html> tag:

Yes Yes Yes Yes Yes

Related Searches to Html Tag