html attributes Flashcards Preview

Html > html attributes > Flashcards

Flashcards in html attributes Deck (165)
Loading flashcards...
1
Q

accept

A

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

2
Q

accept-charset

A

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

3
Q

accesskey

A

Specifies a shortcut key to activate/focus an element

4
Q

action

A

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

5
Q

alt

A

Specifies an alternate text when the original element fails to display

6
Q

async

A

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

7
Q

autocomplete

A

Specifies whether the or the element should have autocomplete enabled

8
Q

autofocus

A

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

9
Q

autoplay

A

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

10
Q

charset

A

Specifies the character encoding

11
Q

checked

A

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

12
Q

cite

A

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

13
Q

class

A

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

14
Q

color

A

Specifies the text color of an element. Use CSS instead

15
Q

cols

A

Specifies the visible width of a text area

16
Q

colspan

A

Specifies the number of columns a table cell should span

17
Q

content

A

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

18
Q

contenteditable

A

Specifies whether the content of an element is editable or not

19
Q

controls

A

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

20
Q

coords

A

Specifies the coordinates of the area

21
Q

data

A

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

22
Q

data-*

A

Used to store custom data private to the page or application

23
Q

datetime

A

Specifies the date and time

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

25
Q

defer

A

Specifies that the script is executed when the page has finished parsing (only for external scripts)

26
Q

dir

A

Specifies the text direction for the content in an element

27
Q

dirname

A

Specifies that the text direction will be submitted

28
Q

disabled

A

Specifies that the specified element/group of elements should be disabled

29
Q

download

A

Specifies that the target will be downloaded when a user clicks on the hyperlink

30
Q

draggable

A

Specifies whether an element is draggable or not

31
Q

dropzone

A

Specifies whether the dragged data is copied, moved, or linked, when dropped

32
Q

enctype

A

Specifies how the form-data should be encoded when submitting it to the server (only for method=”post”)

33
Q

for

A

Specifies which form element(s) a label/calculation is bound to

34
Q

form

A

Specifies the name of the form the element belongs to

35
Q

formaction

A

Specifies where to send the form-data when a form is submitted. Only for type=”submit”

36
Q

headers

A

Specifies one or more headers cells a cell is related to

37
Q

height

A

Specifies the height of the element

38
Q

hidden

A

Specifies that an element is not yet, or is no longer, relevant

39
Q

high

A

Specifies the range that is considered to be a high value

40
Q

href

A

Specifies the URL of the page the link goes to

41
Q

hreflang

A

Specifies the language of the linked document

42
Q

http-equiv

A

Provides an HTTP header for the information/value of the content attribute

43
Q

id

A

Specifies a unique id for an element

44
Q

ismap

A

Specifies an image as a server-side image-map

45
Q

kind

A

Specifies the kind of text track

46
Q

label

A

Specifies the title of the text track

47
Q

lang

A

Specifies the language of the element’s content

48
Q

list

A

Refers to a element that contains pre-defined options for an element

49
Q

loop

A

Specifies that the audio/video will start over again, every time it is finished

50
Q

low

A

Specifies the range that is considered to be a low value

51
Q

max

A

Specifies the maximum value

52
Q

maxlength

A

Specifies the maximum number of characters allowed in an element

53
Q

media

A

Specifies what media/device the linked document is optimized for

54
Q

method

A

Specifies the HTTP method to use when sending form-data

55
Q

min

A

Specifies a minimum value

56
Q

multiple

A

Specifies that a user can enter more than one value

57
Q

muted

A

Specifies that the audio output of the video should be muted

58
Q

name

A

Specifies the name of the element

59
Q

novalidate

A

Specifies that the form should not be validated when submitted

60
Q

onabort

A

Script to be run on abort

61
Q

onafterprint

A

Script to be run after the document is printed

62
Q

onbeforeprint

A

Script to be run before the document is printed

63
Q

onbeforeunload

