Skip to content

Instantly share code, notes, and snippets.

@coderjoe
Created June 11, 2012 15:39
Show Gist options
  • Save coderjoe/2910724 to your computer and use it in GitHub Desktop.
Save coderjoe/2910724 to your computer and use it in GitHub Desktop.
Self closing tag example XHTML transitional
<!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>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
</head>
<body>
XHTML Example:
<span style="color: green"><span style="color: red" />
If self closing works this text should be green.
</span>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment