Extra Practice & Common Concepts Flashcards

(16 cards)

1
Q

What is nesting in HTML?

A

Placing one element inside another, e.g, <p><strong>text</strong></p>.

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

What is semantic HTML?

A

HTML that uses tags to convey meaning, like <article>, <header>, <footer>.

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

What is the difference between block & inline elements?

A

Block elements start on a new line; Inline elements do not.

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

Is HTML case-sensitive?

A

HTML tags are not case-sensitive, but lowecase is recommended for HTML5.

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

What does <meta></meta> do?

A

Specifies the character encoding as UTF-8, supporting most characters.

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

What tag links an external CSS file?

A

<link rel=”stylesheet” href=”style.css> in the <head> section.

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

How do you add script in HTML?

A

Use

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

Where should scripts ideally be placed?

A

At the end of the <body> for better page loading performance.

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

What tag is used to group content in a block?

A

<div> is a generic block-level container.
</div>

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

What tag is used to group inline elements?

A

<span> is a generic inline container.</span>

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

Can HTMl be used without CSS & JavaScript?

A

Yes, but the page will lack styling & interactivity.

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

What is the purpose of the <base></base> tag in <head>?

A

Sets a base URL for relative links in the document.

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

How do you add a favicon to a webpage?

A

Use <link></link> in <head>.

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

What is white space in HTML?

A

Spaces, tabs, & line breaks that are ignored unless inside <pre>.

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

What is the lang attribute’s effect on accessibility?

A

It helps screen readers & search engines interpret the language properly.

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

What happens if you put HTMl elements in the wrong order?

A

It can cause rendering issues & unexpected layout problems.