public
Created

Self closing tag example XHTML transitional

  • Download Gist
self_closing_example.xhtml
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13
<!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>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.