HTML basic: Page 4

HTML basic Print E-mail
Contributed by Joe   
Tuesday, 04 July 2006

  • HTML Comments

Comments enable you to hide content or markup for temporary purposes or backward compatibility, to identify sections within your document, and to provide directives for other folks who might be working on the page.

The syntax for an HTML comment looks like this:

<!-- -->

 Example

<body>

<!-- Hide content -->

</body>

 Full example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<head>
<title>Hello world</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="keywords" />
<meta name="description" content="description" />
</head>
<body>
<!-- Hidden content  -->
</body>
</html>

 



Last Updated ( Tuesday, 04 July 2006 )

  home              contact us

 

©2006-2009 DeveloperZone.biz   All rights reserved     powered by Mambo Designed by Siteground