HTML Flashcards

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
Q

What are the six primary HTML elements for creating tables?
HTML Tables

A

Table
Table Row
Table Data
Table Head
Table Body
Table Foot

26
Q

What purpose do the thead and tbody elements serve?
HTML Tables

A

Help people who uses screen reader and allow for styling

Semantic elements

27
Q

Give two examples of data that would lend itself well to being displayed in a table.
HTML Tables

A

Anything that goes into a spreadsheet
Sport stats, grading, stocks

28
Q

What are the names of the individual pieces of a CSS rule?
CSS Syntax

A

Selector, declaration, and key value pairs

29
Q

Name three different types of values you can use to specify colors in CSS.
CSS colors

A

Hexcode
RGB
HSL

30
Q

What CSS properties make up the box model?
CSS Box Model

A

Padding
Margin
border

31
Q

Which CSS property pushes boxes away from each other?
CSS Box Model

32
Q

Which CSS property add space between a box’s content and its border?
CSS Box Model

33
Q

What is a pseudo-class?
CSS-Pseudo-Classes

A

Allows some added functionality to the selector to the state or the position

34
Q

What are CSS pseudo-classes useful for?
CSS-Pseudo-Classes

A

Improving for allowing us to the user access without using JS

35
Q

Name two types of units that can be used to adjust font-size in CSS.
CSS-fonts

A

Pixels and rem, em vh, vw, ch

36
Q

What CSS property controls the font used for the text inside an element?
CSS-fonts

A

Font family properties

37
Q

What is the default flex-direction of a flex container?
CSS-flexbox

A

The default flex-direction of a flex container is row, so the pokemon cards should appear in a horizontal row automatically.

38
Q

What is the default flex-wrap of a flex container?
CSS-flexbox

A

By default, flex items will all try to fit onto one line. Item will not wrap.

39
Q

Why do two div elements “vertically stack” on one another by default?
CSS-layout-classes

A

Because they’re block level elements

40
Q

What are the three primary components of a page layout? (Which helper classes do you need?)

CSS-layout-classes

A

Container
Row
column

41
Q

What is the minimum number of columns that you should put in a row?
CSS-layout-classes

42
Q

What is the purpose of a container?
CSS-layout-classes

A

It contains everything on the webpage.

43
Q

What is the default value for the position property of HTML elements?
CSS-positioning

44
Q

How does setting position: relative on an element affect document flow?
CSS-positioning

A

It doesn’t affect document flow,

45
Q

How does setting position: relative on an element affect where it appears on the page?

CSS-positioning

A

There’s not change, we can change it with offset properties

46
Q

How does setting position: absolute on an element affect document flow?
CSS-positioning

A

Remove from the normal document flow

47
Q

How does setting position: absolute on an element affect where it appears on the page?
CSS-positioning

A

It won’t affect where it appear, but it can affect depending on where it has to position itself against

48
Q

How do you constrain an absolutely positioned element to a containing block?

CSS-positioning

A

Set the contain clock to position relative or non-static position

49
Q

CSS-positioning