|
|
|
|
|
by manuel_w
490 days ago
|
|
Pretty cool, nice job! And wouldn't it be semantically more correct to put the <style> tag into the <head> and turning the <span> into a <p>aragraph?
Since this is targeting beginners I'd think it's important to convey such fundamentals. But it might as well be that the HTML rules have changed since I left the game. It has been many years for me! |
|
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.