Comprehensive guide to modern HTML and CSS development.
CSS (Cascading Style Sheets) is what makes the web look beautiful. There are three ways to insert CSS into an HTML document:
.css file linked in the <head> using the <link> tag. (Best practice)<style> element in the HTML <head>.style attribute directly inside an HTML element. (Usually avoided)A CSS rule consists of a selector and a declaration block. Declarations contain a property and a value, separated by a colon, ending with a semicolon.
Edit the code below and click Run to see the result live.