HTML Flashcards

1
Q

Block elements (3)

A
  1. Fills width of parent container
  2. Can contain block, inline and text.
  3. <div> , <h1>, </h1> </div>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Inline elements (3)

A
  1. Fill minimum space possible in parent container
  2. Can contain only inline elements or text.
  3. <a> , <span> </span></a>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Tag (2)

A
  1. Markup instruction

2. Start with “”

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

Attribute (2)

A
  1. A value which provides additional info on the tag

2. Has a name and a value

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

Class attr (3)

A
  1. Specifies the class to which the tag belongs.
  2. CSS and JS can modify all tags belonging to class.
  3. A tag can belong to multiple classes.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Separation of concerns (1)

A
  1. Use different files for css and JS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Import JS and CSS (2)

A
  1. JS ->

2. CSS -> <link></link>

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