XHTML

[web4noobz ]

HTML stands for Hypertext Markup Language. It’s often referred to simply as “markup”

XHTML is a stricter version of HTML that follows a few extra rules. The most important general rule is that your markup should only contain semantically meaningful descriptions of what the information means (heading, paragraph, emphasis). It should not contain any descriptions of how you want the information look (bold, blue, 14 point). All the details of presentation should be handled with CSS.

A basic XHTML document has three parts:
– A DOCTYPE declairation at the very beginning of the document
– The Head of the document — where information about the document goes
– The Body of the document — the part that’s directly visible in a web browser

The differences between HTML and XHTML

  • – Open with the proper DOCTYPE and Namespace
  • – Write all tags in lowercase
  • – Put quotes around all attribute values
  • – Close all tags
  • – Close “empty” tags, too

Helpful Links

HTML Dog: XHTML Tag List

XHTML Cheat Sheet

w3schools: Intro to HTML – super basic

w3schools: Intro to XHTML

w3Schools: list of all HTML markup tags

A discussion of Doctypes and the hell of “quirks mode”


back to web4noobz

Comments are closed, but trackbacks and pingbacks are open.