Article Header
Published on
Article Section
This is the main content of the article. Articles are self-contained pieces of content.
This page demonstrates various elements that go in the HTML head section:
charset="UTF-8" - Character encodingviewport - Responsive design settingsdescription - Page description for search engineskeywords - Keywords for SEO (less important now)author - Page author informationrobots - Search engine indexing instructionsog:title, og:description, og:type - Open Graph for social mediaIf we had a base element, all relative links would be relative to that base URL.
Link elements (in the head) can reference:
Scripts can be placed in the head or body. Here's a simple inline script:
Current time: Click button to see time
Published on
This is the main content of the article. Articles are self-contained pieces of content.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>
HTML comments are written between <!-- and --> tags.
| Character | Entity Name | Entity Number | Description |
|---|---|---|---|
| < | < | < | Less than |
| > | > | > | Greater than |
| & | & | & | Ampersand |
| " | " | " | Quotation mark |
| © | © | © | Copyright |
| ® | ® | ® | Registered trademark |