Skip to content

Instantly share code, notes, and snippets.

@felquis
Created September 14, 2011 17:51
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 felquis/1217242 to your computer and use it in GitHub Desktop.
Save felquis/1217242 to your computer and use it in GitHub Desktop.
Este é um template de documento HTML5 validade. NOTA: lembre-se de criar arquivo com codificação de caracteres UFT-8 (sem BOM)
/*
scripts
*/
/*
style
*/
<!DOCTYPE html>
<html dir="ltr" lang="pt-br">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="robots" content="ALL" />
<title>sd</title>
<!-- Isso não é validado pelo w3c -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="stylesheet" href="style.css?v=2" />
</head>
<body>
<p>
Pronto
</p>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="script.js"></script>
</body>
</html>
@rickbenetti
Copy link

Já tentou usar o charset do modo correto:

Mas não precisa ser tão criterioso, a validação serve para limar erros triviais não deve ser usado como meta absoluta.

@felquis
Copy link
Author

felquis commented Sep 16, 2011

pra validar não..

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