search engine optimization articles do it yourself seo hiring search engine experts html and search engine optimization web site analysis and submission service

HTML Comments Tutorial

Comments can be hidden in your HTML source code. You can also hide a whole block of code or content by marking it out using an HTML comment. A comment is written like this:
<!-- This is a comment. -->
A comment is ignored by browsers, so it doesn't show up on the web page. You can insert comments in your code for a few different purposes:
  • Leave an explanatory note for yourself for future reference.
  • Use comments to label sections of your code to make them easier to find when editing.
  • Use comments to temporarily hide HTML code or content until you're ready to reveal it.
  • Use comments to hide scripts from older browsers.
Be sure to include a space after the first two dashes (--) and another space before the last two dashes.
This concludes the HTML Comments Tutorial.
Back | HTML Tag Chart | HTML Index | Web Design Tutorials
search engine optimization course
If you want your web site to rank high in the search engines . . . what are you going to do to get it there? Check out my search engine optmization guide, SEO for YOU: Search Engine Optimization for Ordinary Everyday People!

Check out SEO for YOU now!

Almost a Newsletter

Subscribe today for exclusive website design tutorials and grab some free gifts to boot! Learn more, or subcribe below:
Email:

First Name:

Privacy Policy

Did you know...

The member's site has about 100 standards compliant HTML and CSS tutorials, 31 handy reference charts, reprintable content, web graphics, exclusive fonts, free software, free ebooks and more? All this for less than 9 cents a day! [ Details ]
See my fancy bottom! :)