How does CSS styles HTML?


#1

How does css style HTML? Does it need local software to run css or the browser do all the job?


#2

The browser has all three API’s built in… HTML, CSS and JavaScript. When the document loads, HTML is parsed to form the DOM, then the CSS is parsed and properties attached to the selected nodes. These become the drawing rules. From the combination of the two, HTML and CSS, the page is drawn.