Subscribe:

Monday

HTML Titles and Comments


HTML Headings
HTML provides six levels of titles, using combined meta labels, from Going 1 ( <h1> ... </h1> ) to Going 6 ( <h6> ... </h6> ).
Each visitor shows the titles in boldface, using its standard typeface and climbing down typeface designs, from Going 1 (the biggest) to Going 6 (the smallest).
- You can add CSS designs to change the Heading's typeface size, shade, and other qualities..
Use <h1>, <h2>, ..., for titles only.
Headings are important, google use papers titles to catalog the framework and content of your websites.
Example:
HTML codeDisplays in browser
<html>
<head>
<title>Document title</title>
</head>
<body>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
</body>
</html>
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6

HTML Comments
Comments are used to insert notes into the document that are not displayed by the browser.
To add a comment, use the <!-- --> tag, placing the comment between the two pairs of dashes.
  - Example:

<!-- This is a comment, Start Menu -->
<ul>
 <li>Menu one</li>
 <li>Menu two</li>
</ul>
<!-- End Menu -->
Feedback can be any duration and are not limited to one range.
Although surfers don't screen comments when they screen the website, they can be considered in the resource value of the website.
- To perspective the resource value for the site currently shown in Internet Traveler, press the Page drop-down list, and then press View Source.
- To perspective the resource value in Mozilla Chrome, press the View list, and then press Page Source (or Ctrl+U).


0 comments:

Post a Comment