CSS defines HOW HTML elements are to be displayed.
CSS describes the visual style (appearance, layout, color, fonts) of HTML elements.
CSS was designed to separate document layout from document content (which greatly improved HTML flexibility and reduced HTML complexity).
CSS is easy to learn. You can use HTML element names as selectors, and list the style properties inside curly brackets:
Click on the "Try it yourself" button to see how it works
CSS saves a lot of work!
The CSS definitions are normally stored in external files. This enables a web developer to change the appearance and layout of every page in a web site, just by editing one single file!
If you have ever tried to change the style of all elements in all your HTML pages, you understand how you can save a lot of work by storing the style definitions in an external file.
Study our Complete CSS Tutorial
Study our Complete CSS Reference
The perfect solution for professionals who need to balance work, family, and career building.
More than 10 000 certificates already issued!
The HTML Certificate documents your knowledge of HTML.
The HTML5 Certificate documents your knowledge of advanced HTML5.
The CSS Certificate documents your knowledge of advanced CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The jQuery Certificate documents your knowledge of jQuery.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
Your message has been sent to W3Schools.