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.
July 13th, 2008 | XHTML tutorial | No comments