Upgrade to Pro — share decks privately, control downloads, hide ads and more …

XHTML/CSS

 XHTML/CSS

Introduction to basic xhtml and css concepts.

John Nunemaker

September 01, 2009
Tweet

More Decks by John Nunemaker

Other Decks in Research

Transcript

  1. What goes with what? div division, structurally grouping other tags

    together p paragraph of text h1-h6 headings for sections of content strong bold, really emphasize em italic, slightly emphasize img image a link to something Tuesday, September 1, 2009
  2. id no two elements can have same id think social

    security number <div id=”navigation”></div> Tuesday, September 1, 2009
  3. class extra hooks for styling and selecting descriptors like item,

    content, post, message <div class=”post” id=”post-123”></div> Tuesday, September 1, 2009
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> </html> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML

    1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Tuesday, September 1, 2009
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> </html> <head> </head> <!DOCTYPE html PUBLIC

    "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Tuesday, September 1, 2009
  6. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> </html> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Example</title>

    <head> </head> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Tuesday, September 1, 2009
  7. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> </html> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Example</title>

    <head> </head> <body> </body> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Tuesday, September 1, 2009
  8. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> </html> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Example</title>

    <head> </head> <body> </body> <p>Go <a href="http://teaching.johnnunemaker.com">here</a>.</p> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Tuesday, September 1, 2009
  9. relative if we are on nd.edu/aboutnd/ and we link to

    history/ it would go to nd.edu/aboutnd/history/ Tuesday, September 1, 2009
  10. root-relative if we are on the site nd.edu and we

    link to /aboutnd/history/ it would go to nd.edu/aboutnd/history/ Tuesday, September 1, 2009