HTML Flashcards

1
Q

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

A

Head element (metadata)

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?

A

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

A

html element

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

what is the purpose of a !DOCUMENT declaration?

A

tell a browser which 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 tags

A

h1, p, a, img, span,

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

attributes provide additional information about the contents of an element

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

copyright symbol - ©

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

block-level elements will always appear to start on 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

elements will always appear to continue on the 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

occupies any available width. 100% width, height auto

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

occupies as much space as necessary. width auto, height auto

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 have a identifiable sequence. unordered lists do 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 element

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></a>, anchor tag

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

what is an absolute URL?

A

the full web address for the site

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

what is a relative URL?

A

assumes that the link you add is in the same folder. It is just the name of the file

17
Q

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

18
Q

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

A

use name of child folder, followed by forward slash, then file name

19
Q

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

20
Q

how do you indicate the relative link to the same directory?

A

just use the file name

21
Q

what is the purpose of an HTML form element?

A

allows you to collect data from users

22
Q

give five examples of form control elements

A

text input, text area, radio buttons, checkboxes, submit buttons

23
Q

give three examples of type attributes for HTML < input > elements

A

text, radio, checkbox

24
Q

is an HTML < input > element a block element or an inline element?

25
what are the six primary HTML elements for creating tables?
thead, tbody, tr, th, td, table
26
what purpose do the thead and tbody elements serve?
helps distinguish between main content of the table
27
give two examples of data that would lend itself well to being displayed in a table
financial reports, TV schedules