HTML Flashcards

1
Q

Give 5 examples of html element types

A

H1
P
H2
Span
Section
Ul
Ol

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

What is the purpose of html attributes?

A

to tell us more about the content of that element

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

Give an example of an html entity

A

€ euro € €
© copyright © ©
® registered trademark ® ®

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

How do block-level elements affect the document flow?

A

Always take up a new line. Takes up the full width of the containing block.

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

How do inline elements affect the document flow?

A

they do not force a new line to begin a document flow

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

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

A

in the header

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

Where do you put visible content about the HTML document?

A

in the body

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

Where do the <head> and <body> tags go in a valid HTML document?

A

in between the html tags

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

What is the purpose of a <!DOCTYPE> declaration?

A

It is an “information” to the browser about what document type to expect

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

100% wide and takes height of its inner content

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

Both are the size of the content ;only occupy the 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 list is numbered while unordered is bulletin

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
They’ll be vertical not horizontal

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; 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

Https; protocol
An absolute URL starts with 
the domain name for that site, and can be followed by the path to a specific page. If no page is specified, the site will display the homepage.

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

What is a relative URL?

A

No https

When you are linking to other pages within the same site,
you do not need to specify the domain name in the URL. You can use a shorthand known as a relative URL.

17
Q
  • What is the purpose of an HTMLformelement?
A

to collect user input

18
Q
  • Give five examples of form control elements.
A

Input, select, label, textarea, button

19
Q
  • Give three examples oftypeattribute values for HTML<input></input>elements.
A

Email, text, password, radio

20
Q
  • Is an HTML<input></input>element a block element or an inline element?
A

inline

21
Q

What are the six primary HTML elements for creating tables?

A

Table element, table captions, row groups;thead body, column groups, table rows, table cells

22
Q
  • What purpose do thetheadandtbodyelements serve?
A

provide useful semantic information that can be used when rendering for either screen or printer.

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

Grading, money, sports books

24
Q
  • What are the names of the individual pieces of a CSS rule?
A

A selector and declaration block after that its property and value