HTML Flashcards

1
Q

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

A

In the head tags

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

Where do you put visible content in the HTML document?

A

In the body tags

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?

A

Inside the html tags

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

What is the purpose of a declaration?

A

To tell the browser what version of HTML the page is using

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

Give five examples of HTML element types.

A

p ;h1 ; span; div; img

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

What is the purpose of HTML attributes?

A

To tell us more about the content of that element | functionality

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

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

A

$ ; % ; & ; ‘

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?

A

Always appear at the start of a new line

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?

A

Always appear on same line as 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?

A

100% of its parent container; height is determined by size of content within the tags

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 element?

A

Based on size of the content the inline element surrounds

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?

A

Ordered lists are numbered(steps in a recipe or instructions) and unordered lists are not(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?

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?

A

<a> tag</a>

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

What is an absolute URL?

A

URL that directs to a different website; Want absolute URLS to open in another tab, use target=”_blank” inside anchor tag

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

What is a relative URL?

A

URL that links to a different page within the same website

17
Q

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

A

Use ../ to indicate the folder above the current one

18
Q

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

A

Use the name of the child folder -> forward slash -> file name

19
Q

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

A

Repeat the ../ to indicate the folder above the current one, then file name

20
Q

How do you indicate the relative link to the same directory?
Exercise

A

Just use file name

21
Q

What is the purpose of an HTML form element?

A

Allow the user to input information; allow webpage to collect information

22
Q

Give five examples of form control elements.

A

Drop down list, checkbox, text input, text area, file input

23
Q

Give three examples of type attribute values for HTML elements.

A

type, name, value, text, radio, checkbox

24
Q

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

A

inline

25
Q

What are the six primary HTML elements for creating tables?

A

thead, tbody, tr, th, td

26
Q

What purpose do the thead and tbody elements serve?

A

more semantic, for developers than users, define break points in the table & data

27
Q

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

A

weather forecasts, patient information, sports statistics, any sort of spreadsheet data