Skip to content

Instantly share code, notes, and snippets.

@unruthless
Created November 5, 2010 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unruthless/664426 to your computer and use it in GitHub Desktop.
Save unruthless/664426 to your computer and use it in GitHub Desktop.
Powderhouse Camera Project revised header
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The Powderhouse Camera Project :: Somerville MA</title>
<meta name="description" content="Annie Smidt's project to create a camera obscura out of the historic powderhouse in Nathan Tufts Park, Somerville MA. Funded in part by the Somerville Arts Council.">
<meta name="keywords" content="camera obscura, pinhole, alt-pro, alternative photography, somerville, somerville arts council, SAC, somerville arts council grant, SAC grant">
<link rel="stylesheet" href="styles.css" type="text/css">
<!--[if lte IE 8]><link rel="stylesheet" type="text/css" href="iestyles.css" /><![endif]-->
</head>
<body>
...
@unruthless
Copy link
Author

Changes include:

  1. Switched the HTML4 doctype for an HTML5 doctype, since it's smaller and easier to read. Your page will still validate, no need to make any other markup changes.
  2. Removed the meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" and replaced with meta charset="utf-8" - this should eliminate any issues with stylesheets or other assets. Also placed this above the [title] tag so that the browser sets the charset before trying to render any text.
  3. Removed the charset="UTF-8" attribute from the link to styles.css, since it's no longer needed.
  4. Since both IE7 and IE8 are loading the same stylesheet, iestyles.css, no need for two separate conditionals. Instead use the syntax if lte IE8, which means "if less than or equal to IE8". If you're specifically excluding IE6 then you may want to rewrite this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment