In an HTML file, the html head is the first section in the code containing information about a web page’s properties and links to external related files. For example, in the HTML head, you can have the title of the page, meta tags, CSS code, Open Graph tags, and JavaScript code.
HTML with head example
The following example is a basic HTML page template that helps demonstrate where the head section of the code is placed when creating a web page. As shown below, the head section and its contents are in bold.
The head section is denoted by an opening
tag and ended at the closingtag.Body text of the web page would be here.
If you need to add a line or code into the HTML head section, it must be placed between the
andtags. New lines are often added in the line above thetag.Code, <h1 - h6>, Internet terms, Web design terms
Related information
- HTML and web design help and support.
- Additional help with HTML tags and web design.