HTML Flashcards

1
Q

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

A

in the head 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

in the 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

in the html element (in between the html element tags)

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

it is 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

html, h1-h6, title, body, div

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 add more information about that specific element, to group certain elements together in order to style them later with CSS

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

to write < in html, you would use “&li;” (w/o quotation marks)
to write & in html, you would use “&” (w/o quotation marks)
*format is: (ampersand symbol)(whatever abbreviation used for that symbol/character)(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

they take up the entire width of the page (do not share space with other elements)

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

they take up only as much space as needed on the page (shares space with other 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

default width is entire width of page

default height is height of 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

default width is just the amount needed on page

default height is the height of 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

ordered list is numbered by default (has an order/sequential)
unordered list has bullet points by default (doesnt have an order)
*can modify numbers and bullet pts with css later on

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

ul, ol elements are block elements

li element is 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

anchor element (a)

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

What is an absolute URL?

A

has entire domain name

links to external websites/links

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

What is a relative URL?

A

no need to write domain name

links to areas within same website

17
Q

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

A

../file name

18
Q

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

A

child directory name/file name

19
Q

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

A

../../file name

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

sets up a boundary for a section a user is able to interact with (add data/information)

22
Q

Give five examples of form control elements.

A

option, input, select, button, text area

23
Q

Give three examples of type attribute values for HTML input elements.

A

text, radio, submit, password

24
Q

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

A

inline element

25
What are the six primary HTML elements for creating tables?
table, thead, tbody, th, tr, td
26
What purpose do the thead and tbody elements serve?
thead for the head/header content tbody for the body content (are grouping agents essentially)
27
Give two examples of data that would lend itself well to being displayed in a table.
stock reports, grades, sports results, train timetables