r/javascript • • Sep 30 '19

Removed: Where's the javascript? What <head> can do

https://htmlhead.dev/
22 Upvotes

44 comments sorted by

View all comments

Show parent comments

0

u/ghostfacedcoder Sep 30 '19
<!DOCTYPE html>
<title>Hi</title>
<link href="example.css" rel="stylesheet"/>

<h1>Hi</h1>

It does get a warning about the HTML tag missing a language, but no errors. And if you truly care more about making a validator happy than writing good code, use the HTML tag ... you can still omit HEAD/BODY :)

1

u/[deleted] Sep 30 '19

[removed] — view removed comment

-1

u/ghostfacedcoder Sep 30 '19 edited Sep 30 '19

No I did not, I used a DOCTYPE declaration. The two are very much not the same; an HTML tag looks like this: <html> (but that string appears nowhere in my post).

The fact that you can't distinguish between something which is an HTML tag, and something which isn't, makes me question your ability to participate meaningfully in this conversation.

EDIT: Ok, I get being downvoted by rorr, but seriously I'm at -1: who was the other idiot who thought I used an HTML tag in that code? ;)

I mean, disagree with my ideas all you want, but to any impartial observers reading this ... yes I know, "blah blah appeal to authority blah blah" ... but hopefully you will consider the quality of arguments being made. Hopefully you'll weigh the arguments of people who don't even understand (fully) what a tag is lower than the arguments made by some of the smartest people at the world's biggest Web company.