HTML Flashcards

1
Q

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

A

You put in the under the DOCTYPE Dec and before the opening body tag
(ie: this is where the meta data head and title are)

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

You put this between the opening body tag closing body tag

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

between html tags

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

Is an instruction to the web browser about what version of HTML the page is written in. Helps browsers keep the page similar.

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

h1 p h2 span div img

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. Name = “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

© is the copywrite Html entity

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

They will appear on a new line below the last one

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

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

occupies the entire horizontal space of its parent element (container), and vertical space equal to the height of its contents, thereby creating a “block”.

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

Space bounded by the tags defining the element.

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 are lists where each item in the list is numbered. Are lists that begin with bullet points.

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

Lists are block elements

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

the 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

It is a url that is to be posted to another website

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

What is a relative URL?

A

It links within the same site and doesnt need a different domain name

17
Q

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

A

../FILE

18
Q

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

A

Name of the child then /

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

” ./”

21
Q

What is the purpose of an HTML form element?

A

It allows you to perform different functions on the internet like search, shopping and newsletters etc..

22
Q

Give five examples of form control elements.

A

text-input, radio buttons, checkboxes, image buttons, submit buttons,

23
Q

Give three examples of type attributes for HTML elements.

A

button, check-box, color, date, email

24
Q

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

A

It is an inline element

25
Q

What are the six primary HTML elements for creating tables?

A

“table” “tr” “td” “th” “tbody “thead“

26
Q

What purpose do the thead and tbody elements serve?

A

Give information to describe the table. It is additional information for screen readers.

27
Q

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

A

Sports stats and results, class schedule

28
Q

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

A

property and value

29
Q

In CSS, how do you select elements by their class attribute

A

class= value . value {

30
Q

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

A

matching the elements names (ex. all “p” tags = p { )

31
Q

In CSS, how do you select an element by its id attribute?

A

id =”value” # value {