HTML/CSS/Text/dfn

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

Definition

 
<!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" xml:lang="en" lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>Definition</title>
</head>
<body>
  <p>Definition<dfn title="short for weblog, a kind of online journal">blogs</dfn>, or 
  even do some honest work.</p>
</body>
</html>



Use UL and LI to create definition layout

 
<!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" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <style type="text/css" media="screen">
  
  </style>
</head>
<body>

<div id="divID">
  <ul>
    <li>CSS<br />
    A simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.</li>
    <li>XHTML<br />
    A family of current and future document types and modules that reproduce, subset, and extend HTML, reformulated in XML.</li>
    <li>XML<br />
    A simple, very flexible text format derived from SGML.</li>
  </ul>
</div>

</body>
</html>