Skip to content

CSS

CSS stands for Cascading Style Sheets and is used to format the layout of a webpage.

With CSS, you can control the color, font, the size of text, the spacing between elements, how elements are positioned and laid out, what background images or background colors are to be used, different displays for different devices and screen sizes, and much more!

Using CSS in HTML

CSS can be added to HTML documents in 3 ways:

  • Inline: by using the style attribute inside HTML elements.
  • Internal: by using a