|  Home   |  Contact Us   |  Online Exam   |  Tech World   |  Jobs    |  Member Login
        HTML Attributes          

HTML Lists

    »  HTML supports ordered, unordered and definition lists

Unordered Lists

    »  An unordered list is a list of items. The list items are marked with bullets (typically small black circles).

    »  An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.  

      <ul>
      <li>Chennaisunday</li>
      <li>Web Designing</li>
      </ul>
Here is how it looks in a browser:
  •       Chennaisunday
  •       Web Designing
Inside a list item you can put paragraphs, line breaks, images, links, other lists, etc.
Ordered Lists

    »  An ordered list is also a list of items. The list items are marked with numbers.

    »  An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.

      <ol>
      <li>Chennaisunday</li>
      <li>Web Designing</li>
      </ol>
Here is how it looks in a browser:
  1.  Chennaisunday
  2.  Web Designing
Inside a list item you can put paragraphs, line breaks, images, links, other lists, etc.
HTML Attributes

    »  HTML elements can have attributes.

    »  Attributes provide additional information about the element.

    »  Attributes are always specified in the start tag.

    »  Attributes come in name/value pairs like: name="value".

HTML Attributes Reference

    »  A full list of legal attributes for each HTML element is listed in our:

    »  Below is a list of some attributes that are standard for most HTML elements:

      Attribute       Value       Description
      class       class_rule or style_rule      The class of the element
      id       id_name      A unique id for the element
      style       style_definition       An inline style definition
     title       tooltip_text       A text to display in a tool tip

Standard Event Attributes

    »  HTML 4 added the ability to let events trigger actions in a browser, like starting a JavaScript when a user
        clicks on an element.

    »  Below is the standard event attributes that can be inserted into HTML / XHTML elements to
        define event action

<body> and <frameset> Events

    »  The two attributes below can only be used in <body> or <frameset>:

      Attribute       Value       Description
      onload       script      Script to be run when a document load
      onunload       script      Script to be run when a document unload

Form Events

    »  The attributes below can be used in form elements:

      Attribute       Value       Description
       onblur       script      Script to be run when an element loses focus
       onchange       script      Script to be run when an element change
       onfocus       script      Script to be run when an element gets focus
       onreset       script      Script to be run when a form is reset
       onselect       script      Script to be run when an element is selected
       onsubmit       script      Script to be run when a form is submitted

Mouse Events

    »  Valid in all elements except base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, style, and
        title.

      Attribute       Value       Description
       onclick       script      Script to be run on a mouse click
       ondblclick       script      Script to be run on a mouse double-click
       onmousedown       script      Script to be run when mouse button is pressed
       onmousemove       script      Script to be run when mouse pointer moves
       onmouseout       script      Script to be run when mouse pointer moves out of      an element
       onmouseover       script       Script to be run when mouse pointer moves over       an element
       onmouseup       script      Script to be run when mouse button is released
Back to Top
All Rights Reserved : skdotcom technologies