25.02.2017 Views

java_tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Java<br />

HTML Attribute Reference<br />

There are few HTML attributes which are standard and associated to all the HTML tags.<br />

These attributes are listed here with a brief description.<br />

Global Attributes: Not valid in base, head, html, meta, param, script, style, and title<br />

elements.<br />

Attribute HTML-5 Description<br />

accesskey<br />

Specifies a shortcut key for an element to be used in<br />

place of keyboard.<br />

class<br />

The class of the element.<br />

contenteditable<br />

Yes<br />

Boolean attribute to specify whether the element is<br />

editable or not.<br />

contextmenu Yes Specifies a context menu for an element.<br />

data-* Yes Used to store custom data associated with the element.<br />

draggable<br />

Yes<br />

Boolean attribute to specify whether the element can be<br />

dragged or not.<br />

dropzone<br />

Yes<br />

Specifies whether the dragged data is copied, moved,<br />

or linked, when dropped.<br />

hidden Yes Specifies whether the element should be visible or not.<br />

id<br />

A unique id for the element.<br />

spellcheck<br />

Yes<br />

Specifies if the element must have it's spelling or<br />

grammar checked.<br />

style<br />

An inline style definition.<br />

tabindex<br />

Specifies the tab order of an element.<br />

title<br />

A text to display in a tool tip.<br />

translate<br />

Yes<br />

Boolean attribute specifies whether the content of an<br />

element should be translated or not.<br />

Language Attributes<br />

The lang attribute indicates the language being used for the enclosed content. The<br />

language is identified using the ISO standard language abbreviations, such<br />

as fr for French, en for English, and so on. RFC 1766<br />

(http://www.ietf.org/rfc/rfc1766.txt) describes these codes and their formats.<br />

518

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!