HTML Attributes Flashcards

1
Q

Used along with img element for selecting the source path of that image

A

src

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

Alternative text for image

A

alt

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

When setting this fixed you could have a hard time overriding it later in CSS

A

width

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

Dimensions in HTML? (Height / Width)

A

Better to set it in the CSS

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

Set path in hyperlink

A

href

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

Opens new page

A

target (target = “_blank”)

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

Refers to relation for example stylesheet

A

rel

The rel attribute defines the relationship between a linked resource and the current document. Valid on <link></link>, <a>, <area></area>, and <form>, the supported values depend on the element on which the attribute is found.</a>

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