Mindblown: a blog about philosophy.
-
HTML accept-charset Attribute
The HTML accept-charset attribute specifies the character encoding that must be used for the form submission. You can use this attribute only on the <form> element. The attribute value contains a list separated value of one or more encodings. The default value of the attribute is “UNKNOWN”, which indicates that the encoding equals the encoding of the document having…
-
HTML checked Attribute
The HTML checked attribute is a boolean attribute and specifies that an <input> element must be checked when the page loads. You can use this attribute only on the <input> element (<input type=”checkbox”> and <input type=”radio”>). It is also possible to set the checked attribute after the page loads, with JavaScript. Syntax Example of the HTML checked attribute:
-
HTML autoplay Attribute
The HTML autoplay attribute is a boolean attribute and specifies that the audio or video will start playing automatically as soon as possible. You can use this attribute on the following elements: <audio> and <video>. Syntax Example of the HTML autoplay attribute used on the <audio> element: Example of the HTML autoplay attribute used on the <video> element:
-
HTML action Attribute
The HTML action attribute specifies where the form-data should be sent when the form is submitted. Its attribute value (URL) determines where the data must be sent after the form submission. The URL can have the following values: absolute URL, which refers to another website link. relative URL, which refers to a file within a webpage. You…
-
HTML accesskey Attribute
The HTML accesskey attribute is a global attribute and specifies a shortcut key for activating/focusing a specific element. The attribute value should consist of one printable character. In HTML4.1, the accesskey attribute can be only used with the following elements: <a>, <area>, <button>, <input>, <label>, <legend>, and <textarea>. In HTML5, this attribute can be used with any element. The way of accessing the shortcut key varies…
-
HTML colspan Attribute
The HTML colspan attribute specifies how many columns a table cell should span. This attribute allows a single table cell to span the width of more than one column or cell. It has the same functionality as “merge cell” in Excel. You can use the colspan attribute on the <td> and <th> elements. When the colspan attribute is used on the <td> tag, it determines…
-
HTML dir Attribute
The HTML dir attribute specifies the text direction of an element’s content. It is important for enabling HTML in right-to-left scripts (e.g. Arabic, Hebrew, etc.). Numerous languages are written with these scripts. You can use this attribute on any HTML element. It is a part of the Global Attributes. The dir attribute can have the following values: ltr: displays the text in left-to-right…
-
HTML defer Attribute
The HTML defer attribute specifies that a script is executed when a page has finished the parsing. It is a boolean attribute. This attribute works for external scripts and must be used only when the src attribute is present. There isn’t any difference between HTML 4.01 and HTML5. In XHTML, the defer attribute must be specified as <script defer=”defer”> as attribute minimization is forbidden. You…
-
HTML Autofocus Attribute
The HTML autofocus attribute is a boolean attribute, which defines that an <input> element must automatically get focus when the page loads. The autofocus attribute is new in HTML5. Syntax Applies to HTML <input> element. Example of the HTML autofocus attribute:
-
HTML Autocomplete Attribute
The autocomplete attribute defines if an input or a form field must have the autocomplete “on” or “off”. With the autocomplete attribute the browser predicts the value, and when a user starts typing in a field, the browser displays options to fill in the field, based on earlier typed values. The autocomplete can be “on” for the input, and…
Got any book recommendations?