HTML Tutorial
HTML References
HTML Resources
Selected Reading
- HTML - Layouts
- HTML - Javascript
- HTML - Style Sheet
- HTML - Header
- HTML - Marquees
- HTML - Embed Multimedia
- HTML - Forms
- HTML - Fonts
- HTML - Colors
- HTML - Backgrounds
- HTML - Blocks
- HTML - Iframes
- HTML - Frames
- HTML - Email Links
- HTML - Image Links
- HTML - Text Links
- HTML - Lists
- HTML - Tables
- HTML - Images
- HTML - Comments
- HTML - Meta Tags
- HTML - Phrase Tags
- HTML - Formatting
- HTML - Attributes
- HTML - Elements
- HTML - Basic Tags
- HTML - Overview
- HTML - Home
HTML References
- HTML - Deprecated Tags
- HTML - Character Encodings
- Language ISO Codes
- HTML - URL Encoding
- MIME Media Types
- HTML - Events Ref
- HTML - Fonts Ref
- HTML - Entities
- HTML - Color Names
- ASCII Table Lookup
- HTML - ASCII Codes
- HTML - Fonts Reference
- HTML - Events Reference
- HTML - Attributes Reference
- HTML - Tags Reference
HTML Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
HTML - Attributes Reference
HTML - Attribute Reference
There are few HTML attributes which are standard and associated to all the HTML tags. These attributes are psted here with a brief description.
Global Attributes
Not vapd in base, head, html, meta, param, script, style, and title elements.
Attribute | HTML-5 | Description |
---|---|---|
accesskey | Specifies a shortcut key for an element to be used in place of keyboard. | |
class | The class of the element | |
contenteditable | Yes | Boolean attribute to specify whether the element is editable or not. |
contextmenu | Yes | Specifies a context menu for an element. |
data-* | Yes | Used to store custom data associated with the element. |
draggable | Yes | Boolean attribute to specify whether the element can be dragged or not. |
dropzone | Yes | Specifies whether the dragged data is copied, moved, or pnked, when dropped. |
hidden | Yes | Specifies whether element should be visible or not. |
id | A unique id for the element | |
spellcheck | Yes | Specifies if the element must have it s spelpng or grammar checked. |
style | An inpne style definition | |
tabindex | Specifies the tab order of an element. | |
title | A text to display in a tool tip | |
translate | Yes | Boolean attribute specifies whether the content of an element should be translated or not |
Language Attributes
The lang attribute indicates the language being used for the enclosed content. The language is identified using the ISO standard language abbreviations, such as fr for French, en for Engpsh, and so on.
RFC 1766 (http://www.ietf.org/rfc/rfc1766.txt) describes these codes and their formats.
Not vapd in base, br, frame, frameset, hr, iframe, param, and script elements.
Attribute | Value | Description |
---|---|---|
dir | ltr | rtl | Sets the text direction |
lang | language_code | Sets the language code |