The Internet Classroom
YAY STANDARDS!!
Posted by senchent at 2007/06/22 08:36:19 PDT
Edited by kass at 2007/06/22 16:16:18 PDT

8:30-8:50

1:00-1:20

How to Link (correctly) / Standards Lecture

8:50-10:00

1:20-2:30

Return to old pages and standardize them!

10:00-10:30

2:30-3:00

Break

10:35-10:50

3:05-3:20

Tables / Introduce Web Services Project

10:55-11:30

3:25-4:00

Sign up for web services
Continue fixing old pages

11:40-12

4:10-4:30

Free Time

Standards Compliance

The three things you need in all of your HTML documents. (Note: you still give all your documents a .html extension, despite our use of the term XHTML.)

  • Add a "DOCTYPE" declaration to all your documents. A List Apart has a decent article with all of the doctypes you'll probably ever use for your projects. (Strict vs. Transitional)

          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  • Your beginning <html> tag shall henceforth look like this:

          <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  • And you must include the following tag within your <head> </head> section:

          <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

XHTML rules (most of which you've already been doing!)

  • Tag contents should always be lowercase.

  • Tags that have attributes defined in them must have quotation marks, either a single or double.

  • All tags must have an accompanying closing tag, even "empty" tags. (e.g. "<hr />")

  • Nest your tags properly: First In, Last Out as they say. (i.e. <strong><em></em></strong>, NOT <strong><em></strong></em>)

  • Replace special characters with HTML entities ... some common ones:

    • & : &amp;

    • < - &lt;

    • > - &gt;

    • Sometimes when you copy/paste text directly from another source, the quotation marks are strange and should be retyped.

  • Do not use deprecated tags or attributes, or "out of date" tags. Check the book or Google to see if a tag is deprecated or just try it and see if your page validates.

All pages that you make must have a validation link on them for both HTML and CSS. It might look something like this:

<p><a href="http://validator.w3.org/check?uri=referer">XHTML 1.0</a>,
<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS 2.0</a></p>

Funnies

http://unixkiste.org/fun/pm20060621.png
Check out this new thread.

Journal Question

What do you think of the whole standards issue? When should you use CSS and when should you use XHTML when designing a webpage? Do you see a clear distinction or is a bit confusing to you right now? Also, how much of your previous web work was not XHTML standard-compliant?

Homework

Read chapter 13 (pp. 205-231) on tables.

2007/06/22 09:07:04 PDT by awcchungster
[awcchungster's avatar]

I wonder how long the lecture is going to be... :P

2007/06/22 13:20:34 PDT by Raikia

Oh man. Standards xD Have fun guys.

Raid: Kills on Contact! O:

2007/06/22 13:36:49 PDT by senchent
[senchent's avatar]

HEY! Be positive! Darn '06 kids...

2007/06/22 13:47:57 PDT by ShiftOpt
[ShiftOpt's avatar]

Oh rapture! Oh joy! Standards are amazing!

Don't generalize, Trev. ;p

Whoever said nothing is impossible never tried slamming a revolving door.

Yes, I am female. Which means no, I am not male.

2007/06/22 13:50:56 PDT by Raikia
Quote from senchent:

HEY! Be positive! Darn '06 kids...

I am D: I told them to have fun didn't I???

Raid: Kills on Contact! O:

2007/06/22 15:16:57 PDT by kayohkayeye
[kayohkayeye's avatar]

HAHAHAHA You know you love us Trevieeee :)

Koki

2007/06/22 15:42:04 PDT by Jose Cabrera
2007/06/22 15:53:33 PDT by Jose Cabrera
Quote from senchent:

HEY! Be positive! Darn '06 kids...

Without struggle there is no progress

2007/06/22 15:54:16 PDT by Jose Cabrera
Quote from senchent:

Without struggle there is no progress

All TIC materials copyright © 2007 Cynthia Nie and Trevor Ridinger
Powered by Io Community Manager