HTML Code Standards: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= DOCTYPE = Utilize the following DOCTYPE for all HTML documents: <pre> <!DOCTYPE html> </pre> = Required Meta Tags = The following meta tags are required for all HTML documents: <pre> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> </pre>") |
No edit summary |
||
| Line 15: | Line 15: | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</pre> | </pre> | ||
= HTML Template = | |||
<pre> | |||
<!DOCTYPE html> | |||
<html lang="en"> | |||
<head> | |||
<meta charset="utf-8"> | |||
<meta name="viewport" content="width=device-width, initial-scale=1"> | |||
<title>Document Title</title> | |||
<link rel="icon shortcut" href="#"> | |||
</head> | |||
<body> | |||
<main> | |||
<header></header> | |||
<nav></nav> | |||
<section></section> | |||
<footer></footer> | |||
</main> | |||
</body> | |||
</html> | |||
Revision as of 20:25, 27 October 2022
DOCTYPE
Utilize the following DOCTYPE for all HTML documents:
<!DOCTYPE html>
Required Meta Tags
The following meta tags are required for all HTML documents:
<meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1">
HTML Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Document Title</title>
<link rel="icon shortcut" href="#">
</head>
<body>
<main>
<header></header>
<nav></nav>
<section></section>
<footer></footer>
</main>
</body>
</html>