HTML Tags and Attributes Flashcards

Learn common Tags and Attributes

1
Q

What is the difference between the href and src attributes?

A

HREF is for referencing external resources while SRC references resources within a project

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

How many heading tags are there?

A

6

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

what is < span > used for?

A

allowing something to be style in-line

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

by default, what is the < em > tag for?

A

making text italic

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

by default what is the < strong > tag for?

A

making text bold

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

the < body > tag is use for…

A

everything that goes on the page itself

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

the < head > tag is for…

A

machine readable information, such as the title, links to style sheets, scripts, char sets, and other metadata

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

What is a very basic security measure to ensure no foreign stylesheet or script injections?

A

an SRI hash on the root CSS file and any js files in html

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

What is the difference between a hash and an encryption?

A

Hash just jumbles, encryption means the intended sender and receiver have a key to hash and unhash their communication

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

What are things like $nbsp; called?

A

HTML entities

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

What is a HTML entity?

A

things such as $nbsp; to be used to escape HTML special chars, anything with $ ;

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