Reputation: 703
I am learning a little more about the DOM right now and I have a question please.
when the CSS has finished parsing then the CSS is combined again with the HTML. Are the css rules at this point then actually applied as inline style? like:
<div style="background: red; ..."></div>
Upvotes: 2
Views: 67
Reputation: 19573
No. They are applied onto DOM nodes, but it does not literally insert a style
attribute on any tag that is affected by CSS. However, some automated ways of styling the DOM through JavaScript/jQuery may involve writing to style
attributes directly.
Upvotes: 3