HOW TO CREATE TABLES

HOW TO CREATE TABLES

#1
Arrange your data using HTML table tags.
1.Open the weatherforcast.html filesin your practicefile.HTML-CSL-13folder in Notepas
2.Type the code below inside the <section> elemnt:
<h2>5 day Weather Forcast</h2>
3.Type the following code below for the weather forcast data:
<table>

<tr>

<td rowspan="2"></td>

<th>Monday</th>

<th>Tuesday</th>

<th>Wednesday</th>

<th>Thursday</th>

<th>Friday</th>

</tr>

<tr>

<td>Sunny</td>

<td>Partly cloudy</td>

<td>Mostly cloudy</td>

<td>Cloudy</td>

<td>Sunny</td>

</tr>


<tr>

<td>Temp.</td>

<td>31&deg</td>

<td>29&deg</td>

<td>30&deg</td>




<td>26&deg</td>






<td>32&deg</td>

</tr>

<tr>

<td>Winds</td>

<td>SW@10mph</td>

<td>NE@11mph</td>

<td>SE@10mph</td>

<td>NW@9mph</td>

<td>SE@10mph</td>

</tr>

<tr>

<td>chances of<br>rain</td>

<td>0%</td>

<td>56%</td>

<td>45%</td>

<td>34%</td>O

<td>10%</td>

</tr>

<tr>

<td>sunrise</td>


<td>5:30am</td>

<td>6:00am</td>

<td>5:25am</td>

<td>6:15am</td>

<td>5:45am</td>

</tr>

<tr>

<td>sunset</td>


<td>6:00pm</td>

<td>5:45pm</td>


<td>6:15pm</td>



<td>5:40pm</td>

<td>6:25pm</td>



</tr>

</table>

4.Save the file and test it on the browser
5.Leave the file open in the notepad
                             OUTPUT:




Mga Komento

Mag-post ng isang Komento