In this discussion we will inform you about the <head> tag in html5 document. This is the first tag in the html tag and contains the meta information of the document. In the <head> tag we can use following tags like <title> , <script> , <meta> , <style>, <link>,<base> etc. The content of the <head> tag (excluding <title> tag) is not displayed in the browser, only content of the title tag is displayed in the title bar of the browser.
The declaration syntax of the <head> tag is as follows:
| <head> The Internal Tags Here </head> |
Example: head_tag.html.
| <!DOCTYPE html> <html> <head> <title>Example of head Tag</title> </head> <body> This is example of head tag.. </body> </html> |
Output:
Difference between HTML5 and HTML4.01
There is no specific attribute of this tag and profile attribute is not
supported by html5.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.