html attributes Flashcards

(165 cards)

1
Q

accept

A

Specifies the types of files that the server accepts (only for type=”file”)

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

accept-charset

A

Specifies the character encodings that are to be used for the form submission

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

accesskey

A

Specifies a shortcut key to activate/focus an element

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

action

A

Specifies where to send the form-data when a form is submitted

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

alt

A

Specifies an alternate text when the original element fails to display

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

async

A

Specifies that the script is executed asynchronously (only for external scripts)

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

autocomplete

A

Specifies whether the or the element should have autocomplete enabled

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

autofocus

A

Specifies that the element should automatically get focus when the page loads

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

autoplay

A

Specifies that the audio/video will start playing as soon as it is ready

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

charset

A

Specifies the character encoding

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

checked

A

Specifies that an element should be pre-selected when the page loads (for type=”checkbox” or type=”radio”)

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

cite

A

Specifies a URL which explains the quote/deleted/inserted text

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

class

A

Specifies one or more classnames for an element (refers to a class in a style sheet)

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

color

A

Specifies the text color of an element. Use CSS instead

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

cols

A

Specifies the visible width of a text area

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

colspan

A

Specifies the number of columns a table cell should span

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

content

A

Gives the value associated with the http-equiv or name attribute

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

contenteditable

A

Specifies whether the content of an element is editable or not

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

controls

A

Specifies that audio/video controls should be displayed (such as a play/pause button etc)

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

coords

A

Specifies the coordinates of the area

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

data

A

Specifies the URL of the resource to be used by the object

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

data-*

A

Used to store custom data private to the page or application

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

datetime

A

Specifies the date and time

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

default

A

