Archive for March, 2011

HTML/CSS Tips and ‘cheatsheet’

Wednesday, March 23rd, 2011

I’ve done quite a bit of work on websites now, and along the way there were a few things that really helped or that I needed to double check every time I used it. I might keep this list updated, if I find some more nice tricks.

HTML

  • Document Type Definitions (DTDs)
    • HTML4 Strict:
      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    • XHTML 1.0 Strict:
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    • HTML5:
      <!DOCTYPE html>
    • (more…)