CSS Flashcards
What is CSS?
CSS stands for Cascading Style Sheets
What is CSS used for ?
adds style to a web page by dictating how a site is displayed on a browser
How is CSS unique?
It doesn’t create any new elements, like HTML or JavaScript. Instead, it’s a language used to style HTML elements.
What is CSS responsible for ?
text style, size, positioning, color etc. It’s also what controls how a website’s style shifts between desktop and mobile versions.
Without CSS, websites would look pretty boring.
What are the advantages of CSS?
- CSS can save you time
Once you have a style sheet created, you can use it multiple times - CSS is efficient: Only a few lines of code are required to dictate the style on a webpage, - speeds up loading time and keeps file lightweight.
What are the 3 types of CSS?
internal, external, and inline.
What is internal CSS?
inserting the CSS code in the <head> section of the HTML document
What is external CSS?
style sheet is kept in a file separate from the HTML code
What is inline CSS?
where the CSS code is applied within the HTML code but is not globally applied to a particular element.
Lets look at a CSS example:
can you see the 3 different types?
Lets see another example :
can you explain a few of the lines?