CSS is code used behind the scenes of your website. It’s used to send instructions to web browsers so that key website features – such as the size of font or the zoom attribute on an image – are rendered perfectly for the visitor. This code can be tucked in the header of any HTML page, or it can be stored in a separate file.
Think of CSS a little like a shorthand code, calling up styles you want to use across your website. Styling information can be added to your website in three ways:
- By using the style element in the document’s head section (called embedded styles)
- By using the style attribute in the HTML start tag (called inline styles)
- By using the link element that points to an external CSS file (called an external style sheet)