A

Script to be run when the document is about to be unloaded

64
Q

onblur

A

Script to be run when the element loses focus

65
Q

oncanplay

A

Script to be run when a file is ready to start playing (when it has buffered enough to begin)

66
Q

oncanplaythrough

A

Script to be run when a file can be played all the way to the end without pausing for buffering

67
Q

onchange

A

Script to be run when the value of the element is changed

68
Q

onclick

A

Script to be run when the element is being clicked

69
Q

oncontextmenu

A

Script to be run when a context menu is triggered

70
Q

oncopy

A

Script to be run when the content of the element is being copied

71
Q

oncuechange

A

Script to be run when the cue changes in a element

72
Q

oncut

A

Script to be run when the content of the element is being cut

73
Q

ondblclick

A

Script to be run when the element is being double-clicked

74
Q

ondrag

A

Script to be run when the element is being dragged

75
Q

ondragend

A

Script to be run at the end of a drag operation

76
Q

ondragenter

A

Script to be run when an element has been dragged to a valid drop target

77
Q

ondragleave

A

Script to be run when an element leaves a valid drop target

78
Q

ondragover

A

Script to be run when an element is being dragged over a valid drop target

79
Q

ondragstart

A

Script to be run at the start of a drag operation

80
Q

ondrop

A

Script to be run when dragged element is being dropped

81
Q

ondurationchange

A

Script to be run when the length of the media changes

82
Q

onemptied

A

Script to be run when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects)

83
Q

onended

A

Script to be run when the media has reach the end (a useful event for messages like “thanks for listening”)

84
Q

onerror

A

Script to be run when an error occurs

85
Q

onfocus

A

Script to be run when the element gets focus

86
Q

onhashchange

A

Script to be run when there has been changes to the anchor part of the a URL

87
Q

oninput

A

Script to be run when the element gets user input

88
Q

oninvalid

A

Script to be run when the element is invalid

89
Q

onkeydown

A

Script to be run when a user is pressing a key

90
Q

onkeypress

A

Script to be run when a user presses a key

91
Q

onkeyup

A

Script to be run when a user releases a key

92
Q

onload

A

Script to be run when the element is finished loading

93
Q

onloadeddata

A

Script to be run when media data is loaded

94
Q

onloadedmetadata

A

Script to be run when meta data (like dimensions and duration) are loaded

95
Q

onloadstart

A

Script to be run just as the file begins to load before anything is actually loaded

96
Q

onmousedown

A

Script to be run when a mouse button is pressed down on an element

97
Q

onmousemove

A

Script to be run as long as the mouse pointer is moving over an element

98
Q

onmouseout

A

Script to be run when a mouse pointer moves out of an element

99
Q

onmouseover

A

Script to be run when a mouse pointer moves over an element

100
Q

onmouseup

A

Script to be run when a mouse button is released over an element

101
Q

onmousewheel

A

Script to be run when a mouse wheel is being scrolled over an element

102
Q

onoffline

A

Script to be run when the browser starts to work offline

103
Q

ononline

A

Script to be run when the browser starts to work online

104
Q

onpagehide

A

Script to be run when a user navigates away from a page

105
Q

onpageshow

A

Script to be run when a user navigates to a page

106
Q

onpaste

A

Script to be run when the user pastes some content in an element

107
Q

onpause

A

Script to be run when the media is paused either by the user or programmatically

108
Q

onplay

A

Script to be run when the media has started playing

109
Q

onplaying

A

Script to be run when the media has started playing

110
Q

onpopstate

A

Script to be run when the window’s history changes.

111
Q

onprogress

A

Script to be run when the browser is in the process of getting the media data

112
Q

onratechange

A

Script to be run each time the playback rate changes (like when a user switches to a slow motion or fast forward mode).

113
Q

onreset

A

Script to be run when a reset button in a form is clicked.

114
Q

onresize

A

Script to be run when the browser window is being resized.

