html Flashcards

1
Q

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

A

Head tag

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

Where do you put visable content about the HTML document?

A

Body tag

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

Where do the and tags go in a valid HTML document?

A

Within the HTML tag

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

To tell the browser what type of document it’s working with

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

What are 5 examples of HTML element tags

A

<h1>
</h1>

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

They provide additional information about the 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

A

Copyright symbol, yen, less than sign etc.

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

These elements will always start a new line.

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

These elements will continue on the same line as their 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

The width will always be the full size of its container and the height is what ever height it needs

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

Inline elements take up the size of its contents

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, while an unordered list is bulleted.

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

It 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

An 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

The full web address of the site

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

What is a relative URL?

A

When a page is within the same site and you do not need to specify the domain name. Files within the same file directory

17
Q

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

A

”..” allows you to go to the parent level.

18
Q

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

A

Use the “/” do go further down the tree

19
Q

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

A

”../..” will allow you travel up the tree 2 levels.

20
Q

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

A

Simply write the file name as you are already in the same directory.

21
Q

What is the purpose of an HTML form element?

A

To collect data from users and send data to the server to process

22
Q

Give 5 examples of form control elements

A

input, submit, image, file, text area

23
Q

Give 3 examples of type attributes for HTML elements.

A

text, radio, checkbox

24
Q

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

A

Inline

25
Q

What are the six primary HTML elements for creating tables?

A

table, tr, td, th, thead, tbody

26
Q

What purpose do the thead and tbody elements serve?

A

The thead allows you to style the column data identifier.

tbody allows clarity in seeing the data

27
Q

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

A

Bank account balances, schedules