Many HTML tags have a unique set of their own attributes. These attributes are divided into core attributes, internationalization attributes, and scripting events. Attributes are always specified in the start tag and come in name/value pairs like: name="value"

Example

<a href="http://www.a2zwebhelp.com">Link to my website.</a>
<p id="firstp">This is my first paragraph.</p>
<h2 align="center" title="center text">Centered Heading</h2>

HTML Attributes with category

Category Attributes Name  
Core Attributes id <p id="myid">My Text.</p>
  class <div clsss="newclass"> Text </div>
  name <form name="arup"></form>
  style <span style="font-family: arial"> Arial</span>
  title <h1 title="Heading"> Heading </h1>
  alt <img src="" alt="my image">
  align <p align="left"></p>
  valign <td valign="top">&nbsp;</td>
  bgcolor <td bgcolor="#808080">&nbsp;</td>
  background <td background="filepath">&nbsp;</td>
  width <img width="100px">
  height <img width="100px" height="100px">
Internationalization Attributes LANG <span lang=en>Welcome</span>
DIR  
Common Scripting Events ONCLICK mouse button is clicked on an element.
ONDBLCLICK mouse button is double-clicked on an element
  ONMOUSEDOWN mouse button is pressed over an element
  ONMOUSEUP mouse button is released over an element
  ONMOUSEOVER mouse is moved onto an element
  ONMOUSEMOVE mouse is moved while over an element
  ONMOUSEOUT mouse is moved away from an element
  ONKEYPRESS a key is pressed and released over an element
  ONKEYDOWN a key is pressed down over an element
  ONKEYUP a key is released over an element


Top