HTML Elements Flashcards

1
Q

!

A

Pick the first option that shows up, it will prefill default HTML code

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

To write the copyright signal

A

&copy

& + copy

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

Need to tell it’s HTML

A

< !DOCTYPE html >

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

You always need this as first element

A

< head >

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

Title of the page, shows in browser tab

A

< title >

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

Here you can drop the CSS styling if you want it on the same page

A

< style >

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

Used for referring link to stylesheet.

A

< link >

Not the same as < a > element !!< /a >

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

All visible elements

A

< body >

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

Primary heading

A

< h1>

Each page should have only 1 h1 heading
< / h1 >

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

Heading: Marks importance, does not say anything about font size per se

A

< h2 > / < /h2 >< h6 >< /h6 >

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

Use instead of < b >< /b >

A

< strong >

Don’t use < b > but use <strong> instead to make text bold. It marks importance
< /strong >< /b >< /strong ></strong>

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

Use instead of < i >< /i >

A

< em >

Use <em> instead of < i > for italic text
< /i >< /em >< /em ></em>

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

Paragraph.

A

< p >

Paragraph. By closing the < /p > element there will be a space automatically

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

Image element

A

< img >

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

When wanting to create a container element

A

< div > < /div >

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

Ordered list - The entries will be numbered automatically

A

< ol >< /ol >

17
Q

List element

A

< li >

18
Q

Unordered list

A

< ul >< /ul >

19
Q

Anchor element for hyperlink

A

< a >

Inherits the styling from its parent!< /a >

20
Q

Not a visible element but good way of structuring the website when you have a links section for example

A

< nav >

21
Q

Can be anything, like a blog for example

A

< article >

22
Q

< aside >

Used when?

A

Used when wanting to write text aside images. The can then be the container for both

23
Q

< footer >

Used for?

A

Semantic element only

24
Q

< id >

What does it do?

A

Gives the element an id which can be used in the CSS

25
Q

Block-level element

A

Occupy 100% of parent element’s width no matter the content, they are stacked vertically, box models applies

26
Q

Block-level elements types?

A

body, main, header, footer, section, nav, aside, div, h1-h6, p, ul, ol, li, etc

27
Q

Block-level override

A

Override with display:block

28
Q

Inline element - What is it?

A

Occupies only space necessary for its content, causes no line-breaks, box model height and width don’t apply, paddings and margins only apply horizontally

29
Q

Inline element examples

A

a, img, strong, em, button, etc

30
Q

Inline element override

A

Override with display:inline

31
Q

Inline-block what is it?

A

Occupies only content’s space, causes no line-breaks, box-model applies as showed

When set to inline block suddenly there’s a margin on the top and bottom because it behaves partly like a block element now

Images behave as inline-block elements as well. When setting the margin it will be all around the element while in fact still is an inline element

32
Q

Inline block - How does is differ?

A

When set to inline block suddenly there’s a margin on the top and bottom because it behaves partly like a block element now

33
Q

What type of element is image?

A

Images behave as inline-block elements as well. When setting the margin it will be all around the element while in fact still is an inline element