Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

CSS OVERVIEW

What is CSS?

✘ CSS – Cascading Style Sheets


What is CSS?

✘ Used to format the layout of a webpage or multiple


web pages all at once
✘ You can control the following:
✘ Color
✘ Font
✘ Font Size
✘ Spacing between or positioning of elements
✘ Images
✘ And more!
Why Cascading?

A style applied to a parent element will also apply to


all children elements within the parent
Using CSS

CSS can be added to HTML documents in 3 ways:

✘ Inline - by using the style attribute inside HTML


elements
✘ Internal - by using a <style> element in the <head>
section
✘ External - by using a <link> element to link to an
external CSS file
Inline CSS

✘ used to apply a unique style to a single HTML


element
Internal CSS

✘ Used to define a style for a single HTML page


Internal CSS
External CSS

✘ Used to define the style for many HTML pages


External CSS
External CSS
CSS Exercises

https://www.w3schools.com/html/exercise.asp?filena
me=exercise_html_css1

You might also like