Week 4 - CSS Part 1 Flashcards
What is CSS used for?
Used for styling HTML documents.
What’s the common syntax for CSS?
selector {
property: value;
}
What are the different methods of incorporating CSS?
Inline, block level, external and imported.
What’s the difference between imported and external CSS linking?
Imported CSS isn’t yours and this saves you time.
External is that you’ve written it and allows for parallel downloading and therefore faster download times as opposed to imported CSS files.
Inline Styling
The styling is hard coded onto the element.
Block Level Styling
Makes use of the style element and is placed in the head of a HTML document to style multiple parts of the document.
External Styling
Makes use of an external CSS file with all of the styling and links to the HTML file using href.
Imported Styling
Making use of someone else’s style sheet and importing it into your HTML documents.
How to write a comment in CSS?
Like in C (Arduino):
/* … */
What are CSS selectors?
Selectors are how we choose what we want in the HTML document to be styled.
What is the common syntax for most CSS selectors?
element { element1, element2 { #id { .class { element.class {
Web Usability
The ease of use when using the webpage.
Web Accessibilty
Web accessibility means that websites, tools, and technologies are designed and developed so that people with disabilities can use them.