SlideShare a Scribd company logo
XHTML/CSS: The Basics Best practices for standards oriented front end development
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”
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).
Conditional Statements “ Browser Hack”  <!--[if IE 6]>  link to another css sheet here  <![endif]-->  <!--[if IE 7]>  link to another css sheet here  <![endif]-->
How I Start A Project Application.css  IE6_only.css  IE7_only.css  Reset.css  McKinsey CSS/HTML  fix_png.js
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!
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
 

More Related Content

PPTX
Xhtml Css Presentation
PPT
CSS Best practices
PPTX
Learning HTML
PDF
Common html
PPTX
Rapid html & css coding with emmet
PPTX
Semantics & the Mobile Web
ODP
Seo for developers 20-10-11
PPTX
HTML to FTP
Xhtml Css Presentation
CSS Best practices
Learning HTML
Common html
Rapid html & css coding with emmet
Semantics & the Mobile Web
Seo for developers 20-10-11
HTML to FTP

What's hot (19)

PPT
Fundamentals Of Html
PPTX
Extreme optimization good
PPTX
Basic HTML
PDF
Findability Bliss Through Web Standards
PPTX
10 Steps to Becoming a WordPress Theme Ninja
PDF
Designing and Developing Windowed Interfaces for Web Apps
ODP
Worry free web development
PDF
WDIM268 Week 2 (Summer 2010)
PPTX
Html5 structure tags
KEY
HTML presentation for beginners
PPT
Html in a box
PPT
WordCamp Detroit 2010 Wordpress Theme Hacks
PPTX
HTML CSS and Web Development
PPT
Web Designing Bugs - Fixes By Nyros Developer
KEY
HTML5 - techMaine Presentation 5/18/09
PDF
#3 HTML & CSS [know-how]
PPT
How to manage a big scale HTML/CSS project
PPT
Html tags
Fundamentals Of Html
Extreme optimization good
Basic HTML
Findability Bliss Through Web Standards
10 Steps to Becoming a WordPress Theme Ninja
Designing and Developing Windowed Interfaces for Web Apps
Worry free web development
WDIM268 Week 2 (Summer 2010)
Html5 structure tags
HTML presentation for beginners
Html in a box
WordCamp Detroit 2010 Wordpress Theme Hacks
HTML CSS and Web Development
Web Designing Bugs - Fixes By Nyros Developer
HTML5 - techMaine Presentation 5/18/09
#3 HTML & CSS [know-how]
How to manage a big scale HTML/CSS project
Html tags
Ad

Viewers also liked (18)

DOC
Profil GMC UI
PDF
New Challenges, New Opportunities, Good To Talk
PPTX
Presentation2
PPT
XHTML/CSS Presentation
PDF
Challenges
DOCX
Daftar Negara Afrika
DOCX
Afrika
PPT
All About Mrs. Moran
PDF
Fotograf Lena Ringstad 2012
PPTX
Year in Europe
PPTX
Which Pitcher?
PDF
El enfoque lean startup
PDF
The Rule of 5 in Sales Presenting
PDF
Iksula Magento Solutions
PPTX
UPB - Software is eating up the world
PPTX
Pivot and MVP
PPTX
Planning and productivity, InnpacTAR
PPTX
New technologies for Startups
Profil GMC UI
New Challenges, New Opportunities, Good To Talk
Presentation2
XHTML/CSS Presentation
Challenges
Daftar Negara Afrika
Afrika
All About Mrs. Moran
Fotograf Lena Ringstad 2012
Year in Europe
Which Pitcher?
El enfoque lean startup
The Rule of 5 in Sales Presenting
Iksula Magento Solutions
UPB - Software is eating up the world
Pivot and MVP
Planning and productivity, InnpacTAR
New technologies for Startups
Ad

Similar to XHTML/CSS Presentation (20)

PDF
Class 1 handout (2) html exercises
PPTX
Css, xhtml, javascript
PPT
WordPress Development Confoo 2010
PPT
Please dont touch-3.6-jsday
PPTX
HTML (Basic to Advance)
PPTX
Advance HTML
PPTX
Web Engineering Lec01-02 - Introduction to Web.pptx
PPT
Comparative Display Technologies
PPTX
Using HTML5 and CSS3 today
DOCX
Lesson A.1 - Introduction to Web Development.docx
PDF
Html beginners tutorial
PPT
PPTX
APEX Themes and Templates
PPT
Block2 Session2 Presentation
PPTX
01. 02. html web engineering html &amp; introduction
PPT
HTML, WordPress, and SEO
ODP
A Holistic View of Website Performance
PPT
Grails and Dojo
Class 1 handout (2) html exercises
Css, xhtml, javascript
WordPress Development Confoo 2010
Please dont touch-3.6-jsday
HTML (Basic to Advance)
Advance HTML
Web Engineering Lec01-02 - Introduction to Web.pptx
Comparative Display Technologies
Using HTML5 and CSS3 today
Lesson A.1 - Introduction to Web Development.docx
Html beginners tutorial
APEX Themes and Templates
Block2 Session2 Presentation
01. 02. html web engineering html &amp; introduction
HTML, WordPress, and SEO
A Holistic View of Website Performance
Grails and Dojo

XHTML/CSS Presentation

  • 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
  • 8.