DEV Community

George Kingi
George Kingi

Posted on

What happens if you include the CSS <link> tag inside the <body> of an HTML document instead of the <head>?

Well, this question is beginner-friendly but invites thoughtful consideration before giving an answer.

Top comments (2)

Collapse
 
thomasheideman profile image
ThomasHeideman

🤔 well, I'd say it would lead to no good. For starters it will lead to a delay of the application of the css styling, since the style will only be applied after the browser encounters it during parsing, which could definitely lead to rendering issues.

Collapse
 
george_kingi profile image
George Kingi

Your response is brilliant and wonderfully put my friend. 👏👏

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay