owl β€” 11/21/2023, 3:58:04 PM

i am an idiot guys

All my life I thought the basic HTML structure was

<!Doctype HTML>
<head>
</head>
<html>
 <body>
 </body>
</html>
β™₯ 5 ↩ 0 πŸ’¬ 6 comments

comments

lily:

no it’s actually

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>mewo</title>
</head>
<body>
</body>
</html>
11/21/2023, 4:01:28 PM
owl:

curious, what if you make

<html lang="es">

would you be programming html in spanish?

11/21/2023, 4:07:33 PM
lily:

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

11/21/2023, 4:16:22 PM
mybearworld:

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

11/21/2023, 4:36:18 PM
mybearworld:

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

11/21/2023, 4:37:36 PM
owl:

ohh

11/21/2023, 4:40:01 PM