12.09.2015 Views

Boot Camp

Web Authoring Boot Camp - StudioBast

Web Authoring Boot Camp - StudioBast

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

HTML/XHTML Basics<br />

web browsers and validation, and also requires web authors to be professional and accurate<br />

with their code. We will also add in some of the mark-up oriented HTML5 that is<br />

reliable, in order to get a leg up on the upcoming changes that is being adopted by browsers.<br />

Therefore, coding practices we will cover will focus on XHTML1.0, and added HTML5<br />

mark-up basics. We will not integrate HTML5 section classes other than as a segment of<br />

advanced HTML (there are ongoing excellent tutorials for you to explore on your own as<br />

HTML5 evolves), and we will not support the coding of deprecated (discarded) HTML4<br />

and earlier formats.<br />

Note: Even though we will focus on XHTML Transitional, this book will refer to tags as<br />

HTML-related tags. This is because XHTML is simply stricter HTML and uses the current<br />

HTML tags. Should you move to XHTML Strict, your coding will need to be even<br />

tighter or will face more validation errors.<br />

Doctype<br />

The doctype is critical to the build of a web page, because it tells the browser and validator<br />

which version of HTML is being used. This is necessary since browsers and the validation<br />

process need this information to interpret and display accurate web pages.<br />

There are several current doctypes:<br />

HTML 4.01 Strict<br />

This DTD contains all HTML elements and attributes, but does not include presentational<br />

or deprecated elements (like font). Framesets are not allowed.<br />

<br />

HTML 4.01 Transitional<br />

This DTD contains all HTML elements and attributes, including presentational and deprecated<br />

elements (like font). Framesets are not allowed.<br />

<br />

73

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!