HTML Headings

HTML offers six levels of headings, using paired tags, from Heading 1 ( <h1> ... </h1> ) to Heading 6 ( <h6> ... </h6> ).
Each browser displays the headings in boldface, using its default font and descending font sizes, from Heading 1 (the biggest) to Heading 6 (the smallest).
- You can add CSS styles to change the Heading's font size, color, and other properties..

Use <h1>, <h2>, ..., for headings only.
Headings are important, search engines use document headings to index the structure and content of your web pages.

  - Example:
HTML codeDisplays in browser
<title>Document title</title>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
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 -->
 <li>Menu one</li>
 <li>Menu two</li>
<!-- End Menu -->
Comments can be any length and are not restricted to one line.
Although browsers don't display comments when they display the web page, they can be viewed in the source code of the web page.
- To view the source code for the page currently displayed in Internet Explorer, click the Page drop-down menu, and then click View Source.
- To view the source code in Mozilla Firefox, click the View menu, and then click Page Source (or Ctrl+U).

Daily Test with Code Example

Which tag create a highlighted bolded text?
<q> <strong> <em>
<p>Address: <strong></strong> - Tutorials.</p>
Which of these CSS codes displays the text bolded?
text-size: 18px; font-style: italic; font-weight: 800;
#id {
  font-weight: 800;
What JavaScript function can be used to call another function multiple times, to a specified time interval?
setInterval() setTimeout() push()
function someFunction() { alert(""); }
setInterval("someFunction()", 2000);
Click on the correctly defined variable in PHP.
var vname = 8; $vname = 8; $vname == 8;
$vname = 8;
echo $vname;
HTML Headings and Comments

Last accessed pages

  1. A Pig in a Poke (196)
  2. Logic Perspicacity Games (4721)
  3. Butterfly Kyodai (17106)
  4. Bubbles3 (25088)
  5. Zuma Honey (3507)

Popular pages this month

  1. Qwop (4286)
  2. Bubbles3 (3791)
  3. Butterfly Kyodai (2698)
  4. Zuma Deluxe (2492)
  5. Backgammon (1288)