115
Q

onscroll

A

Script to be run when an element’s scrollbar is being scrolled

116
Q

onsearch

A

Script to be run when the user writes something in a search field (for )

117
Q

onseeked

A

Script to be run when the seeking attribute is set to false indicating that seeking has ended

118
Q

onseeking

A

Script to be run when the seeking attribute is set to true indicating that seeking is active

119
Q

onselect

A

Script to be run when the element gets selected

120
Q

onstalled

A

Script to be run when the browser is unable to fetch the media data for whatever reason

121
Q

onstorage

A

Script to be run when a Web Storage area is updated

122
Q

onsubmit

A

Script to be run when a form is submitted

123
Q

onsuspend

A

Script to be run when fetching the media data is stopped before it is completely loaded for whatever reason

124
Q

ontimeupdate

A

Script to be run when the playing position has changed (like when the user fast forwards to a different point in the media)

125
Q

ontoggle

A

Script to be run when the user opens or closes the element

126
Q

onunload

A

Script to be run when a page has unloaded (or the browser window has been closed)

127
Q

onvolumechange

A

Script to be run each time the volume of a video/audio has been changed

128
Q

onwaiting

A

Script to be run when the media has paused but is expected to resume (like when the media pauses to buffer more data)

129
Q

onwheel

A

Script to be run when the mouse wheel rolls up or down over an element

130
Q

open

A

Specifies that the details should be visible (open) to the user

131
Q

optimum

A

Specifies what value is the optimal value for the gauge

132
Q

pattern

A

Specifies a regular expression that an element’s value is checked against

133
Q

placeholder

A

Specifies a short hint that describes the expected value of the element

134
Q

poster

A

Specifies an image to be shown while the video is downloading, or until the user hits the play button

135
Q

preload

A

Specifies if and how the author thinks the audio/video should be loaded when the page loads

136
Q

readonly

A

Specifies that the element is read-only

137
Q

rel

A

Specifies the relationship between the current document and the linked document

138
Q

required

A

Specifies that the element must be filled out before submitting the form

139
Q

reversed

A

Specifies that the list order should be descending (9,8,7…)

140
Q

rows

A

Specifies the visible number of lines in a text area

141
Q

rowspan

A

Specifies the number of rows a table cell should span

142
Q

sandbox

A

Enables an extra set of restrictions for the content in an

143
Q

scope

A

Specifies whether a header cell is a header for a column, row, or group of columns or rows

144
Q

selected

A

Specifies that an option should be pre-selected when the page loads

145
Q

shape

A

Specifies the shape of the area

146
Q

size

A

Specifies the width, in characters (for ) or specifies the number of visible options (for )

147
Q

sizes

A

Specifies the size of the linked resource

148
Q

span

A

Specifies the number of columns to span

149
Q

spellcheck

A

Specifies whether the element is to have its spelling and grammar checked or not

150
Q

src

A

Specifies the URL of the media file

151
Q

srcdoc

A

Specifies the HTML content of the page to show in the

152
Q

srclang

A

Specifies the language of the track text data (required if kind=”subtitles”)

153
Q

srcset

A

Specifies the URL of the image to use in different situations

154
Q

start

A

Specifies the start value of an ordered list

155
Q

step

A

Specifies the legal number intervals for an input field

156
Q

style

A

Specifies an inline CSS style for an element

157
Q

tabindex

A

Specifies the tabbing order of an element

158
Q

target

A

Specifies the target for where to open the linked document or where to submit the form

159
Q

title

A

Specifies extra information about an element

160
Q

translate

A

Specifies whether the content of an element should be translated or not

161
Q

type

A

Specifies the type of element

162
Q

usemap

A

Specifies an image as a client-side image-map

163
Q

value

A

Specifies the value of the element

164
Q

width

A

Specifies the width of the element

165
Q

wrap

A

Specifies how the text in a text area is to be wrapped when submitted in a form