Attributes Flashcards

(14 cards)

1
Q

What do the name/value pairs in attributes look like in HTML?

A

name=”value”

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

What tag defines a hyperlink?

A

<a>…</a>

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

What attribute specifies the URL of the page the link goes to?

A

href=”…”

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

What tag is used to embed an image in an HTML page?

A

<img></img>

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

What attribute specifies the path to the image to be displayed?

A

src=”…”

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

What attributes should also be included in the <img></img> tag?

A

width=”…” height=”…”

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

What attribute specifies an alternate text for an image?

A

alt=”…”

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

What attribute should be added inside the <html> tag to declare the language of the Web page?

A

lang=”…”

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

What attribute is used to add styles to an element?

A

style=”…”

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

What attribute defines some extra information about an element?

A

title=”…”

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

What attribute can be assigned in an element in multiple values in the form of a space-separated list?

A

class=”first-value second-value…”

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

Which attribute can be assigned in an element with only one value and no spaces?

A

id=”value”

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

What is the special syntax that is put in the style attribute made of?

A

style=”property:value”

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

Where else can the <style> element be placed to style the elements in the <body>?</style>

A

the <head> element

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