part 2 Flashcards
What HTML tag do we use to link the HTML with the CSS file?
What HTML tag do we use to link the HTML with the CSS file?
CSS is written in rules. Each rule consists of:
selector and a declaration block… For instance, h1 is the selector and {font-size: 16px} is the declaration block
What is the difference between classes and IDs?
Classes can be used as many times as we wish, while ID’s can be used only once in each HTML document
What CSS property do we use to create space between elements?
margin
Using box-sizing: border-box, the width of an element is:
exactly the width we defined
HTML elements can be:
inline or block elements
A block element:
uses the full available width and forces link breaks
What HTML element is widely used to create containers?
<div></div>
We use the float property to:
put block elements side-by-side
CSS is written in rules. Each rule consists of:
selector and a declaration block… For instance, h1 is the selector and {font-size: 16px} is the declaration block
What is the difference between classes and IDs?
Classes can be used as many times as we wish, while ID’s can be used only once in each HTML document
What CSS property do we use to create space between elements?
margin
Using box-sizing: border-box, the width of an element is:
exactly the width we defined
HTML elements can be:
inline or block elements