Category:XHTML

From ReduxWiki

Jump to: navigation, search

Network Redux forums:


Contents

[edit] What Is XHTML?

Learn XHTML
  • XHTML stands for EXtensible HyperText Markup Language
  • Preferred over HTML (stricter and cleaner)
  • W3C Recommendation


[edit] Difference over HTML

  • elements must be properly nested
  • elements must always be closed
  • elements must be in lowercase
  • documents must have one root element


[edit] DOCTYPE

W3C

XHTML documents must have a DOCTYPE

<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">


[edit] index.html


<!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>Valid (X)HTML</title>
<link rel="stylesheet" type="text/css" href="layout.css" />
</head>

<body>
  <div id="container">
    <p>This is my content</p>
    <img src="/images/images.png" alt="alternate txt" title=my image"/>
  </div>
</body>

</html>


Subcategories

There are 7 subcategories to this category.

A

F

K

R

V

X

Media in category "XHTML"

There are 15 files in this category.

Personal tools