Web Lab Manual
Web Lab Manual
Develop and demonstrate a XHTML document that illustrates the use external style
sheet, ordered list, table, borders, padding, color, and the <span> tag.
/* styles.css is an external style sheet in this program. External style sheet defines some
pre-defined font size, style and family. When we refer this in html, the text corresponds to
will have properties referring to external style sheet.
Ordered lists are those in which the order of items is important. The default sequential
values are Arabic numerals beginning with 1.
A table is a matrix of row and columns, in which each intersection of row and a column is
termed a cell. The cells in the top row often contain column labels; those in the left most
columns often contain row labels and rest contains data of the table.
border-width specifies the thickness of the border. Border color is controlled by color
property. These are the properties of CSS.
Padding is the space between the content of an element and its border. It is applied to 4
sides.
Color property is used to specify the foreground color of XHTML elements.
For a particular word to appear in different way in line or paragraph we use span tag.*/
styles.css
basicxhtmltags.html
<ol>
<li> Set mixture to rich </li>
<li> Set propeller to high RPM </li>
<li> Set ignition switch to "BOTH" </li>
<li> Set auxiliary fuel pump switch to "LOW PRIME" </li>
<li> When fuel pressure reaches 2 to 2.5 PSI, push starter button </li>
</ol>
<tr>
<th></th>
<th class = "red"> Java </th>
<th class = "orange"> Ada </th>
<th class = "blue"> Web </th>
</tr>
<tr>
<th> </th>
<th> Java </th>
<th> Ada </th>
<th> Web </th>
</tr>
<tr>
<th> Java </th>
<td> Mon </td>
<td> Thu </td>
<td> Fri </td>
</tr>
<tr>
<th> Ada </th>
<td> Tue </td>
<td> Wed </td>
<td> Thu </td>
</tr>
<tr>
<th> Web </th>
<td> Mon </td>
<td> Thu </td>
<td> Fri </td>
</tr>
</table>
<p>
Now it is the time for all good Web programmers to learn to use style sheets.
</p>
<p>
it sure is fun to be in
<span class = "spanred"> total </span>
control of text
</p>
</body>
</html>
Output
Two wrongs don't make a right, but they certainly can get you in a lot of trouble.
Chapter 1 Introduction
1.1 The Basics of Computer Networks
1. Set mixture to rich
2. Set propeller to high RPM
3. Set ignition switch to "BOTH"
4. Set auxiliary fuel pump switch to "LOW PRIME"
5. When fuel pressure reaches 2 to 2.5 PSI, push starter button
Lab days
Java Ada Web
Java Ada Web
Java Mon Thu Fri
Ada Tue Wed Thu
Web Mon Thu Fri
Now it is the time for all good Web programmers to learn to use style sheets.
Now is the time for all good web programmers to learn to use style sheets.
[padding: 0.2in]
a) fib.html
fib.js
var n1=0;
var n2=1;
Output
b) sq.html
sq.js
Output