Module: FunHtml::AttributeDefinitions

Included in:
Attribute
Defined in:
lib/fun_html/attribute_definitions.rb

Overview

HTML attributes autogenerated, do not edit

Instance Method Summary collapse

Instance Method Details

#accept(value) ⇒ Object

Specifies file types browser will accept



7
8
# File 'lib/fun_html/attribute_definitions.rb', line 7

def accept(value) = write(' accept="', value)
# Character encodings used for form submission

#accept_charset(value) ⇒ Object

Character encodings used for form submission



9
10
# File 'lib/fun_html/attribute_definitions.rb', line 9

def accept_charset(value) = write(' accept-charset="', value)
# Keyboard shortcut to access element

#accesskey(value) ⇒ Object

Keyboard shortcut to access element



11
12
# File 'lib/fun_html/attribute_definitions.rb', line 11

def accesskey(value) = write(' accesskey="', value)
# URL where form data is submitted

#action(value) ⇒ Object

URL where form data is submitted



13
14
# File 'lib/fun_html/attribute_definitions.rb', line 13

def action(value) = write(' action="', value)
# Alignment of content

#align(value) ⇒ Object

Alignment of content



15
16
# File 'lib/fun_html/attribute_definitions.rb', line 15

def align(value) = write(' align="', value)
# Alternative text for images

#alt(value) ⇒ Object

Alternative text for images



17
18
# File 'lib/fun_html/attribute_definitions.rb', line 17

def alt(value) = write(' alt="', value)
# Script should execute asynchronously

#async(state = true) ⇒ Object

Script should execute asynchronously



19
20
# File 'lib/fun_html/attribute_definitions.rb', line 19

def async(state = true) = write_empty(' async', state)
# Form/input autocompletion

#autocomplete(value) ⇒ Object

Form/input autocompletion



21
22
# File 'lib/fun_html/attribute_definitions.rb', line 21

def autocomplete(value) = write(' autocomplete="', value)
# Element should be focused on page load

#autofocus(state = true) ⇒ Object

Element should be focused on page load



23
24
# File 'lib/fun_html/attribute_definitions.rb', line 23

def autofocus(state = true) = write_empty(' autofocus', state)
# Media will start playing automatically

#autoplay(state = true) ⇒ Object

Media will start playing automatically



25
26
# File 'lib/fun_html/attribute_definitions.rb', line 25

def autoplay(state = true) = write_empty(' autoplay', state)
# Background color of element

#bgcolor(value) ⇒ Object

Background color of element



27
28
# File 'lib/fun_html/attribute_definitions.rb', line 27

def bgcolor(value) = write(' bgcolor="', value)
# Border width in pixels

#border(value) ⇒ Object

Border width in pixels



29
30
# File 'lib/fun_html/attribute_definitions.rb', line 29

def border(value) = write(' border="', value)
# Character encoding of document

#charset(value) ⇒ Object

Character encoding of document



31
32
# File 'lib/fun_html/attribute_definitions.rb', line 31

def charset(value) = write(' charset="', value)
# Whether checkbox/radio button is selected

#checked(state = true) ⇒ Object

Whether checkbox/radio button is selected



33
34
# File 'lib/fun_html/attribute_definitions.rb', line 33

def checked(state = true) = write_empty(' checked', state)
# CSS class name(s) for styling

#cols(value) ⇒ Object

Number of columns in textarea



37
38
# File 'lib/fun_html/attribute_definitions.rb', line 37

def cols(value) = write(' cols="', value)
# Number of columns a cell spans

#colspan(value) ⇒ Object

Number of columns a cell spans



39
40
# File 'lib/fun_html/attribute_definitions.rb', line 39

def colspan(value) = write(' colspan="', value)
# Content for meta tags

#content(value) ⇒ Object

Content for meta tags



41
42
# File 'lib/fun_html/attribute_definitions.rb', line 41

def content(value) = write(' content="', value)
# Whether content is editable

#contenteditable(value) ⇒ Object

Whether content is editable



43
44
# File 'lib/fun_html/attribute_definitions.rb', line 43

def contenteditable(value) = write(' contenteditable="', value)
# Show media playback controls

#controls(state = true) ⇒ Object

Show media playback controls



45
46
# File 'lib/fun_html/attribute_definitions.rb', line 45

def controls(state = true) = write_empty(' controls', state)
# Coordinates for image maps

#coords(value) ⇒ Object

Coordinates for image maps



47
48
# File 'lib/fun_html/attribute_definitions.rb', line 47

def coords(value) = write(' coords="', value)
# Custom data attributes

#data(value) ⇒ Object

Custom data attributes



49
50
# File 'lib/fun_html/attribute_definitions.rb', line 49

def data(value) = write(' data="', value)
# Date/time of element content

#datetime(value) ⇒ Object

Date/time of element content



