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

Within the HTML opening and closing tags. Head goes first and body goes after

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 let the browser know that it is HTML

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

Give five examples of HTML element tags.

A

doctype declaration, html, head, title, body, header

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 modify elements

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

an HTML entity is a character that would be interpreted one way by the code editor, so we substitute it with other characters and symbols.

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

What are the default width and height of an inline element?

A

Both auto

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

What are the default width and height of a block-level element?

A

Default width: 100%

Default height: auto

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

How do inline elements affect the document flow?

A

inline elements will occupy as much space as they need to

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

How do block-level elements affect the document flow?

A

block-level elements will take up the whole width and then start a new line

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

block

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

What is the difference between an ordered list and an unordered list in HTML?

A

ordered has numbers while unordered will be bullet points

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 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 the full address of the path to a specific page

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 is for when you do not need to specify the domain name and the page is in a folder that you are using

17
Q

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

A

You include ../ in the file path to indicate that is in the older above the current one and then use the file name

18
Q

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

A

You use the folder name of the child directory and then the file name

19
Q

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

A

You use ../../ at the beginning of the file path to indicate that you are specifying the folder that is above you 2x. Top it off with the file name

20
Q

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

A

You just use the file name

21
Q

What is the purpose of an HTML form element?

A

It allows users to interact with the page, insert data, and choose options

22
Q

Give fixe examples of form control elements:

A

there is input, textarea, select, option, label, button, fieldset, legend

23
Q

Give three examples of type attributes for HTML input elements

A

text, password, radio, checkbox, file, submit, image

24
Q

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

A

an input element is inline

25
Q

What are the six primary HTML elements for creating tables?

A

table, tr, td, th, theader, tbody, tfoot

26
Q

What purpose do the thead and tbody elements serve?

A

thead is for creating a header for the columns of your table and tbody is where you will input most of the data for your table

27
Q

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

A

large amounts of data, phone numbers, charts, etc.