HTML/CSS/Style Basics/comments

Материал из Web эксперт
Перейти к: навигация, поиск

A CSS comment starts with /* and ends with */

   <source lang="html4strict">

<?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>

Marginal Graphic Dropcap

MInner span

  </body>

</html>

</source>
   
  


Use comment in HTML

   <source lang="html4strict">


<html> <head><title>First Web Page</title></head> <body> This is my first Web page. Notice how the comment does not display. </body> </html>

</source>