HTML Tags

Definition

Types

HTML Attributes

Definition

Types

  • For simplicity, we can categories the html attributes in the following major group –

[A]Text Attributes

(a) Common Attributes: These are

action, alt, background, background-color, background-image, background-position, background-repeat, background-size, behavior, charset, readonly, outline, box-shadow, class, text-indent, href, color, content, cursor, data, display, enctype, height, id, margin, method, name, padding, pattern, read only, src, style, text-align, value, width etc.

(b) Input Attributes: These are-

autocomplete, autofocus, border, checked, contenteditable, contextmenu, disabled, hidden, list, max, maxlength, min, multiple, placeholder, size, type, vertical-align etc.

(c) Table Attributes: These are

align, bgcolor, border, bordercolor, cellpadding, cellspacing, cols, colspan, frame, hspace, rows, summary, title, vspace etc.

[B] Method Attributes

(a) Common Attributes: These are

onBlur, onChange, onFocus, onInput, onReset, onSelect, onSubmit etc.

(b) Mouse Attribute: These are

onClick, onDblClick, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp etc.

(c) Key Attribute: These are

onKeyDown, onKeyPress, onKeyUp etc.

 6,467 total views,  10 views today

Categories: HTML

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.