HTML Flashcards
1
Q
Block elements (3)
A
- Fills width of parent container
- Can contain block, inline and text.
- <div> , <h1>, </h1> </div>
2
Q
Inline elements (3)
A
- Fill minimum space possible in parent container
- Can contain only inline elements or text.
- <a> , <span> </span></a>
3
Q
Tag (2)
A
- Markup instruction
2. Start with “”
4
Q
Attribute (2)
A
- A value which provides additional info on the tag
2. Has a name and a value
5
Q
Class attr (3)
A
- Specifies the class to which the tag belongs.
- CSS and JS can modify all tags belonging to class.
- A tag can belong to multiple classes.
6
Q
Separation of concerns (1)
A
- Use different files for css and JS
7
Q
Import JS and CSS (2)
A
- JS ->
2. CSS -> <link></link>