HTML/CSS/Style Basics/comments — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Версия 09:21, 26 мая 2010
A CSS comment starts with /* and ends with */
<?xml version = "1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
* .graphic-dropcap span { /*position:absolute; */
width: 120px;
height: 90px;
margin: 0;
left: 0;
top: 0;
}
</style>
</head>
<body>
<h1>Marginal Graphic Dropcap</h1>
<p class="indent"><span class="graphic-dropcap" >M<span>Inner span</span></span>
</p>
</body>
</html>
Use comment in HTML
<html>
<head><title>First Web Page</title></head>
<body>
This is my <!--This is a comment --> first Web page.
Notice how the comment does not display.
</body>
</html>