HTML Flashcards

1
Q

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

A

head

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

body

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

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

A

head tag occurs after html tag and before the body tag

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

tells browser that it’s an html document πŸ’‹

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

html, head, title, body, div, p, h1-h6, 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

provide additional info about contents of the element. comprised of a name and value

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

& copy; = copyright
& lsquo; = β€˜
& rsquo; = β€˜
& divide; = division sign

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 elements start on a new line and take all the space as the parent container

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 do NOT start on a new line and only take up as much space as necessary

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

default width is 100% of the viewport, height is 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

cannot be resized, default is auto. width is size of the content

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 (a)

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

What is an absolute URL?

A

linking to a different website (full web address)

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

What is a relative URL?

A

linking pages within the same site

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

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

A

child directory/file name

17
Q

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

A

../../file name

18
Q

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

A

file name

19
Q

What is the purpose of an HTML form element?

A

interactive controls for submitting information to a browser

20
Q

Give five examples of form control elements.

A

input, select, option, label, textarea

21
Q

Give three examples of type attributes for HTML elements.

A

text, radio, button, email, file, submit

22
Q

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

A

inline

23
Q

What are the six primary HTML elements for creating contents

A

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

24
Q

What purpose do the thead and tbody elements serve?

A

separate content

25
Q

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

A

financial information, statistics, tabular data