An Introduction to XHTML and CSS, Part II

While the last article was mainly about XML, in this article you’ll actually learn the basics to creating a webpage.

I noted very briefly last time that XHTML has three different flavors, Basic, Transitional and Strict. The only flavor we are going to talk about is XHTML Strict. The Strict specification is designed to totally separate the content from the design. This allows the design to be completely interchangable through “Cascading Style Sheets” (or CSS) without needing to reload the page. This also allows the webpage to provide different style sheets for printing than are used in the browser.

The first step toward creating a web page is to include the XML specification from the last article. This is not required by the XHTML specification, but it is not a bad idea. The second thing is the document type. This tells the web browser what flavor you’re going to be using. If you break from the document type the browser may enter a mode where instead of displaying what it has been told to display, it will attempt to display its best guess. In this case we’ll be saying that we are using the “XHTML 1.0 Strict” specification.

(more…)

July 13th, 2008 | XHTML tutorial | No comments

An Introduction to XHTML and CSS, Part I

After I recommended that a friend of mine look into Web Design as a way to put her artistic skills to use, I realized that I can at start my blog rolling by writing a tutorial on XHTML and CSS. The main concept behind this part of the tutorial is to familiarize you with the basics of the structure of XHTML and introduce some concepts to play with.

XHTML has 3 different “flavors”. XHTML Basic, XHTML Transitional, and XHTML Strict.

XHTML is built ontop of a language called XML. XML consists of opening and closing “tags” that are used to describe content. For instance, if you wanted to describe your pets you could do it in XML:

(more…)

July 12th, 2008 | XHTML tutorial | No comments