51
52
# File 'lib/fun_html/attribute_definitions.rb', line 51

def datetime(value) = write(' datetime="', value)
# Default track for media

#default(state = true) ⇒ Object

Default track for media



53
54
# File 'lib/fun_html/attribute_definitions.rb', line 53

def default(state = true) = write_empty(' default', state)
# Script should execute after parsing

#defer(state = true) ⇒ Object

Script should execute after parsing



55
56
# File 'lib/fun_html/attribute_definitions.rb', line 55

def defer(state = true) = write_empty(' defer', state)
# Text direction

#dir(value) ⇒ Object

Text direction



57
58
# File 'lib/fun_html/attribute_definitions.rb', line 57

def dir(value) = write(' dir="', value)
# Element is disabled

#disabled(state = true) ⇒ Object

Element is disabled



59
60
# File 'lib/fun_html/attribute_definitions.rb', line 59

def disabled(state = true) = write_empty(' disabled', state)
# Resource should be downloaded

#download(value) ⇒ Object

Resource should be downloaded



61
62
# File 'lib/fun_html/attribute_definitions.rb', line 61

def download(value) = write(' download="', value)
# Element can be dragged

#draggable(value) ⇒ Object

Element can be dragged



63
64
# File 'lib/fun_html/attribute_definitions.rb', line 63

def draggable(value) = write(' draggable="', value)
# Form data encoding for submission

#enctype(value) ⇒ Object

Form data encoding for submission



65
66
# File 'lib/fun_html/attribute_definitions.rb', line 65

def enctype(value) = write(' enctype="', value)
# Associates label with form control

#for(value) ⇒ Object

Associates label with form control



67
68
# File 'lib/fun_html/attribute_definitions.rb', line 67

def for(value) = write(' for="', value)
# Form the element belongs to

#form(value) ⇒ Object

Form the element belongs to



69
70
# File 'lib/fun_html/attribute_definitions.rb', line 69

def form(value) = write(' form="', value)
# URL for form submission

#formaction(value) ⇒ Object

URL for form submission



71
72
# File 'lib/fun_html/attribute_definitions.rb', line 71

def formaction(value) = write(' formaction="', value)
# Related header cells for data cell

#headers(value) ⇒ Object

Related header cells for data cell



73
74
# File 'lib/fun_html/attribute_definitions.rb', line 73

def headers(value) = write(' headers="', value)
# Height of element

#height(value) ⇒ Object

Height of element



75
76
# File 'lib/fun_html/attribute_definitions.rb', line 75

def height(value) = write(' height="', value)
# Element is not displayed

#hidden(state = true) ⇒ Object

Element is not displayed



77
78
# File 'lib/fun_html/attribute_definitions.rb', line 77

def hidden(state = true) = write_empty(' hidden', state)
# Upper range of meter

#high(value) ⇒ Object

Upper range of meter



79
80
# File 'lib/fun_html/attribute_definitions.rb', line 79

def high(value) = write(' high="', value)
# URL of linked resource

#href(value) ⇒ Object

URL of linked resource



81
82
# File 'lib/fun_html/attribute_definitions.rb', line 81

def href(value) = write(' href="', value)
# Language of linked resource

#hreflang(value) ⇒ Object

Language of linked resource



83
84
# File 'lib/fun_html/attribute_definitions.rb', line 83

def hreflang(value) = write(' hreflang="', value)
# Unique identifier for element

#id(value) ⇒ Object

Unique identifier for element



85
86
# File 'lib/fun_html/attribute_definitions.rb', line 85

def id(value) = write(' id="', value)
# Subresource integrity hash

#integrity(value) ⇒ Object

Subresource integrity hash



87
88
# File 'lib/fun_html/attribute_definitions.rb', line 87

def integrity(value) = write(' integrity="', value)
# Image is server-side image map

#ismap(state = true) ⇒ Object

Image is server-side image map



89
90
# File 'lib/fun_html/attribute_definitions.rb', line 89

def ismap(state = true) = write_empty(' ismap', state)
# Type of text track

#kind(value) ⇒ Object

Type of text track



91
92
# File 'lib/fun_html/attribute_definitions.rb', line 91

def kind(value) = write(' kind="', value)
# Label for form control/option

#klass(value) ⇒ Object

CSS class name(s) for styling



35
36
# File 'lib/fun_html/attribute_definitions.rb', line 35

def klass(value) = write(' class="', value)
# Number of columns in textarea

#label(value) ⇒ Object

Label for form control/option



93
94
# File 'lib/fun_html/attribute_definitions.rb', line 93

def label(value) = write(' label="', value)
# Language of element content

#lang(value) ⇒ Object

Language of element content



95
96
# File 'lib/fun_html/attribute_definitions.rb', line 95

def lang(value) = write(' lang="', value)
# Links input to datalist options

