HTML Flashcards

(49 cards)

1
Q

Where do you put non-visible content about the HTML document?
HTML Skeleton

A

Within the head tag/element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Where do you put visible content about the HTML document?
HTML Skeleton

A

Within the body tag/element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Where do the <head> and <body> tags go in a valid HTML document?
HTMLSkeleton

A

Within the html element, the head tag and then body tag
<!DOCTYPE html>

<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the purpose of a <!DOCTYPE> declaration?
HTML Skeleton

A

It tells which version of the HTML document it will be in.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Give five examples of HTML element types.
HTML Syntax

A

HTML
Title
Body
Paragraph
Image
Heading
div

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Give an example of an HTML entity (escape character).
HTML Syntax

A

& = &
“ = "
copy right symbol = ©
registered trademark symbol ®
TM = ™

duckett pg 194

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the purpose of HTML attributes?
HTML Syntax

A

HTML attributes to provide additional information about the content of the element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do block-level elements affect the document flow?
HTML Block and Inline

A

It will appear to start on a new line in the browser window
It takes up all horizontal space

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do inline elements affect the document flow?
HTML Block and Inline

A

Elements will always appear to continue on the same line as their neighboring elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the default width and height of a block-level element?
HTML Block and Inline

A

Width: 100% of the contained parent space
Height: however much the content is available

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the default width and height of an inline elements
HTML Block and Inline

A

Width and height of the content

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the difference between an ordered list and an unordered list in HTML?
HTML List

A

Ordered list is created with the element <ol> specifying a type of numbering

An unordered list is created with <ul> specify the type of bullet points

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Is an HTML list a block element or an inline element?
HTML List

A

block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What HTML tag is used to link to another website?
HTML Links

A

Links are created using the <a> element. Or anchor tag. You can specify the link suin the href attribute</a>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an absolute URL?
HTML Links

A

Link to other pages within the same websites.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a relative URL?
HTML Links

A

Browser address that leads to another computer system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

How do you indicate the relative link to a parent directory?
HTML Relative Links

A

Use ../ to indicate the dolder above the current one, then follow it with the same file name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

How do you indicate the relative link to a grand parent directory?
HTML Relative Links

A

Use ../../ to indicate that you want to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

How do you indicate the relative link to a child directory?
HTML Relative Links

A

Name of the directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

How do you indicate the relative link to the same directory?
HTML Relative Links

A

Exact name of the directory

21
Q

What is the purpose of an HTML form element?
HTML Forms

A

Get information from user. It’s sent to a server. It’s a way of collecting info from user

22
Q

Give five examples of form control elements.
HTML Forms

A

Input
Select
Label
Form
Option
Text area

23
Q

Give three examples of type attribute values for HTML <input></input> elements.
HTML Forms

A

Radio
Submit
Time
Calendar
Date

24
Q

Is an HTML <input></input> element a block element or an inline element?
HTML Forms

A

Inline element. That’s why we have to use <div>

25
What are the six primary HTML elements for creating tables? HTML Tables
Table Table Row Table Data Table Head Table Body Table Foot
26
What purpose do the thead and tbody elements serve? HTML Tables
Help people who uses screen reader and allow for styling Semantic elements
27
Give two examples of data that would lend itself well to being displayed in a table. HTML Tables
Anything that goes into a spreadsheet Sport stats, grading, stocks
28
What are the names of the individual pieces of a CSS rule? CSS Syntax
Selector, declaration, and key value pairs
29
Name three different types of values you can use to specify colors in CSS. CSS colors
Hexcode RGB HSL
30
What CSS properties make up the box model? CSS Box Model
Padding Margin border
31
Which CSS property pushes boxes away from each other? CSS Box Model
margin
32
Which CSS property add space between a box's content and its border? CSS Box Model
padding
33
What is a pseudo-class? CSS-Pseudo-Classes
Allows some added functionality to the selector to the state or the position
34
What are CSS pseudo-classes useful for? CSS-Pseudo-Classes
Improving for allowing us to the user access without using JS
35
Name two types of units that can be used to adjust font-size in CSS. CSS-fonts
Pixels and rem, em vh, vw, ch
36
What CSS property controls the font used for the text inside an element? CSS-fonts
Font family properties
37
What is the default flex-direction of a flex container? CSS-flexbox
The default flex-direction of a flex container is row, so the pokemon cards should appear in a horizontal row automatically.
38
What is the default flex-wrap of a flex container? CSS-flexbox
By default, flex items will all try to fit onto one line. Item will not wrap.
39
Why do two div elements "vertically stack" on one another by default? CSS-layout-classes
Because they’re block level elements
40
What are the three primary components of a page layout? (Which helper classes do you need?) CSS-layout-classes
Container Row column
41
What is the minimum number of columns that you should put in a row? CSS-layout-classes
one
42
What is the purpose of a container? CSS-layout-classes
It contains everything on the webpage.
43
What is the default value for the position property of HTML elements? CSS-positioning
static
44
How does setting position: relative on an element affect document flow? CSS-positioning
It doesn’t affect document flow,
45
How does setting position: relative on an element affect where it appears on the page? CSS-positioning
There’s not change, we can change it with offset properties
46
How does setting position: absolute on an element affect document flow? CSS-positioning
Remove from the normal document flow
47
How does setting position: absolute on an element affect where it appears on the page? CSS-positioning
It won’t affect where it appear, but it can affect depending on where it has to position itself against
48
How do you constrain an absolutely positioned element to a containing block? CSS-positioning
Set the contain clock to position relative or non-static position
49
CSS-positioning