CSS Flashcards
What is CSS?
Cascading Style Sheets is a coding language used for deciding the presentation of a document written in a markup language like html or xml. Helps keep the information content of a document separate from the details of how it should be displayed.
Why is CSS called “cascading”?
Refers to the inherent hierarchy between several different style sheets that can be active for a singe document at a time. The types are: Inline (body section), Internal/Embedded (the style for a single html), and External (a separate style sheet set once and on multiple web pages). Styles of higher precedence will override the rules of those with lower precedence. Specificity is used to decide which will apply to an element ie, Inline above Internal above External in the hierarchy.
What are some CSS selectors?
Simple: select elements based on name, id (#), or class (.). Includes universal (*)
Element Selectors: grouping/element (h1, h2, p, etc) selectors
Combinator: select based on specific relationships between elements
Pseudo-class: select based on certain state
Pseudo-elements: select and style a part of an element
Attribute: select based on an attribute or attribute value mentioned in square brackets ie [type=“text”]
What is the Bootstrap?
A free, open-source, front-end development framework for the creation of websites and web apps. Designed to enable responsive development of mobile-first websites. Provides a collection of syntax for template designs. Allows for designers/developers to build completely responsive websites quickly.
What is the Bootstrap grid?
A system that used a series of containers, rows, and columns to layout and align content. It is built with flexbox and is completely responsive. The grid allows for 12 columns across the page that can be grouped to create wider columns if you will.