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. 👏👏