Lists

Now we come onto making lists, now lists can be used for a number of different things with different types of lists but for now we going to go into the most commonly used list called the unordered list and so here is an example of 1 in use.

<ul>
<li>text1</li>
<li>text2</li>
<li>text3</li>
<li>text4</li>
</ul>

There is alot we can do with we could do with CSS to turn it into a full on navigation bar like the 1 for this website or we could change bullet points for numbers.

Attributes

Now we move onto working with attributes, now attributes are properties that are inside HTML tags and we can use the properties to modifying the tags in loads different ways.

so lets now have a look at declaring an attribute in a list

<ul id="myMenu">
<li>listItem1</li>
<li>listItem2</li>
<li>listItem3</li>
<li>listItem4</li>
<li>listItem5</li>
</ul>

so here we our declaring the attribute id in the <ul> tag which is for CSS and javascript so they can find the specific tag. 

                                                                                                                                                                             

This free website was made using Yola.

No HTML skills required. Build your website in minutes.

Go to www.yola.com and sign up today!

Make a free website with Yola