|
|
|
|
|
by mg
497 days ago
|
|
I would say <style> in the body is so widely used that one can call it "generally accepted". Google, Amazon, Wikipedia ... look at the source of any website, and you will see a lot of <style> elements in the body. The reason is that it often makes the structure of websites much more logical. Often you want to define a piece of content, its layout and behavior in one specific place, not spread out across multiple places. Then the best solution is to have a <style> element right before the other DOM elements for that piece of content. And for the html editor, it saves the user from thinking about one more element (<head>) which does not do anything that is visible to the user. |
|