#list(value) ⇒ Object

Links input to datalist options



97
98
# File 'lib/fun_html/attribute_definitions.rb', line 97

def list(value) = write(' list="', value)
# Media will replay when finished

#loop(state = true) ⇒ Object

Media will replay when finished



99
100
# File 'lib/fun_html/attribute_definitions.rb', line 99

def loop(state = true) = write_empty(' loop', state)
# Lower range of meter

#low(value) ⇒ Object

Lower range of meter



101
102
# File 'lib/fun_html/attribute_definitions.rb', line 101

def low(value) = write(' low="', value)
# Maximum allowed value

#max(value) ⇒ Object

Maximum allowed value



103
104
# File 'lib/fun_html/attribute_definitions.rb', line 103

def max(value) = write(' max="', value)
# Maximum length of input

#maxlength(value) ⇒ Object

Maximum length of input



105
106
# File 'lib/fun_html/attribute_definitions.rb', line 105

def maxlength(value) = write(' maxlength="', value)
# Media type for resource

#media(value) ⇒ Object

Media type for resource



107
108
# File 'lib/fun_html/attribute_definitions.rb', line 107

def media(value) = write(' media="', value)
# HTTP method for form submission

#method(value) ⇒ Object

HTTP method for form submission



109
110
# File 'lib/fun_html/attribute_definitions.rb', line 109

def method(value) = write(' method="', value)
# Minimum allowed value

#min(value) ⇒ Object

Minimum allowed value



111
112
# File 'lib/fun_html/attribute_definitions.rb', line 111

def min(value) = write(' min="', value)
# Multiple values can be selected

#multiple(state = true) ⇒ Object

Multiple values can be selected



113
114
# File 'lib/fun_html/attribute_definitions.rb', line 113

def multiple(state = true) = write_empty(' multiple', state)
# Media is muted by default

#muted(state = true) ⇒ Object

Media is muted by default



115
116
# File 'lib/fun_html/attribute_definitions.rb', line 115

def muted(state = true) = write_empty(' muted', state)
# Name of form control

#name(value) ⇒ Object

Name of form control



117
118
# File 'lib/fun_html/attribute_definitions.rb', line 117

def name(value) = write(' name="', value)
# Form validation is skipped

#novalidate(state = true) ⇒ Object

Form validation is skipped



119
120
# File 'lib/fun_html/attribute_definitions.rb', line 119

def novalidate(state = true) = write_empty(' novalidate', state)
# Details element is expanded

#open(state = true) ⇒ Object

Details element is expanded



121
122
# File 'lib/fun_html/attribute_definitions.rb', line 121

def open(state = true) = write_empty(' open', state)
# Optimal value for meter

#optimum(value) ⇒ Object

Optimal value for meter



123
124
# File 'lib/fun_html/attribute_definitions.rb', line 123

def optimum(value) = write(' optimum="', value)
# Regular expression pattern

#pattern(value) ⇒ Object

Regular expression pattern



125
126
# File 'lib/fun_html/attribute_definitions.rb', line 125

def pattern(value) = write(' pattern="', value)
# Hint text for input field

#placeholder(value) ⇒ Object

Hint text for input field



127
128
# File 'lib/fun_html/attribute_definitions.rb', line 127

def placeholder(value) = write(' placeholder="', value)
# Preview image for video

#poster(value) ⇒ Object

Preview image for video



129
130
# File 'lib/fun_html/attribute_definitions.rb', line 129

def poster(value) = write(' poster="', value)
# How media should be loaded

#preload(value) ⇒ Object

How media should be loaded



131
132
# File 'lib/fun_html/attribute_definitions.rb', line 131

def preload(value) = write(' preload="', value)
# Input field cannot be modified

#readonly(state = true) ⇒ Object

Input field cannot be modified



133
134
# File 'lib/fun_html/attribute_definitions.rb', line 133

def readonly(state = true) = write_empty(' readonly', state)
# Relationship of linked resource

#rel(value) ⇒ Object

Relationship of linked resource



135
136
# File 'lib/fun_html/attribute_definitions.rb', line 135

def rel(value) = write(' rel="', value)
# Input must be filled out

#required(state = true) ⇒ Object

Input must be filled out



137
138
# File 'lib/fun_html/attribute_definitions.rb', line 137

def required(state = true) = write_empty(' required', state)
# List is numbered in reverse

#reversed(state = true) ⇒ Object

List is numbered in reverse



139
140
# File 'lib/fun_html/attribute_definitions.rb', line 139

def reversed(state = true) = write_empty(' reversed', state)
# Number of rows in textarea

#rows(value) ⇒ Object

Number of rows in textarea



141
142
# File 'lib/fun_html/attribute_definitions.rb', line 141

def rows(value) = write(' rows="', value)
# Number of rows a cell spans

