ExpertRating - Online Certification and Employment Testing ExpertRating - Online Certification and Employment Testing ExpertRating - Online Certification and Employment Testing

ExpertRating Home
ExpertRating Benefits
Recommend ExpertRating
Suggest More Tests
Privacy Policy
XHTML Tutorial - Index
XHTML Tutorial - Introduction to XHTML
XHTML Tutorial - Formatting
XHTML Tutorial - Links
XHTML Tutorial - Images
XHTML Tutorial - Forms
XHTML Tutorial - Tables
XHTML Tutorial - Frames
XHTML Tutorial - Style Sheets
XHTML Tutorial - Advanced Tags

Online Personal Trainer Certification
Personal Trainer Certification (Spanish)
Six Sigma Certification
Find a Personal Trainer
Project Management Certification
Six Sigma Certification
Six Sigma Black Belt Certification
Master Black Belt Certification
Six Sigma Green Belt Certification
Life Coach Certification
Lean Management Certification
Lean Six Sigma Certification
First Aid Certification
CPR Certification
Yoga Certification
Aerobics Certification
Pilates Certification
Business Analyst Certification
SEO Certification
Online Business Writing Course & Certification
Makeup Artist Certification
Baby Sitting Course & Certification
Time Management Certification
Health Club Management Certification
Medical Coding Certification
Medical Billing Certification
Business Analysis Course
Master Trainer Certification
Total Quality Management Certification
Kaizen Certification
Creative Writing Certification
Event Management Certification
Test Search by Job Title
Administrative Assistant Certification
Virtual Assistant Certification
  All Online Courses


  Home > Courses, Tutorials & eBooks > XHTML Tutorial > Formatting



XHTML Tutorial - Formatting

                                                                             Page 4 of 5


Lists are the next element in an XHTML document. A great way of laying out information on the web is through lists. Lists are simple to read and easy to comprehend. They make a web page attractive. The user can retain more data if it is presented to him in a list.

Lists in XHTML are quite similar to the lists in HTML. The only difference is that some attributes of lists used in HTML are not supported by XHTML.

Before going into lists in detail it is imperative to understand the concept of the list index tag.

List Index Tag

The list index tag is written as <li>. It defines the start of a list item. The <li> tag is used in both unordered and ordered lists.

The example of list index tag is shown with the example of unordered and ordered lists later.

Unordered List

An unordered list is defined by the tag <ul>. It contains a list of items in which the items are preceded by bullets or markers.



<li>Classic jokes </li>

<li>Math jokes </li>

<li>Food jokes</li>


  • Classic jokes
  • Math jokes
  • Food jokes


The "compact" and "type" attributes of the <ul> tag of HTML are not supported in XHTML.

The following example illustrates the use of lists in a web page:




<title> My list of jokes </title>




<h1>This is my list of jokes </h1>



<li>Classic jokes </li>

<li>Math jokes </li>

<li>Food jokes</li>






<li>Crazy jokes</li>

<li>Ethnic jokes</li>

<li>Golf jokes</li>






This is how the web page looks:



Home  |  About Us  |  Privacy Policy  |  Site Map  |  FAQs  |  Contact Us
© ExpertRating 2015. All Rights Reserved.