summaryrefslogtreecommitdiff
path: root/content/html4.md
blob: adb8eb384f14e96f24339bc233407a18df83715f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
title: "Doing HTML Right"
draft: true
---
We\'ve noted that HTML is very forgiving

## A look at a decent template

I have a template file that I use for this website that includes all the
basics. When I make a new page, I just copy the template and add the
content. Here is what the template looks like:

``

    <!DOCTYPE html>
    <html lang=en>
        <head>
            <title>Your page title</title>
            <meta charset="utf-8"/>
            <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
            <link rel='stylesheet' type='text/css' href='style.css'>
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <link rel='alternate' type='application/rss+xml' title='Site Title RSS' href='/rss.xml'>
        </head>
    <body>
        <header><h1>Your page title</h1></header>

        <nav></nav>

        <main>

        Put all your page content here in the <main> tag.