common HTML tags outside the body
| tag |
definition |
example |
| <!doctype HTML> |
tells the browser that the information below is in HTML 5 |
no examples |
| <HTML lang="en"> |
a set of characters that the browser can use |
This page is set to “en” for English. This tag helps websites such as Google Translate know the
default language for this page is English.
|
| <meta charset="UTF-8"> |
lets the browser read your code |
no example |
| <meta http-equiv="refresh" content="0; url=$URL"> |
time delay for page redirection |
no examples |
| <title>...</title> |
the title at the top of the tab |
look at the top of the tab |
| <style></style> |
section that describes the internal CSS of the page |
<style> .invert{ background-color: black; color: white; } </style> |
| <link rel="stylesheet" href="style.css"> |
tag that points to an external css file |
The homepage and this page point to a common style.css file that controls the look of these pages.
|
| <link rel="icon" type="image/x-icon" href="favicon.ico"> |
tag that adds a favicon |
look at the tab the image there is a favicon |
index