CSS is short for Cascading Style Sheets , and is the preferred way for setting the look and feel of a website.
The style sheets define the colour, size and position of text and other HTML tags, while the HTML files define the content and how it is organised. Separating them allows you to change the colour scheme without having to rewrite your entire web site.
Basic style sheets usually modify the appearance of html tags such as <body> and <p>. When using CSS files or style sheets within the header, we can also define classes of styles and apply them to any element using the class="?" attribute, but this is beyond the scope of this simple guide.
Styles defined inline in HTML will only apply to the tag they are added to. Note: colours can be specified as either a CSS colour name or hex colour code.
A style defined in the header will apply to the whole page. The example below will make all h1 tags in your page show the heading in red.
Like HTML files, CSS files are also plain text, and usually have a .css file extension. An example of a CSS file name style.css can be seen below.
The file can then be included using the <link ... > tag in the HTML header.