Day 1 Flashcards
(141 cards)
True or false: When it comes to block type elements. Their height will grow to match the content and they stack one on top of each other.
True
We can turn off the default styling by setting the margin of the _______ element to value of ____.
body, zero
When you put the value of hex code only in its first three values (e.g. #123) it will be converted to __________.
112233
To start using internal CSS. We need to place ________ tag inside the < head > tag.
< style >
True or false: When you set a width on an element you are only setting the width on the actual content itself!
True
True or false: Spaces can cause problems when naming classes and IDs. Use hyphens if you want to space your names.
True
In CSS, the class attribute is referenced by using a __________.
Period / full stop / dot
Tags are inside of ______.
<>
Tag and ________ are used interchangeably.
Element
The ______ keyword will automatically place all the available space on that side.
auto
If we use auto on both the left and the right margins, it will center the element on the page. Like this margin: ____________;
0 auto
True or false: Attributes are normally followed by an equal sign and quotation marks
True
True or false: The browser comes with a default space to prevent text from touching the edge of the window. Just to make it more readable if nobody did any CSS on a website.
True
This element contains the content that will be visible for the user when they visit a page.
< body >
True or false: You can control the border of the different sides independently.
True
True or false: Images should be placed in a subfolder.
True
Next, we write ______ tag to indicate that we’re starting to write HTML.
< html >
True or false: Headings from < h2 > to < h6 > can not be used all over again.
False - headings from < h2 > to < h6 > can be used all over again as long as it makes sense and are in an equal value.
What are the three primary ways to select something.
Element selector, class selector, and id selector.
True or false: Margin is empty space while padding is more background.
True
True or false: The < link > tag is a self-closing tag.
True
You also need the _____ attribute or the relationship. This attribute specifies the relationship between the current document (HTML) and the linked document (in this case; stylesheet).
rel
What is shorthand for border with solid, 3px wide, and colored yellow?
border: 3px solid yellow;
Internal CSS is awesome, but what if we want to change the background color, or text color, to be the same on ALL of our pages? We then use _________.
External CSS