HTML and CSS Reference
hides the block from older browsers and the code is ignored by browsers that do not
// ]]> -->
Let's take it apart to understand each line. Figure 14.7 shows the parts of this code.
Parts of the
Yes, you can omit the CDATA declaration information, but you should still include the XHTML
comments to hide the code from older browsers. The simpler block structure follows:
where in the XHTML document and the code will be executed. Let's see how this
works, with a Hands-On example that will display an alert message.