0% found this document useful (0 votes)
9 views2 pages

HTML Tags for Text and Lists

The document explains various HTML tags including the <center> tag for centering text, <ol> and <ul> tags for ordered and unordered lists respectively, and the <a> tag for creating hyperlinks. It also describes the structure of tables using <thead> and <tbody> tags, along with examples for each tag. Additionally, it highlights attributes such as 'type' for lists and 'target' for anchor tags.

Uploaded by

vivekready183
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

HTML Tags for Text and Lists

The document explains various HTML tags including the <center> tag for centering text, <ol> and <ul> tags for ordered and unordered lists respectively, and the <a> tag for creating hyperlinks. It also describes the structure of tables using <thead> and <tbody> tags, along with examples for each tag. Additionally, it highlights attributes such as 'type' for lists and 'target' for anchor tags.

Uploaded by

vivekready183
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Center Tag:-

----------------------------
>it is used to set the alignment of the text into the center.
>it is denoted by <center> element </center>
ex:-
<h1><center>hello guys</center><h1>

ordered list:-
-----------------------------
>it is used to create a list in a mannered way.
>it is denoted by <ol> tag and items inside of it are denoted by <li> tag.
ex:-
<ol>
<li>car</li>
<li>bike</li>
<li>train</li>
<li>aeroplane</li>
</ol>

>it is also having a attribute that is type through which we can define the type of
seriel number is going to be used.

unordered list:-
--------------------------------
>it is used to create list.
>it is denoted by <ul> tag and items inside of it are denoted by <li> tag.
>ex:-
<ul>
<li>car</li>
<li>bike</li>
<li>train</li>
<li>aeroplane</li>
</ul>

Anchor tag:-
-----------------------------------------
>it is used to create hyperlink(it means it is used to connect any other web page
to our web page).
>it is denoted by <a href="">content</a> tag.
ex:-
<a href="[Link] target="_blank">click
here</a>
>target is an attribute to anchor tag which is used to open web page in different
tab.

Table tags:-
----------------------
>it is used to create a table.
>basically tables have two parts
1>tablehead----><thead> </thead>
2>tablebody-----------><tbody> </tbody>

>table head also contains table row that is represented by <tr> in which we have to
declare our datas and those are written in <th> tag.
ex:-
<thead>
<tr>
<th>sl no</th>
<th>name</th>
<th>image</th>
<th>wiki</th>
</tr>
</thead>

>table body contains data row wise thats why it is also kept in <tr> tag in which
we have to declare our datas inside of <td> tag
ex:-
<tbody>
<tr>
<td>1</td>
<td>srk</td>
<td><marquee behavior="scroll" direction="down"><img
src="[Link]
alt="error" height="250" width="300"></marquee></td>
<td><a href="[Link]
target="_blank">click here</a></td>
</tr>
</tbody>

You might also like