HTML Flashcards

1
Q

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

A

In the head element, the head element stores metadata(information about information)

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

Between the opening the tag for the html element and the closing tag for the 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

Doctype declarations are to declare what kind of document version it pertains to..

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, body, head, title, 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 give additional information about the 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

&trade ; for trademark

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 start a new line and take up the entire width

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

Inline elements appear 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

Entire horizontal space and vertical space is height of the contents or also know as 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

Height is height of the content or auto, width is the width of the content or 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

An ordered list is numbered, and unordered list has 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

Html list 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

The 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

An absolute url is when a url takes you to whole new website and has domain / https protocol

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

What is a relative URL?

A

A relative url takes you to different section of the same website. no domain name, https

17
Q

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

A

../filename

18
Q

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

A

child directory/filename

19
Q

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

A

../../filename

20
Q

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

A

File name

21
Q

What is the purpose of an HTML form element?

A

element represents a document section(boundaries) containing interactive controls for submitting information.

22
Q

Give five examples of form control elements.

A

Input textarea select option button

23
Q

Give three examples of type attribute values for HTML elements.

A

Text, submit, password

24
Q

Is an HTML input 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, td tfoot table

26
Q

What purpose do the thead and tbody elements serve?

A

Headings of the table sit inside this element, body sits inside body element

27
Q

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

A

Sports stats, broadcast schedules.