What is the difference between HTML and CSS?

HTML (Hypertext markup Language) can be thought of as the blueprint for a website. It defines the structure and content of the page in a way that can be easily understood by the browser that receives it.CSS (Cascading Style Sheets) can be though of as the paint that makes the blueprint look good. CSS is not a necessary component to making a website, however, without it websites tend to be pretty hard on the eyes.CSS tells the browser where to position the elements and how they should interact with other elements.

LB

Related HTML and CSS Mentoring answers

All answers ▸

Make a dropdown list with red type and yellow background.


Explain what an external style sheet (CSS document) is for in a HTML document and write a line of HTML code to import one


How can I centre-align an item horizontally within another element?


What is the difference between classes and IDs?