#rowspan(value) ⇒ Object

Number of rows a cell spans



143
144
# File 'lib/fun_html/attribute_definitions.rb', line 143

def rowspan(value) = write(' rowspan="', value)
# Security rules for iframe

#sandbox(value) ⇒ Object

Security rules for iframe



145
146
# File 'lib/fun_html/attribute_definitions.rb', line 145

def sandbox(value) = write(' sandbox="', value)
# Cells header element relates to

#scope(value) ⇒ Object

Cells header element relates to



147
148
# File 'lib/fun_html/attribute_definitions.rb', line 147

def scope(value) = write(' scope="', value)
# Option is pre-selected

#selected(state = true) ⇒ Object

Option is pre-selected



149
150
# File 'lib/fun_html/attribute_definitions.rb', line 149

def selected(state = true) = write_empty(' selected', state)
# Shape of image map area

#shape(value) ⇒ Object

Shape of image map area



151
152
# File 'lib/fun_html/attribute_definitions.rb', line 151

def shape(value) = write(' shape="', value)
# Size of input/select control

#size(value) ⇒ Object

Size of input/select control



153
154
# File 'lib/fun_html/attribute_definitions.rb', line 153

def size(value) = write(' size="', value)
# Image sizes for different layouts

#sizes(value) ⇒ Object

Image sizes for different layouts



155
156
# File 'lib/fun_html/attribute_definitions.rb', line 155

def sizes(value) = write(' sizes="', value)
# Element should be spellchecked

#spellcheck(value) ⇒ Object

Element should be spellchecked



157
158
# File 'lib/fun_html/attribute_definitions.rb', line 157

def spellcheck(value) = write(' spellcheck="', value)
# URL of resource

#src(value) ⇒ Object

URL of resource



159
160
# File 'lib/fun_html/attribute_definitions.rb', line 159

def src(value) = write(' src="', value)
# Content for inline frame

#srcdoc(value) ⇒ Object

Content for inline frame



161
162
# File 'lib/fun_html/attribute_definitions.rb', line 161

def srcdoc(value) = write(' srcdoc="', value)
# Language of text track

#srclang(value) ⇒ Object

Language of text track



163
164
# File 'lib/fun_html/attribute_definitions.rb', line 163

def srclang(value) = write(' srclang="', value)
# Images to use in different situations

#srcset(value) ⇒ Object

Images to use in different situations



165
166
# File 'lib/fun_html/attribute_definitions.rb', line 165

def srcset(value) = write(' srcset="', value)
# Starting number for ordered list

#start(value) ⇒ Object

Starting number for ordered list



167
168
# File 'lib/fun_html/attribute_definitions.rb', line 167

def start(value) = write(' start="', value)
# Increment for numeric input

#step(value) ⇒ Object

Increment for numeric input



169
170
# File 'lib/fun_html/attribute_definitions.rb', line 169

def step(value) = write(' step="', value)
# Inline CSS styles

#style(value) ⇒ Object

Inline CSS styles



171
172
# File 'lib/fun_html/attribute_definitions.rb', line 171

def style(value) = write(' style="', value)
# Position in tab order

#tabindex(value) ⇒ Object

Position in tab order



173
174
# File 'lib/fun_html/attribute_definitions.rb', line 173

def tabindex(value) = write(' tabindex="', value)
# Where to open linked document

#target(value) ⇒ Object

Where to open linked document



175
176
# File 'lib/fun_html/attribute_definitions.rb', line 175

def target(value) = write(' target="', value)
# Advisory information about element

#title(value) ⇒ Object

Advisory information about element



177
178
# File 'lib/fun_html/attribute_definitions.rb', line 177

def title(value) = write(' title="', value)
# Whether to translate content

#translate(value) ⇒ Object

Whether to translate content



179
180
# File 'lib/fun_html/attribute_definitions.rb', line 179

def translate(value) = write(' translate="', value)
# Type of element or input

#type(value) ⇒ Object

Type of element or input



181
182
# File 'lib/fun_html/attribute_definitions.rb', line 181

def type(value) = write(' type="', value)
# Image map to use

#usemap(value) ⇒ Object

Image map to use



183
184
# File 'lib/fun_html/attribute_definitions.rb', line 183

def usemap(value) = write(' usemap="', value)
# Value of form control

#value(value) ⇒ Object

Value of form control



185
186
# File 'lib/fun_html/attribute_definitions.rb', line 185

def value(value) = write(' value="', value)
# Width of element

#width(value) ⇒ Object

Width of element



187
188
# File 'lib/fun_html/attribute_definitions.rb', line 187

def width(value) = write(' width="', value)
# How text wraps in textarea

#wrap(value) ⇒ Object

How text wraps in textarea



189
# File 'lib/fun_html/attribute_definitions.rb', line 189

def wrap(value) = write(' wrap="', value)