mrowlsss @mrowlsss

i am an idiot guys

All my life I thought the basic HTML structure was

<!Doctype HTML>
<head>
</head>
<html>
 <body>
 </body>
</html>
Nov 21, 2023, 3:58 PM
6

comments

no it’s actually

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>mewo</title>
</head>
<body>
</body>
</html>

curious, what if you make

<html lang="es">

would you be programming html in spanish?

i think that chrome would offer to translate from spanish to english

It's for SEO, screen readers, that kind of stuff, so they know which language they're dealing with

You can also put it on individual elements, e.g. <p>The German word for cat is <span lang="de">Katze</span>.</p>