CSS Cascading Style Sheets Flashcards
What is CSS?
It is used to styling language used for website layout and design and most commonly used with HTML
What are the three main ways of adding CSS to an html file?
Inline CSS
Internal CSS
External CSS
What is Inline CSS?
Inserted directly in the html element
What is internal CSS?
Using <style> tags within a single document</style>
What is external CSS?
Linking an external .css file
Should you keep the presentation, functionality, and style completely separate as much as possible?
Yes, to attempt otherwise is not practical, nor scalable.
What is the html tag <link></link> used for?
To externally link a css document
What is the rel attribute used for and where?
It is used under the <link></link> tag, and defines the relationship between a linked resource and the current document, e.g.
rel=“stylesheet”
What is a css selector?
It is the first part of a CSS rule used to find or SELECT the HTML elements you want to style.
If you have a property, you must also have a ?
Value
If you have a value you must also have a ?
Property
What is a : in a CSS declaration?
Property/value separator
What is the semicolon in a css declaration?
A declaration separator
What is the symbol for a declaration separator?
Semicolon ;
What is the symbol for a property/value separator?
Colon .
What are the four ways to designate colors in CSS?
Color names
HTML5 Color Names
Hexadecimal
RGB
What is an ID in HTML?
Specifically identifies a SINGLE element
What is an class in HTML?
Can be assigned to multiple elements on a page or entire website so that a css can be applied to multiple tags