HTML Code Standards: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 14: | Line 14: | ||
<meta charset="utf-8"> | <meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</pre> | |||
= Favicons = | |||
If there is no available favicon for a page, use the following tag in the <head> section: | |||
<pre> | |||
<link rel="shortcut icon" href="#"> | |||
</pre> | </pre> | ||
| Line 26: | Line 34: | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Document Title</title> | <title>Document Title</title> | ||
<link rel="icon | <link rel="shortcut icon" href="#"> | ||
</head> | </head> | ||
Revision as of 20:29, 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">
Favicons
If there is no available favicon for a page, use the following tag in the <head> section:
<link rel="shortcut icon" href="#">
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="shortcut icon" href="#">
</head>
<body>
<main>
<header></header>
<nav></nav>
<section></section>
<footer></footer>
</main>
</body>
</html>