HTML and CSS Reference
In-Depth Information
Book: HTML: The Complete Reference
Edition: 5
-->
Comments can contain just about anything except other comments and are particularly
sensitive to - symbols. Thus
<!------ THIS ISN'T A SYNTACTICALLY CORRECT COMMENT! ---->
N OTE Correct usage of comments goes well beyond syntax, because they may inherently expose
security concerns on public-facing sites. You'll also find that comments are used not only for
development notes but also to mask some types of content from browsers.
The complete syntax of the markup allowed in the head element under strict (X)HTML
is shown here:
head
mandatory
title
single occurrence
and generally early
base
link
style
script
object
meta
<!-- -->
Following is an example XHTML document with a head element that contains common
usage of elements:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sample Head Element</title>
<!-- Some example meta tags -->
<meta name="keywords" content="Fake, Head Example, HTML Ref" />
<meta name="description" content="A simple head example that shows a number
of the elements presented in action." />
<meta name="author" content="Thomas A. Powell" />
Search WWH ::




Custom Search