HTML Flashcards

1
Q

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

A

head

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

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

Where do 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 DOCTYPE declaration

A

Declare to the browser which version of HTML is written

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

What is the purpose of HTML attributes

A

provides additional information about HTML elements. Can be used to change color, size…

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

difference between s and del elements

A

used for search engine optimization (SEO) del is used to show that something is removed and s shows that something is no longer accurate or relevant

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

how do block-level elements affect document flow

A

stacked, takes up the whole width of the page, new line

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

how do inline elements affect the document flow

A

inside parent block and is within line. can continue on the same line as neighboring elements

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

default width and height of block-level element

A

takes up all space horizontally and as much as it needs vertically (auto)

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

default width and height of inline element

A

as much as it needs horizontally and also vertically (both auto)

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

difference between ordered and unordered list

A

ordered specifies number of order it is written in HTML (1,2,3..) unordered is bullet points

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

is an HTML list a block element or an inline element

A

ol and ul are block elements and the li elements are child block elements

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

What HTML tag is used to link to another website?

A

a tag (anchor)

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

What is an absolute URL?

A

link to a specific web address… http//www….

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

What is a relative URL?

A

a link to a page in the same site… usually a file name and folder

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

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

A

../filename

17
Q

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

A

directory/filename

18
Q

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

A

../../filename

19
Q

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

20
Q

What is the purpose of an HTML form element?

A

to submit information from a user input

21
Q

Give five examples of form control elements.

A

input, select, textarea, option, button

22
Q

Give three examples of type attribute values for HTML elements.

A

radio, checkbox, email

23
Q

What is a name attribute for in input element

A

name provides data for the name in a name-value pair that is sent to the server when a form is sent with from the input where value is the user entered value.

24
Q

What are the six primary HTML elements for creating tables?

A

table thead tbody tr td

25
What purpose do the thead and tbody elements serve?
to separate the headings and data values
26
Give two examples of data that would lend itself well to being displayed in a table.
report card, sports statistics