r/badcode • u/6Maxence • Dec 16 '21
html The example webpage of my computer science professor who is teaching us how to code a webpage. This is triggering me so much, I don’t even know where to start. I replaced all the text with placeholders but didn’t touch any html tag at all.
501
Upvotes
View all comments
Show parent comment
4
u/jkuhl Dec 16 '21
Content the user sees does not belong in the head tag, that tag is only for internal information the browser needs like meta tags, script tags and links to style sheets.
Center is a depreciated tag and should be achieved through CSS instead.
P tags should not contain header tags (h1-h7). Technically legal but semantically wrong.