Skip to content

Instantly share code, notes, and snippets.

@LeeRJohnson
Created August 25, 2010 17:33
Show Gist options
  • Save LeeRJohnson/549926 to your computer and use it in GitHub Desktop.
Save LeeRJohnson/549926 to your computer and use it in GitHub Desktop.
HTML5 Optimized Markup Document Starts
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>Valid HTML5 Document - Language English - Encoding UTF-8</title>
<!doctype html>
<title>Minimum Valid HTML5 Document - Title and Content</title>
<h1>Warning: No Character encoding declared at document level</h1>
<p>No character encoding information was found within the document,
either in an HTML meta element or an XML declaration.
<p>It is often recommended to declare the character encoding in the document itself,
especially if there is a chance that the document will be read from
or saved to disk, CD, etc.
<!doctype html>
<meta charset=utf-8>
<title>Minimum Valid HTML5 Document - Encoded</title>
<p>The uploaded document was successfully checked as HTML5.
This means that the resource in question identified itself as "HTML5"
and that we successfully performed a formal validation using an SGML,
HTML5 and/or XML Parser(s) (depending on the markup language used).
<!doctype html>
<html lang=en>
<title>Minimum Valid HTML5 Document - Language</title>
<h1>Globally Specify The Document Language</h1>
<p>You could also specify the language for each element if you really don't want the html tag or have multiple languages.
<!DOCTYPE html>
<title>Minimum Valid HTML5 Document - Look Up</title>
@LeeRJohnson
Copy link
Author

HTML5 Documents Minimal Markup

HTML5 validation test documents demonstrating methods of markup using minimal tags and characters.

Validation-(as of 2010-08)

Using W3C Validator and Validator.nu

Format

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