36
loading...
This website collects cookies to deliver better user experience
<ol></ol>
This is ordered list. This is used to create a list with numbers, or alphabets like that. But in order to create lists we need one more tag it's <li></li>
. This is called list item. We define list item with this. Let's take an example.<ol>
<li>list item 1</li>
<li>list item 2</li>
<li>list item 3</li>
<li>list item 4</li>
</ol>
type=""
type atrribute. Remember we have learnt about attributes in the previous article.type
attribute<ol type="i">
<li>list item 1</li>
<li>list item 2</li>
<li>list item 3</li>
<li>list item 4</li>
</ol>
Value for type
attribute can be 1
- Number, A
- Capital letters, a
- small letters, i
- roman numbers, I
- Capital roman number.
ol
.Attributes | value | description |
---|---|---|
start | numbers(1,4,50..) | Specifies the start value of an ordered list |
reversed | ------ | Specifies that the list order should be reversed(3,2,1) |
<ul></ul>
unordered list tag. This work same as ordered list. The only difference is this don't add number.<ul>
<li>HTML</li>
<li>CSS</li>
<li>Javascript</li>
<li>React</li>
<li>Node.js</li>
<li>Psql</li>
</ul>
<ol>
<li>Car</li>
<li>Bike
<ul>
<li>Electric Bike</li>
<li>Super Bike</li>
<li>Bike</li>
</ul>
</li>
<li>Plane
<ul>
<li>Fighter Plane</li>
<li>Commercial Plane</li>
<li>Private Plane</li>
</ul>
</li>
<li>Helicopter</li>
</ol>
<img>
Image tag. img
tag work with some attributes.src
- stands for source. It is used to locate image path.alt
- stands for alternate text. If the image for some reason cannot be displayed.<img src="cat.png" alt="cat">
<video></video>
Video tag is used to add Video in web page.With this tag you have to you <source>
tag also. And <source>
tag is non closing tag. Like you define img
path using src
attributes. The same attribute we use to locate video.<video controls autoplay muted loop>
<source src="video.mp4">
</video>
attribute | description |
---|---|
Controls | show controls button for the video. |
autoplay | autoplay the video on page load |
muted | mute the video |
loop | play the video in loop |
<audio>
Audio tag.<audio src="audio.mp3" controls></audio>