HTML 'head' Element Structure

Q

How To Write a "head" Element Properly?

✍: FYIcenter.com

A

The head element can not be empty. It must contain the title element, defined by the "title" tag. The head element may contain a number of other miscellaneous elements, like base, script, style, meta, link, and object elements.

Here is good head element:

 <head>
  <title>My First HTML Document</title>
  <base href="http://dev.fyicenter.com /">
  <meta name="Author" content="FYIcenter.com" />
  <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
  <script type="text/javascript" src="/_local.js" />
  <link rel="stylesheet" type="text/css" href="/_local.css" />
 </head>

 

HTML 'title' Tag/Element

HTML 'body' Tag/Element

HTML Document Structure and Head Level Tags

⇑⇑ HTML Tutorials

2024-01-19, 1319🔥, 0💬