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 and tags go in a valid HTML document?

A

In 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

To tell the browser we are rocking with HTML5

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

p, h1, img, a, span

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 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 (escape character).

A

Ampersand followed by character name

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

It takes up the whole width of the web page

and also starts 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

It takes up as much space as it needs and no more

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

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

A

Ordered lists are numbered and unordered lists are bullet-pointed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
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
12
Q

What HTML tag is used to link to another website?

A

anchor tag with attribute href

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

What is an absolute URL?

A

Absolute URL is links to web pages like google

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

What is a relative URL?

A

Relative URL is links to relative pages from the currect working 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 parent directory?

A

To parent directory, dot dot slash (../)

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 child directory?

A

To child directory, simply the folder name

17
Q

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

A

To grand parent, dot dot slash x2 (../../)

18
Q

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

A

To same directory, simply the file name

19
Q

What is the purpose of an HTML form element?

A

To submit inputs from users

20
Q

Give five examples of form control elements.

A

input, textarea, select/option, radio, checkbox

21
Q

Give three examples of type attributes for HTML elements.

A

radio, text, checkbox

22
Q

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

A

inline element

23
Q

What are the six primary HTML elements for creating tables?

A

table, thead, tbody, tfoot, th, tr, td

24
Q

What purpose do the thead and tbody elements serve?

A

thead for heading and tbody for remaining data