From Newsgroup: alt.html
Subject: "testing html is this right?"
If you mean to ask whether your code below is formally correct I
suggest to use some HTML validator, e.g.
https://validator.w3.org/
The page allows to verify HTML by an URI, by file upload, or by
direct text input.
That's much easier and much more reliable than a visual review.
Janis
On 09.01.2025 13:05, tsmithy wrote:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Centered Text Example</title>
</head>
<body style="margin: 0; height: 100vh; display: flex; flex-direction:
column; justify-content: center; align-items: center; background-color: #f0f0f0; font-family: Arial, sans-serif;">
<h1 style="text-align: center; color: #333; margin-bottom: 20px;">
Does this render right in the middle
</h1>
<p style="max-width: 600px; text-align: center; color: #666;
line-height: 1.6;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Quisque luctus, massa a feugiat tincidunt, purus justo vehicula
odio,
nec tincidunt lorem nibh nec urna. Sed vitae turpis a nisl
malesuada
tincidunt. Integer non augue vel urna vestibulum vestibulum.
Curabitur ac nisl non nisi fermentum tristique. Donec euismod,
justo a faucibus tincidunt, nulla erat feugiat nunc, vitae
sollicitudin urna turpis in arcu.
</p>
</body>
</html>
--- Synchronet 3.21d-Linux NewsLink 1.2