13.02.2018 Views

html_tutorial pdf

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

29. HTML – ATTRIBUTE REFERENCE<br />

HTML<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<br />

Not valid in base, head, <strong>html</strong>, meta, param, script, style, and title 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 Yes 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 Yes Boolean attribute to specify whether the element can<br />

be dragged or not.<br />

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

or linked, when dropped.<br />

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

id<br />

A unique id for the element<br />

spellcheck Yes 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 />

333

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

Saved successfully!

Ooh no, something went wrong!