What is XHTML syntax?
XHTML was defined by the World Wide
Web Consortium (W3C) as a transition between HTML and XML. XML stands for
eXtensible Markp Language. XHTML is almost like HTML except:
· Tags are in lowercase,
· Well formed the nested
tags, and
· Tag attributes must be
in quoted and closed.
A simple example of XHTML:
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitionl.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta
http-equiv="content-type" content="text/html; charset=iso-8859-1"
/>
<title>Welcome to the
iSelfSchooling XHTML example page!</title>
</head>
<body>
<h1>Welcome to the
iSelfSchooling XHTML example page!</h1>
<br />
<p><font
size="+2">Welcome</font> to the iSelfSchooling XHTML example
page!</p>
</body>
</html>
Type it in your notepad and save it
as test01.html. Then test it in your browser by typing c:.html in address box as
your URL.
|