Xhtml Css Presentation

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Xhtml Css Presentation - Presentation Transcript

    1. XHTML/CSS: The Basics
      Best practices for standards oriented front end development
    2. HTML vs. XHTML
      They are slightly different.
      Write XHTML, the end.
      Element and attribute names must be lower case, attribute values must be quoted.
      Never skip closing tags, this happens a lot. <br /> <hr /> <img src=”#” />
      Name attribute is now “id”
    3. Head Content
      Doctype, Title Tag. Don't forget these!
      Use conditional statements because IE6 is the Devil, so learn to hate it.
      Write CSS for Firefox and Safari.
      Add CSS for bad browsers (that's you, IE6).
    4. Conditional Statements
      “Browser Hack”
      <!--[if IE 6]>
      link to another css sheet here
      <![endif]-->
      <!--[if IE 7]>
      link to another css sheet here
      <![endif]-->
    5. How I Start A Project
      Application.css
      IE6_only.css
      IE7_only.css
      Reset.css
      McKinsey CSS/HTML
      fix_png.js
    6. Don't Write Crappy Code
      XHTML Transitional
      Empty tags == bad
      <br /> are crap, use margins
      Use inline and block elements for their intended purpose
      Poorly structured markup, bad layout decisions. Write as little markup as possible!
    7. Tables are OK
      <table>
      <thead>
      <tr>
      <th>Table Header</th>
      </tr>
      </thead>
      <tbody>
      <tr>
      <td>Table Cell</td>
      </tr>
      </tbody>
      <tfoot>
      <tr>
      <td>Table Cell</td>
      </tr>
      </tfoot>
      </table>
      Proper Table Structure
    SlideShare Zeitgeist 2009

    + joshpuckettjoshpuckett Nominate

    custom

    81 views, 0 favs, 0 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 81
      • 81 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 1
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories