Tuesday, July 22, 2014

HTML5 reversed Attribute

HTML5 <ol> reversed Attribute is new attribute in HTML5.It specifies that the list order should be descending (9,8,7...), instead of ascending (1, 2, 3...).

Syntax

<ol reversed>

Simple Example

<ol reversed>
            <li>Java</li>
            <li>HTML5</li>
            <li>PHP</li>
            <li>CSS3</li>
            <li>Joomla</li>
            <li>Wordpress</li>
            <li>Magento</li>
            <li>Opencart</li>
            <li>Core Commerce</li>
            <li>Ruby</li>
        </ol>

HTML5 also contains start attribute.If you specify start="50" then the listing items will starting with 50.

HTML5 reversed Attribute

<ol reversed="reversed" start="50">
           <li>Java</li>
            <li>HTML5</li>
            <li>PHP</li>
            <li>CSS3</li>
            <li>Joomla</li>
        </ol>

Please share your comments and feedback.Thanks.Please subscribe my updates via email.

1 comment: