HTML Basic Tags and Their Uses
HTML Basic Tags and Their Uses
<b> - bold
<I> - italics
<u> underline
<h1> to <h6> - heading tag
<br> - line break
<img src=” ” width=”“ height=”” alt=””>
note: alt is used to tell the user what is the image
means when the image failed to view
<!-- --> - used to write hint ,writing anything in
between this tag won’be executed
Html basic tags and their uses
<!DOCTYPE html>
<html>
<head>
<title>irshath tech </title>
</head>
<body>
<h1 id=”top”>Welcome!!</h1>
<br>
<p> Hello mate in this page you can visit the official
page to download pycharm</p>
<img src="pycharm.png" width="200 "alt="pycharm">
Html basic tags and their uses
<br>
<a href="https://www.jetbrains.com/pycharm/">
Download pycharm </a>
<a href=”#top”> back to top of the page </a>
</body>
</html>
In the highlighed tag #top is used to go to the top of
the page if you are in the end of a webpage for that
you need to set an id (I.e) <h1 id=”top”> .
Font settings:
<p> Hello mate in this<em> page</em> you can visit
the <strong>official page</strong> </p>
Html basic tags and their uses
Special characters:
<h1> copyright © </h1> - & is used to make
special characters like ©®™¥ etc.. We can search on
google for more special characters html codes
Ordered list:
<ol>
<li>irshath</li>
<li>abdul</li>
<li>umar</li>
</ol>
Output:
1.irshath
2.abdul
3.umar
Unordered list:
Html basic tags and their uses
<ul>
<li>irshath</li>
<li>abdul</li>
<li>umar</li>
</ul>
Output:
•irshath
•abdul
•umar
TABLES:
<table>
<tr>
<th>name</th>
<th>roll no</th>
<th>dob</th>
</tr>
Html basic tags and their uses
<tr>
<td>irshath</td>
<td>1832</td>
<td>23-10-2000</td>
</tr>
</table>
Tr = Table row
Th=Table header
Td = Table data
Note: if you want to create a new row <tr></tr> should
be used
Form:
Form is used to collect input from user like a login
page.
Example:
<label for="name">username</label>
<input type="text" id="name" name="name"><br>
<label for="password">password</label>
Html basic tags and their uses
Label:
Label is used to name the input box you can write
anything inside the label. note: <label
for=”username”> and the <input type=”text”
id=”username”> should be same or else it won’t work
Input type:
1.text
2.radio
3.checkbox
4.submit
5.password
6.email
There are lot of input types in html I wrote some which
I know
1.text is for writing names
2.radio button means clicking like choose the correct
answer
3.checkbox means you can choose multiple answers.
4.submit is used to submit the data like clicking login in
facebook
5.password is used to hide the letters using dot
character
Html basic tags and their uses
Textarea:
Textarea is used to write feedback . it creates a big box
where you can write anything.
Example:
<p>Description</p>
<textarea name="" id="" cols="20" row="10">
</textarea>
Select:
Select is used to select things
Example:
<select name="coding" id="">
<option value="javascript">javascript</option>
<option value="python">python</option>
<option value="html">html</option>
The value must be same as the name you’ve given
Html basic tags and their uses