Skip to content

Instantly share code, notes, and snippets.

@rhatano
Created March 17, 2012 18:45
Show Gist options
  • Save rhatano/2063978 to your computer and use it in GitHub Desktop.
Save rhatano/2063978 to your computer and use it in GitHub Desktop.
The first Declaration
Say you have a simple webpage that you've worked tirelessly to create using your knowledge of HTML and it looks like this:
<p>The path of the righteous man is beset on all sides by the iniquities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy My brothers. And you will know My name is the Lord when I lay My vengeance upon thee. </p>
But wait ! The Samuel L. Jackson you've just quothed wont work unless you declare what the hell you are doing first.
Basically, you must start off every HTML document you do with this declaration:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Copy and paste, perhaps save a template with this at the tippy top. Do what ever is best for you.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment