Global Attributes Flashcards

1
Q

accesskey=””

A

Access key attribute
Specifies a shortcut key to
activate and focus an element

Mus be a single alphanumeric

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

class=””

A
Class attribute specifies class 
names for the element to point
to a class in a stylesheet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

contenteditable=””

A

Content editable specifies whether:

true: content can be edited
false: content cannot be edited

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

data-*=””

A

allows string data to be associated to the element

  • can be any name
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

dir=””

A

The direction attribute specifies
the text direction of the element

ltr : left to right
rtl : right to left

auto : browser defined

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

draggable=””

A

true: can drag the element
false: cannot drag the element
auto: browser defined

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

hidden

A

Hides a specified element by default
Used for what is not yet relevant
Or what is no longer relevant

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

id=””

A

assigns a unique id to the element

helps to style and
manipulate the DOM

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

lang=””

A

The language attribute specifies
what language code is used for the
element

i.e. “fr” French, “en” English

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

spellcheck=””

A

true|false can be used in:

Text values in input elements
(Not Password)

editable elements

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

style=””

A

The style attribute allows for
in-line styling of elements
(not preferable)

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

tabindex=”n”

A

n being an integer

Sets the order elements are selected
with the tab key

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

title=””

A

The title attribute adds tooltip
text to an element

(mouse over)

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

translate=””

A

yes|no

Specifies whether an element should
be translated

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

role=””

A

Assigns an aria role to an element for screen readers and other accessibility tools

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