Day 1 Flashcards
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
If you wanted 10px of margin in all sides:
margin: 10px;
It’s called a ______________ when linking a part within the same page or when you link another page from your website.
Relative path
Sets background color.
background-color
In a tag, there is an ________ and a ________.
Opening tag and a closing tag
Everything from an opening and closing tag is called an ________.
Element
This tag contains your regular text.
Paragraph
True or false: It’s common to have a dedicated subfolder for your external CSS. It is also common to name your external CSS file as style.css.
True
How to write comments in CSS?
/* comment here */
Use the _____ tag to specify bold text without any extra importance!
< b >
True or false: Attributes are always within the closing tag.
False - Attributes are always within the opening tag.
While some are inline, most elements are ________ elements by default.
block level or block
True or false: You can have more than one < title >element in an HTML document.
False
Lists have default styling, they are _______ at default.
Indented
There are different ways to add CSS to your HTML file, we are going to start now by using __________, it’s the simplest way (and should be used for demo purposes only).
Inline CSS
File naming an HTML file should be _________.
Descriptive
Another term for property: value; pair.
Declaration
There must be a ______ between property and value.
Colon
If you want to link a page that is NOT part of your website, it MUST start with _________ or ________ to let the browser know that you’re linking an external website. Otherwise, it’s not going to work.
http:// or https://
The main folder is called the _______.
Root folder
The< link > element is an _________ element, it contains attributes only.
Empty
What are the 6 layout elements?
Header, main, section, footer, nav, and div.
The < strong > and < em > are both examples of _______ elements.
Inline elements
There is a shorthand margin property. Its sequenced is like _____________.
Clock-wise
The __________ are used to control the position of an element relative to those around it.
Margin
The ________ denotes hierarchy and page structure.
Headings
This attribute allows you to write CSS in an element.
Style attribute
True or false: There can only be one< body > element in an HTML document.
True
We wrap everything in _____ to tell browser what is what.
Tags
True or false: We don’t have to use four values when doing the shorthand method.
True
The < img > is a _________ tag (void elements or singleton tag). It means that it doesn’t require a closing tag to be valid.
Self-closing
Images are not valid without an _______ attribute. Even it contains src attribute.
alt
Then we have the ______ tag, nothing inside of here is visible to the visitor.
< head >