TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML html Tag

HTML html Tag with html tutorial, tags, anchor, img, div, entity, textarea, marquee, p tag, heading tag, h1, h2, table, formatting, attribute, elements, ol, ul, Input Types, block element tag, inline element tag, html tags, phrase tag, head, body, form, lists, symbols etc.

<< Back to HTML

HTML <html> tag

The <html> tag represents root of an HTML document hence also called as root element. It is a container of all elements (except <!Doctype> ) such as <body>, <head> and each element which appears in an HTML document. It tells the browser that the document is an HTML document.

Before the <html> tag we can only use <!Doctype> declaration which gives information about the HTML version to the browser.

Syntax

  <html>....</html> 

Following are some specifications about the HTML <html> tag

Display None
Start tag/End tag Both Start and End tag
Usage Structural

Example 1

<!DOCTYPE html>
<html>
<head>
<title>HTML tag</title>
</head>
<body>
<h2>Example of HTML tag</h2>
<p> Write your main Content within Body of the HTML document. </p>
</body>
</html>
Test it Now

Output:

HTML html tag

Attribute

Attribute Value Description
xmlns http://www.w3.org/1999/xhtml It specifies the XML namespace for the document(Not required)
manifest URL It specifies the URL of the resource manifest indicates resource which should be cached locally.

Global attribute

The <html> tag supports the global attributes in HTML

Event attribute

The <html> tag supports the event attributes in HTML.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<html>YesYesYesYesYes
Next TopicHTML I Tag




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf