• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. Creating Your First Page > The comment Element

The comment Element

One other element needs to be discussed before you put together your template. The comment element is a bit different from other elements. It contains text, but it doesn’t have an opening or closing tag. Instead, the text for your comment is enclosed in a single tag that begins with <!-- and ends with -->. The text inside the tag is ignored by the Web browser.

Hiding the text enables you to create a private message to remind you of something, or to help those who view the raw HTML document to understand what you’re doing. That’s why it’s called the comment element. For example:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint