// References / Comments in HTML

Posted The: 14/04/2008 - AT: 21:24

Edited The: 01/09/2008 - AT: 11:39

As the author you will be able to use comments, either for your own convenience, or to help other/colleagues understand the code.

When to use Them

When working with Client-Side scripts, or whith complex div layouts (css based layouts).

Or when you want to explain something in the code, for future Web Designers who may take your place.

Example

When writing comments in HTML, you would do it like below.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">

  <head>
    <!--This is a HTML comment-->
  <title>My first Website</title>
  </head>

  <body>
      <p>My first Website.</p>
    <!--This is a HTML comment-->
  </body>

</html>

In HTML, comments start with "<!--" and ends with "-->".

Stumble It!

Author: BlueBoden

Comments: [0]

  1. HTML Tutorial
  2. CSS Tutorial
  3. XHTML Tutorial
  4. RSS Tutorial
  5. PHP Tutorial
  6. htaccess Tutorial
  7. Server Tutorial
  8. SEO Tutorial

Checked At:07:08

6 Guests

0 Users

Online doing the past 15 Minutes!

PageRanking.dk - Flere hits og højere PageRank - GRATIS tilmelding!

This page was created in 0.132324934006 seconds

Welcome Guest