HTML Flashcards

1
Q

Where do you put non-visible(meta) content in the html document?

A

In the head

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

Where do you put visible content in an html document?

A

In the body

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?

A

Within the html tags

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

What’s the purpose of Doctype Declaration?

A

Tells the browser the version of html

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

html, head, body, title, 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

Provide additional information about the contents of an element

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

What’s an example of a html entity?

A

& amp;

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

Will always start on a new line in browser window & take up entire width.

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

Will continue on the same line as neighboring elements

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

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

A

width: 100%
height: auto

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

What are the default width & height of inline-level elements?

A

width: auto
height: auto

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

What’s the difference between ordered and unordered lists?

A

ordered: each item in list is numbered
unordered: each item in 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 inline?

A

block-level 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

a

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

What is an absolute URL?

A

full web address for a site

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

What is a relative URL?

A

Linking to other pages within the same site/directory

17
Q

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

A

../

18
Q

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

A

child-folder/file.name

19
Q

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

A

../../

20
Q

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

A

“file.name”

21
Q

What is the purpose of an html form element?

A

It represents a document section containing interactive controls for submitting information

22
Q

Give 5 examples of form control elements:

A

input, select, option, button, textarea

23
Q

Give 3 examples of type attributes for html input elements:

A

“text”, “password”, “radio”. “submit”

24
Q

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

A

inline

25
Q

What are the 6 primary html elements for creating tables?

A

table, thead, tr, th, tbody, td

26
Q

What purpose do the thead and tbody elements serve?

A

thead - defines a set of rows(tr) that contain the head(th) of the columns.

tbody - surrounds a set of rows(tr) and table data cells(td) indicating they make up the body.

27
Q

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

A

business financials, test results