HTML Core Attributes
HTML Core Attributes
There are attributes which are supported by all HTML elements.
Attribute | Value | Description |
---|---|---|
class | class name | The element class |
id | id value | A unique id for the element |
style | style definition | Style definition |
title | tooltip text | A text to display in a tool tip |
Attribute names are not case sensitive.
Language Attributes
ATTRIBUTE | VALUE | DESCRIPTION |
---|---|---|
dir | ltr or rtl | Sets the text direction |
lang | language_code | Sets the language code |
Keyboard Attributes
ATTRIBUTE | VALUE | DESCRIPTION |
---|---|---|
accesskey | character | Sets a keyboard shortcut to access an element |
tabindex | number | Sets the tab order of an element |
HTML CSS Tutorial HTML CSS Basic
HTML Introduction
HTML Documents
HTML Element
HTML Attributes
HTML Headings
HTML Paragraphs
HTML Rules (Lines)
HTML Line Breaks
CSS Introduction
CSS Syntax
CSS Color
CSS Lengths
CSS Comments
CSS selector
Grouping/nesting Selectors
Add CSS to HTML
Compare em measurement and pixel measuremen...
Select class along with tag name in HTML an...
Select Next Sibling with Next Sibling Selec...
Select with Descendant Selectors in HTML an...
Set color to purple in HTML and CSS
Set color with rgb function in HTML and CSS
Set text color for body element in HTML and...
Show the difference between block and inlin...
HTML Introduction
HTML Documents
HTML Element
HTML Attributes
HTML Core Attributes
HTML CommentsHTML Headings
HTML Paragraphs
HTML Rules (Lines)
HTML Line Breaks
CSS Introduction
CSS Syntax
CSS Color
CSS Lengths
CSS Comments
CSS selector
Grouping/nesting Selectors
Add CSS to HTML
Compare em measurement and pixel measuremen...
Select class along with tag name in HTML an...
Select Next Sibling with Next Sibling Selec...
Select with Descendant Selectors in HTML an...
Set color to purple in HTML and CSS
Set color with rgb function in HTML and CSS
Set text color for body element in HTML and...
Show the difference between block and inlin...