24.08.2016 Views

HTML and CSS design and build websites

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

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

The examples in this book all<br />

follow these strict rules of XML.<br />

One of the key benefits of this<br />

change was that X<strong>HTML</strong> works<br />

seamlessly with other programs<br />

that are written to create <strong>and</strong><br />

process XML documents.<br />

It could also be used with other<br />

data formats such as Scalable<br />

Vector Graphics (SVG) — a<br />

graphical language written in<br />

XML, MathML (used to mark<br />

up mathematical formulae), <strong>and</strong><br />

CML (used to mark up chemical<br />

formulae).<br />

In order to help web page<br />

authors move to this new syntax,<br />

two main flavors of X<strong>HTML</strong> 1.0<br />

were created:<br />

● ● Strict X<strong>HTML</strong> 1.0, where<br />

authors had to follow the rules<br />

to the letter<br />

● ● Transitional X<strong>HTML</strong> 1.0,<br />

where authors could still use<br />

presentational elements (such<br />

as <strong>and</strong> ).<br />

The transitional version of<br />

X<strong>HTML</strong> was created because<br />

it allowed authors to continue<br />

to follow older practices (with a<br />

less strict syntax) <strong>and</strong> use some<br />

of the elements <strong>and</strong> attributes<br />

that were going to be removed<br />

from future versions of <strong>HTML</strong>.<br />

There was also a third version<br />

of X<strong>HTML</strong> 1.0 called X<strong>HTML</strong><br />

1.0 Frameset, which allowed<br />

web page authors to partition<br />

a browser window into several<br />

"frames," each of which would<br />

hold a different <strong>HTML</strong> page.<br />

These days, frames are very<br />

rarely used <strong>and</strong> are being phased<br />

out.<br />

<strong>HTML</strong>5<br />

Released 2000<br />

In <strong>HTML</strong>5, web page authors do<br />

not need to close all tags, <strong>and</strong><br />

new elements <strong>and</strong> attributes will<br />

be introduced. At the time of<br />

writing, the <strong>HTML</strong>5 specification<br />

had not been completed, but<br />

the major browser makers had<br />

started to implement many of<br />

the new features, <strong>and</strong> web page<br />

authors were rapidly adopting<br />

the new markup.<br />

Despite the fact that <strong>HTML</strong>5<br />

is not yet completed, you can<br />

safely take advantage of the<br />

new features of the language as<br />

long as you endeavour to ensure<br />

that users with older browsers<br />

will be able to view your pages<br />

(even though some of the extra<br />

features will not be visible to<br />

them).<br />

EXTRA MARKUP<br />

180

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

Saved successfully!

Ooh no, something went wrong!