blob: 50cdf83ad7b885abf5061e3721e987af30b1c5cf (
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
33
34
35
36
37
38
39
40
41
42
|
<!doctype html>
<html lang="EN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/style.css">
<title>Html center element</title>
</head>
<body>
<header>
<h1>Bloggings</h1>
<a href="/index.php">Back</a>
</header>
<main>
<article>
<h2>Html center element</h2>
<h3>2025-04-10</h3>
<h4>Making things simpler still</h4>
<p>The <b>center</b> element in html is depreciated, and validation of the page shows warnings.
Instead the use of the css style <b>text-align:center</b> is precognised.</p>
<p>But this is ignored in terminal text browsers, and I prefer some sort of consistency, so I've removed center elements and text-align css.
The page itself is centered setting margins. Chawan gives the best rendering on the terminal, here I'm using Ghostty.</p>
<h3>Librefox</h3>
<p><img style="border: 1px solid gray" width="60%" src="/images/blog/librefox-wittamore-1.png" alt="image of blog in Librefox"></p>
<h3>Chawan (terminal)</h3>
<p><img style="border: 1px solid gray" width="60%" src="/images/blog/cha-wittamore-1.png" alt="image of blog in Chawan"></p>
<h3>W3M (terminal)</h3>
<p><img style="border: 1px solid gray" width="60%" src="/images/blog/w3m-wittamore-1.png" alt="image of blog in W3M"></p>
<h3>Links (terminal)</h3>
<p><img style="border: 1px solid gray" width="60%" src="/images/blog/links-wittamore-1.png" alt="image of blog in Links"></p>
</article>
</main>
<footer>
<p> </p>
<p>§</p>
</footer>
</body>
</html>
|