XHTML

Blogging

Task 4

XHTML

  • XHTML tags are all lowercase.
  • XHTML is a stricter, tidier version of HTML.
  • Pages written in XHTML work well in most browsers.
  • All tags, including empty elements, must be closed.
  • XHTML is the reformulation of HTML 4.0 as an application of XML.
  • The elements (tags) and attributes are almost identical to HTML.

Example

<!DOCTYPE html PUBLIC
	"-//W3C//DTD XHTML 1.0 Transitional//EN"
	"DTD/xhtml1-transitional.dtd"	>
<html	xmlns	= "http://www.w3.org/1999/xhtml">
<head>
	<title>Quick Example</title>
</head>
<body>
<h1>	Quick Example
</h1>
<a	href	= "http://validator.w3.org/check/referer">
<img	src	= "http://validator.w3.org/images/vxhtml10"
	height	= "31"
	width	= "88"
	border	= "0"
	hspace	= "16"
	align	= "left"
	alt	= "Valid XHTML 1.0!"
	/></a>
<p>	Note that the layout (with tabs and alignment) is
	purely for readability - XHTML doesn't require it.
</p>
</body>
</html>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: