HTML Flashcards

1
Q

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

A

Between the head element tags

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

Between the body element tags

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

Both go between the html element tag. In head then body fashion

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 the browser which version of HTML to use. No # = latest

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

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 extra information about an 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 (escape character).

A

e with an accent & eacute

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 element elements take up the entire width and push the next sibling element to the next 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

Inline elements 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
Height = max height of content. (auto)
Weight = Takes up all horizontal space (100%)
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

Occupy the space bounded by tags defining element.

Width & Height = auto;

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
  • Ordered lists use numbers

- Unordered use bullets

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

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

Anchor tag with an attribute href

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. Starts with http(s)://

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

What is a relative URL?

A

URL from local directory. Use for pages within same domain

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

Name of child folder, / , file name

19
Q

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

A

../../

20
Q

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

A

Name of file (index.html)

21
Q

What is the purpose of an HTML form element?

A

Enclosure for all form control elements

22
Q

Give 5 examples of form control elements

A

input, textarea, select, button, option

23
Q

Give 3 examples of type attributes for HTML input elements

A

input type=”text,password,email”

24
Q

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

A

Inline

25
Q

What are the 6 primary HTML elements for creating tables?

A

Table, thead, tbody, th, tr, td

26
Q

What purpose do the thead and tbody elements serve?

A

Semantics purposes, based on their content

27
Q

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

A

Schedules(Calendar), Listing Data, Grocery List

28
Q

What are the names of the individual pieces of a CSS rule?

A

Selector {Declaration}

Property:Value

29
Q

In CSS, how do you select elements by theirclassattribute?

A

.className

30
Q

In CSS, how do you select elements by their type?

A

Name of the element

31
Q

In CSS, how do you select an element by itsidattribute?

A

idName