html Flashcards

1
Q

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

A

within the head element; more specifically, within the html element but before the body 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?

A

within the body element; within the html element but after the head 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

within the html element; and similar to a human: head on top and body in the middle/bottom

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

what is the purpose of the doctype declaration?

A

defines the document type [look up if the browser needs this/what it does when it is aware of this]

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

head, body, headers, paragraphs, button

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

modifier of an html element type; modifies the default functionality of an element type or provides functionality to certain element types unable to function correctly without them; provides more information to the respective html 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

and copy semicolon

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

consume all of the space in the inline direction

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

unbroken text flow; display in line

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

width of a block-level element is the length of the page; height of a block-level element is the height of the content

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

width of an inline element is the width of the content; height of an inline element is the 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?

A

ol is ordered via 1, 2, 3, 4, or otherwise specified (i.e., you can change the list type); ul is unordered via bullet points (discs), or otherwise

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

anchor element

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

what is an absolute URL?

A

domain url

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

what is a relative URL?

A

w/in directory

17
Q

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

A

two dots and a slash

18
Q

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

A

one dot and a slash

19
Q

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

A

three dots(?) and a slash

20
Q

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

21
Q

what is the purpose of an HTML form element?

A

input, data, etc

22
Q

give five examples of form control elements

A

checkbox, password, text, radio image

23
Q

give three examples of type attributes for HTML elements.

A

text, email, radio

24
Q

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

25
what are the six primary HTML elements for creating tables?
form, fieldset, input, label, legend
26
what purpose do the thead and tbody elements serve?
headers/titles of the data as opposed to the data itself
27
give two examples of data that would lend itself well to being displayed in a table
location, time
28
what's the purpose of html compared to css
setting the layout of the document as opposed to styling the document