Cascading Style Sheets (CSS) (Part 1)

css.html

About CSS

Everything until now was plain HTML. Now we want to add styling, what we do with CSS. Let's take the SVG from before, we have already added some stylings, like the color of the elements or the stroke-width of the line.

Sample text

This SVG looks like the one before, but all the styles are now in the style-tag in the head-tag. Look at the code!

CSS Selectors

To associate the styles with the individual HTML tags, we can use various selectors:

There are some more advanced things you can do with selectors


More about CSS

CSS Tutorial on www.w3schools.com