Learn Html Part (4)
Hello every Dear students, teachers and beginners as we
are learning html tags in this post I will tell you more tags of html ok now
let’s start.
Nested Lists
In a list, a list
item can contain another list. Such list is called a nested list. It is useful
for situations where you have multiple options for a single item in a list e.g.
for writing table of contents that contain sub-section .For example, see the
following code snippet and its output.
|
Html Code |
Output |
|
<ul> <li>Coffee</li> <li>Tea <ul> <li>Black Coffee</li> <li> Green Tea
</li> </ul> </li> <li>Milk</li> </ul> |
|
How to make Table
Now we will discuss that how to make table in page by
using html.
<table>
</table>
First we use this tag because this tag represented that we
start making table in page.
<tr> <th> <td>
The <tr> tag is represented the row of table.
<th> tag is represented
the header of the table.
<td> tag is represented
the column of the table.
Now let’s make a table
Code
<table>
<tr>
<th>First name</th><th>Last name</th><td>Age</th>
</tr>
<tr>
<td>Ali</td><td>Ahmed</td><td>50</td>
<td>Usman</td><td>Ali</td><td>60</td>
</tr>
</table>
Output
|
First
name |
Last
name |
Age |
|
Ali |
Ahmed |
50 |
|
Usman |
Ali |
60 |
Mark tag
<mark> tag this tag is used to highlight anything
in the page for example if you wants to mark anything in the page of your
website then you can use this tag.
Quotations and Citations
<q> this tag is represented “ ” this is used for
some quotations and some main things in paragraph.
<blockquote> this tag is also used for quotations
but this tag is used for put you quotation in center of the page and makes them
more beautiful.
Abbreviation tag.
<abbr> this tag is for representation of abbreviation
of some word for example.
Code
<abbr tittle=World Health Organization>WHO<abbr>
Output
|
World
Health Organization |
Now there is enough in this article in other article I
will teach you more Html tags so must watch my next post.


0 Comments