Specifies that the track is to be enabled if the user’s preferences do not indicate that another track would be more appropriate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
defer
Specifies that the script is executed when the page has finished parsing (only for external scripts)
26
dir
Specifies the text direction for the content in an element
27
dirname
Specifies that the text direction will be submitted
28
disabled
Specifies that the specified element/group of elements should be disabled
29
download
Specifies that the target will be downloaded when a user clicks on the hyperlink
30
draggable
Specifies whether an element is draggable or not
31
dropzone
Specifies whether the dragged data is copied, moved, or linked, when dropped
32
enctype
Specifies how the form-data should be encoded when submitting it to the server (only for method="post")
33
for
Specifies which form element(s) a label/calculation is bound to
34
form
Specifies the name of the form the element belongs to
35
formaction
Specifies where to send the form-data when a form is submitted. Only for type="submit"
36
headers
Specifies one or more headers cells a cell is related to
37
height
Specifies the height of the element
38
hidden
Specifies that an element is not yet, or is no longer, relevant
39
high
Specifies the range that is considered to be a high value
40
href
Specifies the URL of the page the link goes to
41
hreflang
Specifies the language of the linked document
42
http-equiv
Provides an HTTP header for the information/value of the content attribute
43
id
Specifies a unique id for an element
44
ismap
Specifies an image as a server-side image-map
45
kind
Specifies the kind of text track
46
label
Specifies the title of the text track
47
lang
Specifies the language of the element's content
48
list
Refers to a element that contains pre-defined options for an element
49
loop
Specifies that the audio/video will start over again, every time it is finished
50
low
Specifies the range that is considered to be a low value
51
max
Specifies the maximum value
52
maxlength
Specifies the maximum number of characters allowed in an element
53
media
Specifies what media/device the linked document is optimized for
54
method
Specifies the HTTP method to use when sending form-data
55
min
Specifies a minimum value
56
multiple
Specifies that a user can enter more than one value
57
muted
Specifies that the audio output of the video should be muted
58
name
Specifies the name of the element
59
novalidate
Specifies that the form should not be validated when submitted
60
onabort
Script to be run on abort
61
onafterprint
Script to be run after the document is printed
62
onbeforeprint
Script to be run before the document is printed
63
onbeforeunload
Script to be run when the document is about to be unloaded
64
onblur
Script to be run when the element loses focus
65
oncanplay
Script to be run when a file is ready to start playing (when it has buffered enough to begin)
66
oncanplaythrough
Script to be run when a file can be played all the way to the end without pausing for buffering
67
onchange
Script to be run when the value of the element is changed
68
onclick
Script to be run when the element is being clicked
69
oncontextmenu
Script to be run when a context menu is triggered
70
oncopy
Script to be run when the content of the element is being copied
71
oncuechange
Script to be run when the cue changes in a element
72
oncut
Script to be run when the content of the element is being cut
73
ondblclick
Script to be run when the element is being double-clicked
74
ondrag
Script to be run when the element is being dragged
75
ondragend
Script to be run at the end of a drag operation
76
ondragenter
Script to be run when an element has been dragged to a valid drop target
77
ondragleave
Script to be run when an element leaves a valid drop target
78
ondragover
Script to be run when an element is being dragged over a valid drop target
79
ondragstart
Script to be run at the start of a drag operation
80
ondrop
Script to be run when dragged element is being dropped
81
ondurationchange
Script to be run when the length of the media changes
82
onemptied
Script to be run when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects)
83
onended
Script to be run when the media has reach the end (a useful event for messages like "thanks for listening")
84
onerror
Script to be run when an error occurs
85
onfocus
Script to be run when the element gets focus
86
onhashchange
Script to be run when there has been changes to the anchor part of the a URL
87
oninput
Script to be run when the element gets user input
88
oninvalid
Script to be run when the element is invalid
89
onkeydown
Script to be run when a user is pressing a key
90
onkeypress
Script to be run when a user presses a key
91
onkeyup
Script to be run when a user releases a key
92
onload
Script to be run when the element is finished loading
93
onloadeddata
Script to be run when media data is loaded
94
onloadedmetadata
Script to be run when meta data (like dimensions and duration) are loaded
95
onloadstart
Script to be run just as the file begins to load before anything is actually loaded
96
onmousedown
Script to be run when a mouse button is pressed down on an element
97
onmousemove
Script to be run as long as the mouse pointer is moving over an element
98
onmouseout
Script to be run when a mouse pointer moves out of an element
99
onmouseover
Script to be run when a mouse pointer moves over an element
100
onmouseup
Script to be run when a mouse button is released over an element
101
onmousewheel
Script to be run when a mouse wheel is being scrolled over an element
102
onoffline
Script to be run when the browser starts to work offline
103
ononline
Script to be run when the browser starts to work online
104
onpagehide
Script to be run when a user navigates away from a page
105
onpageshow
Script to be run when a user navigates to a page
106
onpaste
Script to be run when the user pastes some content in an element
107
onpause
Script to be run when the media is paused either by the user or programmatically
108
onplay
Script to be run when the media has started playing
109
onplaying
Script to be run when the media has started playing
110
onpopstate
Script to be run when the window's history changes.
111
onprogress
Script to be run when the browser is in the process of getting the media data
112
onratechange
Script to be run each time the playback rate changes (like when a user switches to a slow motion or fast forward mode).
113
onreset
Script to be run when a reset button in a form is clicked.
114
onresize
Script to be run when the browser window is being resized.
115
onscroll
Script to be run when an element's scrollbar is being scrolled
116
onsearch
Script to be run when the user writes something in a search field (for )
117
onseeked
Script to be run when the seeking attribute is set to false indicating that seeking has ended
118
onseeking
Script to be run when the seeking attribute is set to true indicating that seeking is active
119
onselect
Script to be run when the element gets selected
120
onstalled
Script to be run when the browser is unable to fetch the media data for whatever reason
121
onstorage
Script to be run when a Web Storage area is updated
122
onsubmit
Script to be run when a form is submitted
123
onsuspend
Script to be run when fetching the media data is stopped before it is completely loaded for whatever reason
124
ontimeupdate
Script to be run when the playing position has changed (like when the user fast forwards to a different point in the media)
125
ontoggle
Script to be run when the user opens or closes the element
126
onunload
Script to be run when a page has unloaded (or the browser window has been closed)
127
onvolumechange
Script to be run each time the volume of a video/audio has been changed
128
onwaiting
Script to be run when the media has paused but is expected to resume (like when the media pauses to buffer more data)
129
onwheel
Script to be run when the mouse wheel rolls up or down over an element
130
open
Specifies that the details should be visible (open) to the user
131
optimum
Specifies what value is the optimal value for the gauge
132
pattern
Specifies a regular expression that an element's value is checked against
133
placeholder
Specifies a short hint that describes the expected value of the element
134
poster
Specifies an image to be shown while the video is downloading, or until the user hits the play button
135
preload
Specifies if and how the author thinks the audio/video should be loaded when the page loads
136
readonly
Specifies that the element is read-only
137
rel
Specifies the relationship between the current document and the linked document
138
required
Specifies that the element must be filled out before submitting the form
139
reversed
Specifies that the list order should be descending (9,8,7...)
140
rows
Specifies the visible number of lines in a text area
141
rowspan
Specifies the number of rows a table cell should span
142
sandbox
Enables an extra set of restrictions for the content in an
143
scope
Specifies whether a header cell is a header for a column, row, or group of columns or rows
144
selected
Specifies that an option should be pre-selected when the page loads
145
shape
Specifies the shape of the area
146
size
Specifies the width, in characters (for ) or specifies the number of visible options (for )
147
sizes
Specifies the size of the linked resource
148
span
Specifies the number of columns to span
149
spellcheck
Specifies whether the element is to have its spelling and grammar checked or not
150
src
Specifies the URL of the media file
151
srcdoc
Specifies the HTML content of the page to show in the
152
srclang
Specifies the language of the track text data (required if kind="subtitles")
153
srcset
Specifies the URL of the image to use in different situations
154
start
Specifies the start value of an ordered list
155
step
Specifies the legal number intervals for an input field
156
style
Specifies an inline CSS style for an element
157
tabindex
Specifies the tabbing order of an element
158
target
Specifies the target for where to open the linked document or where to submit the form
159
title
Specifies extra information about an element
160
translate
Specifies whether the content of an element should be translated or not
161
type
Specifies the type of element
162
usemap
Specifies an image as a client-side image-map
163
value
Specifies the value of the element
164
width
Specifies the width of the element
165
wrap
Specifies how the text in a text area is to be wrapped when submitted in a form