HTML Flashcards

1
Q

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

A

Non-visible content goes 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

visible content goes within the body of of the document.

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

The head and body element are children of 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 declaration?

A

The purpose of a declaration is to show the user what type of document you are 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

Head, body, title, html, p.

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

The purpose of html attributes are to adjust the display and behavior of an 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

An example of a html entity is the ampersand copy ©

ampersand reg ®

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 element start a new line and take up as much space as needed horizontally.

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 element only take up the space that they need (size of element).

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

The default height and width of a block-level element are

height: auto
width: 100%

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

The default width and height of an inline is that it only takes up the space necessary.

height: auto
width: 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 unordered list is with bullet points and an Ordered list is numbered.

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

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

A

../ then directory

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

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

A

name of the child folder followed by a forward slash then the file name

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 grand parent directory?

A

../../ then file name

17
Q

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

A

you just type out the file name.

18
Q

What HTML tag is used to link to another website?

A

<a> anchor tag</a>

19
Q

What is an absolute URL?

A

an absolute url is a url that contains https://

20
Q

What is a relative URL?

A

A relative URL is a URL that follows a path within the same document

21
Q

What are the six primary HTML elements for creating tables?

A

thead, tbody, tfoot, , th tr td

22
Q

What purpose do the thead and tbody elements serve?

A

The thead element is used to show that whats in the head is important and the tbody is used to let the user know what is used within most of the document.

23
Q

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

A

Stocks or Sports

24
Q

What is the purpose of an HTML form element?

A

The purpose is to have the user interact with the webpage

25
Q

Give five examples of form control elements.

A

select, label, input, option, button,

26
Q

Give three examples of type attribute values for HTML elements.

A

type=”text”
type=”radio”
type”checkbox”

27
Q

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

A

It is an inline element