HTML Example ( I ) (Basic)
- Mahesh Bhat
- Jun 27, 2017
- 2 min read
I am trying to explain the basic html tag with one example
the exmaple is about Emergency Ambulance
This is the code :-
<html>
<title>
My College
</title>
<table border=1 align=center cellspacing=0 cellpadding=4 bgcolor=lightblue>
<caption align=center>THE MOBILE AMBULANCE - EMRI 108</caption>
<tr><td>Special Equipment</td><td colspan=2>Specification/ Requirement</td>
<tr>
<td>Rerarcable Protective Armour</td>
<Td> Engine Type
<td> Jet Turbine
</tr>
<tr>
<td>Weapon System</td>
<td>Thrust
<td>150 lbs<br>103% ros
</tr>
<tr>
<td>Instruments/ Aircraft</td>
<td>Torque
<td>175 lbs<br>98.75% ros
</tr>
<tr >
<td rowspan=9>
<img src=C:\Users\mahesh\Downloads\a.jpg alt="" border=3 height=100 width=200>
<td>0-60
<td>3.7 s
</tr>
<tr>
<td>Top Speed
<td>Unkown
</tr>
<tr>
<td>Break
<td>Excellent
</tr>
<tr>
<td>Wheel
<td>141.2mm
</tr>
<tr>
<td>Length
<td>300.5 inch
</tr>
<tr>
<td>Width
<td>100.5 inch
</tr>
<tr>
<td>Height
<td>200.25 inch
</tr>
<tr>
<td>Wheels
<td>15x7.5
</tr>
<tr>
<td>Fuel Requiremnets
<td>Pure Petrol<br>99.9% free carbon
</tr>
</table>
</html>
I am using notepad++ to write the code and save the file as .html or .htm and execute through any browsers available .

The Output of the above code :

HTML Table :-
HTML table tag is used to display data in tabular form (row * column). There can be many columns in a row.
<table> It defines a table.
<tr> It defines a row in a table.
<th> It defines a header cell in a table.
<td> It defines a cell in a table.
<caption> It defines the table caption.
<colgroup> It specifies a group of one or more columns in a table for formatting.
<col> It is used with <colgroup> element to specify column properties for each column.
<tbody> It is used to group the body content in a table.
<thead> It is used to group the header content in a table.
<tfooter> It is used to group the footer content in a table.
HTML img tag is used to display image on the web page.
ex :-
<img src=C:\Users\mahesh\Downloads\a.jpg alt="" border=3 height=100 width=200>
<table > - which is used to create a table ( table having associated tags like <tr>-Table rows <td>- Table Data (colums ) <th> for Table Header. It may contain several properties like align , bgcolor, color, cellpadding , cellspacing etc
<caption > is used to write a heading according to the table width , it will adjest according to the table structure.
<rowspan> is used to merge 'n' number of rows in the table
<colspan> is used to merge 'n' number of col in the table
I HOPE MY EXAMPLE MAY HELP YOU TO LEARN BASIC THINGS ABOUT HTML
THANK YOU
Comments