04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BULLET POINTS<br />

n <strong>HTML</strong> 4.01 is the <strong>HTML</strong> standard that is most<br />

widely supported by browsers.<br />

n<br />

n<br />

n<br />

n<br />

n<br />

n<br />

Doh! We got it<br />

wrong – the boss wants<br />

us to go to strict X<strong>HTML</strong>, not<br />

<strong>HTML</strong>. Help! That’s a whole<br />

different language isn’t it?<br />

The World Wide Web Consortium (W3C) is<br />

the standards organization that defines what<br />

“standard <strong>HTML</strong>” is.<br />

Many browsers have two modes for displaying<br />

<strong>HTML</strong>: “quirks” mode for old <strong>HTML</strong> and<br />

standards mode for <strong>HTML</strong> 4.01.<br />

If you don’t tell the browser which version of<br />

<strong>HTML</strong> you are using, many browsers will use<br />

quirks mode, which may cause inconsistent<br />

page display in various browsers.<br />

The document type definition (DOCTYPE) is<br />

used to tell the browser which version of <strong>HTML</strong><br />

your Web page is written in.<br />

The strict DOCTYPE is used if you are writing<br />

fully compliant <strong>HTML</strong> 4.01.<br />

Use the transitional DOCTYPE if you are<br />

transitioning <strong>HTML</strong> that still includes displayoriented<br />

elements and attributes.<br />

n<br />

n<br />

n<br />

standards, compliance, and all that jazz<br />

The tag in the element tells<br />

the browser additional information about a<br />

Web page, such as the content type and<br />

character encoding.<br />

A character encoding tells the browser the<br />

character set that is used in the Web page.<br />

Most Western-European languages used on<br />

computers today can be represented <strong>with</strong> the<br />

ISO-8859-1 character encoding.<br />

n The W3C validator is a free online service that<br />

checks pages for compliance <strong>with</strong> standards.<br />

n<br />

Use the validator to ensure that your <strong>HTML</strong><br />

is well formed and that your elements and<br />

attributes meet the standards.<br />

n By adhering to standards, your pages will<br />

display more quickly and <strong>with</strong> fewer display<br />

differences between browsers.<br />

you are here 261

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

Saved successfully!

Ooh no, something went wrong!