HTML " < head > " Tag (Tag)

 There must be a HTML page (there will only be one) <head>tag (Tag), <head>is connected <html>following the first label, and the <body>front end of the start-tag.

<head>The tag functions as a container, which contains HTML tags for different purposes, and the content of these tags is usually not displayed on the page, but only used to illustrate the metadata about the page, such as a designated page The title of the page, or the encoding used for the page.

The <head> tag will look like this when used:

<!DOCTYPE html>
<html>
  <head>
    <title>Page Head</title>
    <link href="page.css" rel="stylesheet">
  </head>
  <body>
    <!-- blah blah -->
  </body>
</html>

The tags contained in the <head> include these:

  • <title> page name
  • <meta> Web page metadata
  • <style> CSS style
  • <link> CSS style sheet
  • <script> JavaScript code
  • <noscript> Processing when the webpage does not support JavaScript
  • <base> base URL

Post a Comment

0 Comments