Professional Documents
Culture Documents
<html>
<head>
<title> implement Formatting tags Example</title>
</head>
<body>
<p>The following word uses a <b>bold</b> typeface.</p>
<p>The following word uses an <i>italicized</i> typeface.</p>
<p>The following word uses an <u>underlined</u> typeface.</p> <p>The
following word uses a <strike>strikethrough</strike> typeface.</p>
<p>The following word uses a <tt>monospaced</tt> typeface.</p>
<p>The following word uses a <sup>superscript</sup> typeface.</p>
<p>The following word uses a <sub>subscript</sub> typeface.</p>
<p>I want to drink <del>cola</del><ins>wine</ins></p>
<p>I want to drink <del>cola</del><ins>wine</ins></p>
<p>The following word uses a <big>big</big> typeface.</p>
<p>The following word uses a <small>small</small> typeface.</p>
<div id = "menu" align = "middle" >
<a href = "/index.htm">HOME</a> |
<a href = "/about/contact_us.htm">CONTACT</a> |
<a href = "/about/index.htm">ABOUT</a>
</div>
</body>
</html>
<html>
<head>
<title> demonstrate all Logical tags Example</title>
</head>
<em>This is emphasized text</em>
<cite>This is cited text</cite>
<strong>This is strong text</strong>
<samp>This is sample text</samp>
<code>This is code text</code>
<kbd>This is keyboard text</kbd>
</body>
</html>
<html>
<head>
<title>To implement all Header tags Example</title>
</head>
<body>
<h1>Heading level 1</h1>
<h2>Heading level 2</h2>
<h3>Heading level 3</h3>
<h4>Heading level 4</h4>
<h5>Heading level 5</h5>
<h6>Heading level 6</h6>
<h1>This is heading 1</h1>
<p>This is some text.</p>
<hr>
4. Write a HTML program to illustrate Anchor tag along with all its
attributes.
<html>
<head>
<title>To illustrate Anchor tag along with all its attributes Example</title>
</head>
<body>
<p>If you set the target attribute to "_blank", the link will open in a new
browser window or a new tab.</p>
<p>In my younger and more vulnerable years my father gave me some advice
that
I've been turning over in my mind ever since.</p>
<p>"Whenever you feel like criticizing any one," he told me, "just remember
that all the people in this world haven't had the advantages that you've
had."</p> <p>He didn't say any more, but we've always been unusually
communicative in a reserved way, and I understood that he meant a great deal
more than that. In consequence, I'm inclined to reserve all judgments, a habit
that has opened up many curious natures to me and also made me the victim of
not a few veteran bores. The abnormal mind is quick to detect and attach itself
to this quality when it appears in a normal person, and so it came about that in
college I was unjustly accused of being a politician, because I was privy to the
secret griefs of wild, unknown men. Most of the confidences were unsought-
frequently I have feigned sleep, preoccupation, or a hostile levity when I
realized by some unmistakable sign that an intimate revelation was quivering on
the horizon; for the intimate revelations of young men, or at least the terms in
which they express them, are usually plagiaristic and marred by obvious
suppressions. Reserving judgments is a matter of infinite hope. I am still a little
afraid of missing something if I forget that, as my father snobbishly suggested,
and I snobbishly repeat, a sense of the fundamental decencies is parcelled out
unequally at birth.</p>
<p>And, after boasting this way of my tolerance, I come to the admission that it
has a limit. Conduct may be founded on the hard rock or the wet marshes, but
after a certain point I don't care what it's founded on. When I came back from
the East last autumn I felt that I wanted the world to be in uniform and at a sort
of moral attention forever; I wanted no more riotous excursions with privileged
glimpses into the human heart. Only Gatsby, the man who gives his name to
this book, was exempt from my reaction-Gatsby, who represented everything
for which I have an unaffected scorn. If personality is an unbroken series of
successful gestures, then there was something gorgeous about him, some
heightened sensitivity to the promises of life, as if he were related to one of
those intricate machines that register earthquakes ten thousand miles away. This
responsiveness had nothing to do with that flabby impressionability which is
dignified under the name of the "creative temperament"-it was an extraordinary
gift for hope, a romantic readiness such as I have never found in any other
person and which it is not likely I shall ever find again. No-Gatsby turned out
all right at the end; it is what preyed on Gatsby, what foul dust floated in the
wake of his dreams that temporarily closed out my interest in the abortive
sorrows and short-winded elations of men.</p>
5. Write a HTML program to insert Image tag with all its attributes.
<html>
<head>
<title>To insert Image tag with all its attributes Example</title>
</head>
<body style="background-image:url('clouds.jpg')">
<p style="background-image:url('clouds.jpg')">
<h2>HTML Image</h2>
<imgsrc="pic_trulli.jpg" alt="Trulli" width="500" height="333">
<h2>HTML Image</h2>
<imgsrc="img_girl.jpg" alt="Girl in a jacket" width="500" height="600">
<h2>HTML Image</h2>
<imgsrc="img_chania.jpg" alt="Flowers in Chania" width="460"
height="345">
<h2>Alternative text</h2>
<p>The alt attribute should reflect the image content, so users who cannot
see the image gets an understanding of what the image contains:</p>
<imgsrc="img_chania.jpg" alt="Flowers in Chania" width="460"
height="345">
<p>If a browser cannot find the image, it will display the alternate text:</p>
<imgsrc="wrongname.gif" alt="Flowers in Chania">
<h2>Styling Images</h2>
<p>The image below has the width attribute set to 128 pixels, but the
stylesheet overrides it, and sets the width to 100%.</p> <imgsrc="html5.gif"
alt="HTML5 Icon" width="128" height="128">
<p>The image below uses the style attribute, where the width is set to 128
pixels which overrides the stylesheet:</p>
<imgsrc="html5.gif" alt="HTML5 Icon"
style="width:128px;height:128px;">
<p>Insert an image from another folder:</p>
<imgsrc="/images/stickman.gif" alt="Stickman" width="24" height="39">
<p>Insert an image from a web site:</p>
<imgsrc="https://www.w3schools.com/images/lamp.jpg" alt="Lamp"
width="32" height="32"><p> An image that is a link:
<a href="https://www.w3schools.com">
</body>
</html>
6. Create a Web Page to display the text “ALL THE BEST" aligned with
images
<html>
<head>
<title>Totext “ALL THE BEST" aligned with imagesExample</title>
</head>
<body>
<h1>Theimg align attribute</h1>
<h2>align="middle":</h2>
<p>ALL THE BEST.<imgsrc="smiley.gif" alt="Smiley face" width="42"
height="42" align="middle">ALL THE BEST.</p>
<h2>align="top":</h2>
<p>ALL THE BEST.<imgsrc="smiley.gif" alt="Smiley face" width="42"
height="42" align="top">ALL THE BEST.</p>
<h2>align="right":</h2>
<p>ALL THE BEST.<imgsrc="smiley.gif" alt="Smiley face" width="42"
height="42" align="right">ALL THE BEST.</p>
<h2>align="left":</h2>
<p>ALL THE BEST.<imgsrc="smiley.gif" alt="Smiley face" width="42"
height="42" align="left">ALL THE BEST.</p>
</body> </html>
<html>
<head>
<title>To implement Font tags along with its attributes Example</title>
</head>
<body>
<p><font face="verdana">This is some text!</font></p>
</body>
</html>
8. Write a HTML program to illustrate List formatting tags for the streams
available in College :
a. Ordered list b. Unordered list
c. Menu List. d. Definition List
<html>
<head>
<title>To illustrate List formatting tags for the streams available in College
Example</title>
</head>
<body>
<h1>EThames Degree College Courses</h1>
<ul>
<li> Bachelors in Commerce (B.Com)
<ul TYPE = "SQUARE">
<li> Computers </li>
<li>Foriegn Trade </li>
<li TYPE = "DISC"> General </li>
<li TYPE = "CIRCLE"> Sales and Marketing </li>
</ul>
</li>
<li> Bachelors in Busines Management (BBA)</li>
</ul>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
</body>
</html>
9. Create a Web Page to display ordered list, unordered list on the subjects
available in Fifth Semester.
<html>
<head>
<title>To display ordered list, unordered list on the subjects available in Fifth
semester Example</title>
</head>
<body>
<h2>Unordered List</h2>
<h1>Osmania University</h1>
<ul>
<li>Bachelors in Commerce (B.Com) - subjects in V Semester
<ul TYPE = "SQUARE">
<li> Practice of General Insurance </li>
<li> Introduction to Indian Economy </li>
<li> Cost Accounting </li>
<li> Business Law </li>
<li> Banking Theory & Practice</li>
<li> Excel Foundation</li>
<li>Computerized Accounting/Business Analytics</li>
<li> Web Technology / Business Simulation</li>
</ul>
</li>
</ul>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<ol>
<li>Bachelors in Commerce (B.Com) - subjects in V Semester
<ol TYPE = "SQUARE">
<li> Practice of General Insurance </li>
<li> Introduction to Indian Economy </li>
<li> Cost Accounting </li>
<li> Business Law </li>
<li> Banking Theory & Practice</li>
<li> Excel Foundation</li>
<li>Computerised Accounting/Business Analytics</li>
<li> Web Technology / Business Simulation</li>
</ol>
</li>
</ol>
</body>
</html>
10. Create a Table with Four rows and four columns in HTML.
<html>
<head>
<title>Table with four rows and four columns</title>
<style> table
{ border: 5px solid black; width: 50%;
} td { width: 50%; height: 80px; border: 1px solid;
}
</style> </head>
<body>
<table>
<tbody>
<tr><td align="center">1</td><td align="center">2</td></tr>
<tr><td align="center">3</td><td align="center">4</td></tr>
<tr><td align="center">5</td><td align="center">6</td></tr>
<tr><td align="center">7</td><td align="center">8</td></tr>
</tbody>
</table>
</body>
</html>
<html>
<head>
<title>To illustrate time tableExample</title>
</head>
<body>
<H1><CENTER>COLLEGE TIME TABLE</H1>
<table border="2" cellpadding="10" cellspacing="3" align="center"> <tr>
<td align="center">
<td align="center">1:00-1:45
<td align="center">1:45-2:30
<td align="center">2:30-2:45
<td align="center">2:45-3:30
<td align="center">3:30-4:15
<td align="center">4:15-5:00
</tr>
<tr>
<td align="center">MONDAY
<td align="center">BL<td align="center"><font color="blue">WEB<br>
<td rowspan="5"align="center">B<br>R<br>E<br>A<br>K
<td align="center"><font color="pink">BTP<br>
<td align="center"><font color="red">CA<br>
<td align="center"><font color="maroon">EXCEL<br>
</tr>
<tr>
<td align="center">TUESDAY
<td align="center"><font color="blue">BTP<br>
<td align="center"><font color="red">BL<br>
<td align="center"><font color="pink">EXCEL<br>
<td align="center"><font color="orange">CA<BR>
<td align="center">IE
</tr>
<tr>
<td align="center">WEDNESDAY
<html>
<head>
<title>To illustrate marquee the image and text</title>
</head>
<body>
13. Create a Web Page in which the text " WEB TECHNOLOGY " should
scroll in different directions for four times
<html>
<head>
<title>To illustratethe text " WEB TECHNOLOGY " should scroll in different
directions for four times</title>
</head>
<body>
<marquee behavior="scroll" direction="right" loop="4">
<h3 align="center"><b>WEB TECHNOLOGY<b></H3>
</marquee>
<br>
<br>
<br>
<br>
<br>
<marquee behavior="scroll" direction="LEFT" loop="2"> <h3
align="center"><b>WEB TECHNOLOGY<b></H3>
</marquee>
<br>
<br>
<br> <br>
<br>
<marquee behavior="scroll" direction="UP" loop="3">
<h3 align="center"><b>WEB TECHNOLOGY<b></H3>
</marquee>
<br>
<br>
<br>
<br>
<br>
<marquee behavior="scroll" direction="DOWN" loop="4">
<h3 align="center"><b>WEB TECHNOLOGY<b></H3> </marquee>
</head> </html>
14. Create a table using all its attributes and sub tags to execute the
following Information .
<html>
<head>
<title>EThames</title>
</head>
<body>
<table border="1" style="border-collapse:collapse;">
<tr>
<td><b>S.No.</b></td>
<td><b>NAME</b></td>
<td><b>SPECIALIZATION</b></td>
</tr>
<tr>
<td>1. </td>
<td>Ada Lovelace</td>
<td>She is World's first Computer Programmer.</td> </tr>
<tr>
<td>2. </td>
<td>Adam Osborne</td>
<td>Creator of the first commercially available Portable Computer . </td>
<tr>
<tr>
<td>3.</td>
<td>AbhayBhushan</td>
<td>Author of the File Transfer Protocol . </td>
</tr>
<tr>
<td>4.</td>
<td>Alan Cooper</td>
<td>Father of Visual Basic .</td>
</tr>
<tr>
<td>5.</td>
<td>Alan Emtage</td>
<td>Developer of " Archie " which is considered to be the first search
engine.</td>
</tr>
<tr>
<td>6.</td>
<td>Alan Schaaf</td>
<td>Founder of " Imgur " which is the world's largest image hosting site .</td>
</tr>
<tr>
<td>7.</td>
<td>Alexander Douglas</td>
<td>Created the first graphical Computer game, OXO .</td> </tr>
<tr>
<td>8.</td>
<td>Andreas Bechtolsheim</td>
<td>Co-founder of Sun Microsystems.</td>
</tr>
</table> </body> </html>
<html>
<head>ethames</head
<body>
<form>
<table>
<tr>
<td><label for="uname">Name</label></td>
<td><input type="text" id="uname" name="username"></td> </tr>
<tr>
<td><label for="uemail">Email</label></td>
<td><input type="text" id="uemail" name="usermail"><button
type="button">Check</button></td>
</tr>
<tr>
<td><label for="age">Age</label></td>
<td><input type="text" name="userage" id="age" size="2"
maxlength="2"></td> </tr>
<tr>
<td><label>Country</label></td>
<td><input type="text" value="India" name="country" disabled></td> </tr>
<tr>
<td><label for="pass">Password</label></td>
<td><input type="password" id="pass" ></td>
</tr>
<tr>
<td><label for="res">Resume</label></td>
<td><input type="file" id="res" ></td>
</tr>
<tr>
<td><label >Hobbies</label></td>
<td><label><input type="checkbox" checked> Cricket</label><label><input
type="checkbox"> Football</label></td>
</tr>
<tr>
<td><label >Gender</label></td>
<td><label><input type="radio" value="f" name="gender">
Female</label><label><input value="m" type="radio" name="gender">
Male</label></td>
</tr>
<tr>
<td><label for="city">City</label></td>
<td><select id="city" name="city">
<option disabled selected>--Choose City--</option>
<optgroup label="Metros">
<option>New Delhi</option>
<option>Mumbai</option>
<option>Channai</option>
<option>Kolkata</option>
</optgroup>
<optgroup label="Others">
<option>Noida</option>
<option>Gurgram</option>
<option>Faridabad</option>
<option>Gaziabad</option>
</optgroup>
</select></td>
</tr>
<tr>
<td><label>Address</label></td>
<td><textarea rows="4" cols="40"></textarea></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Submit"><input type="reset"></td> </tr>
</table>
</form>
</body>
</html>
<option value="17">17</option>
<option value="18">18</option> <option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option> <option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select id="Birthday_Month" name="Birthday_Month">
<option value="-1">Month:</option>
<option value="January">Jan</option>
<option value="February">Feb</option>
<option value="March">Mar</option>
<option value="April">Apr</option>
<option value="May">May</option>
<option value="June">Jun</option>
<option value="July">Jul</option>
<option value="August">Aug</option>
<option value="September">Sep</option>
<option value="October">Oct</option>
<option value="November">Nov</option>
<option value="December">Dec</option>
</select>
<select name="Birthday_Year" id="Birthday_Year">
<option value="-1">Year:</option>
<option value="2012">2012</option>
<option value="2011">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option> <option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option> <option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option> <option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
</select></td>
</tr>
<tr>
<td> Date of Joining </td>
<td>
<select name= "Day" id = "day">
<option value="-1">Day:</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option> <option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option> <option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option> <option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option> <option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name = "Month" id = "month"> <option value="-1">Month:</option>
<option value="January">Jan</option>
<option value="February">Feb</option>
<option value="March">Mar</option>
<option value="April">Apr</option>
<option value="May">May</option>
<option value="June">Jun</option>
<option value="July">Jul</option>
<option value="August">Aug</option>
<option value="September">Sep</option>
<option value="October">Oct</option>
<option value="November">Nov</option>
<option value="December">Dec</option> </select>
<select name = "Year" id = "year">
<option value="-1">Year:</option>
<option value="2018">2018</option>
<option value="2017">2017</option>
<option value="2016">2016</option>
<option value="2015">2015</option>
<option value="2014">2014</option>
<option value="2013">2013</option> <option value="2012">2012</option>
<option value="2011">2011</option>
<option value="2010">2010</option>
</select></td>
</tr>
<tr>
<td> Associate Location </td>
<td><input type = "text" name:"associate_location">
</td>
</tr>
<tr>
<td> Designation </td>
<td><input type = "text" name="designation" maxlength = "50"></td> </tr>
<tr>
<td>Contact Number</td>
<td><input type="text" name="contact_number" maxlength="12"></td> </tr>
<tr>
<td>Project</td>
<td><input type="text" name="project"></td>
</tr>
<tr>
<td> Reporting Manager </td>
<td><input type="text" name="reporting_manager"></td>
</tr>
<tr>
<td> Email ID </td>
<td><input type="text" name="email_id"></td>
</tr>
</table></body></html>
<html>
<head>
<title> Universities </title>
<style> h1 { color : blue; }
</style>
</head>
<body>
18. Create a program on Pull down menu on the best Web Designing
software’s.
<html>
<head>
<title> Web Designing softwares</title>
<style> h1 { color: green; }
</style>
</head> <body>
<h1 align="center"> WEB DESINGNING SOFTWARES </h1>
<center>
<select>
<option value = "-1"> select </option>
<option value = "Adobe Photoshop"> Adobe Photoshop </option>
<option value = "GIMP"> GIMP </option>
<option value = "Sketch"> Sketch </option>
<option value = "Adobe Dreamweaver"> Adobe Dreamweaver </option>
<option value = "Color Wheel"> Color Wheel </option>
<option value = "Pictaculous">Pictaculous</option>
</select></center>
</body>
</html>
19. Create a Web Page of student information form, when the information
is submitted message should be displayed.
<html>
<head>
<title>Student Registration Form</title>
<style> h3{
font-family: Calibri;
font-size: 25pt; fontstyle: normal; fontweight: bold; color:SlateBlue;
text-align: center; text-decoration: underline
}
</head>
<body>
<h3>STUDENT REGISTRATION FORM</h3>
<td>LAST NAME</td>
<td><input type="text" name="Last_Name" maxlength="30"/>
(max 30 characters a-z and A-Z)
</td>
</tr>
<td>
<select name="Birthday_day" id="Birthday_Day">
<option value="-1">Day:</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option> <option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option> <option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<option value="-1">Year:</option>
<option value="2012">2012</option>
<option value="2011">2011</option>
<option value="2010">2010</option> <option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option> <option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
</tr>
<tr>
<td>HOBBIES <br /><br /><br /></td>
<td>
Drawing
<input type="checkbox" name="Hobby_Drawing" value="Drawing" /> Singing
<input type="checkbox" name="Hobby_Singing" value="Singing" /> Dancing
<input type="checkbox" name="Hobby_Dancing" value="Dancing" />
Sketching
<input type="checkbox" name="Hobby_Cooking" value="Cooking" /> <br
/>
Others
<input type="checkbox" name="Hobby_Other" value="Other">
<input type="text" name="Other_Hobby" maxlength="30" />
</td>
</tr>
<td>
<table>
<tr>
<td align="center"><b>Sl.No.</b></td>
<td align="center"><b>Examination</b></td>
<td align="center"><b>Board</b></td>
<td align="center"><b>Percentage</b></td>
<td align="center"><b>Year of Passing</b></td>
</tr>
<tr>
<td>1</td>
<td>Class X</td>
<td><input type="text" name="ClassX_Board" maxlength="30" /></td>
<td><input type="text" name="ClassX_Percentage" maxlength="30" /></td>
<td><input type="text" name="ClassX_YrOfPassing" maxlength="30" /></td>
</tr>
<tr>
<td>2</td>
<td>Class XII</td>
<td><input type="text" name="ClassXII_Board" maxlength="30" /></td>
<td><input type="text" name="ClassXII_Percentage" maxlength="30" /></td>
<td><input type="text" name="ClassXII_YrOfPassing" maxlength="30"
/></td> </tr>
<tr>
<td>3</td>
<td>Graduation</td>
<td><input type="text" name="Graduation_Board" maxlength="30" /></td>
<td><input type="text" name="Graduation_Percentage" maxlength="30"
/></td>
<td><input type="text" name="Graduation_YrOfPassing" maxlength="30"
/></td> </tr>
<tr>
<td>4</td>
<td>Masters</td>
<td><input type="text" name="Masters_Board" maxlength="30" /></td>
<td><input type="text" name="Masters_Percentage" maxlength="30" /></td>
<td><input type="text" name="Masters_YrOfPassing" maxlength="30" /></td>
</tr>
<tr>
<td></td> <td></td>
<td align="center">(10 char max)</td>
<td align="center">(upto 2 decimal)</td>
</tr>
</table>
</td>
</tr>
</form>
</body>
</html>
<html>
<head>
<title>HTML Frames</title>
</head>
<noframes>
<body>Your browser does not support frames.</body>
</noframes>
</frameset>
</html>
<html>
<head>
<title>HTML Frames</title>
</head>
<noframes>
<body>Your browser does not support frames.</body>
</noframes>
</frameset>
</html>
<html>
<head>
<title> </title> <style> h1 { color: green; } p { color: red;
}
</style>
</head>
<body>
<h1>ETHAMES</h1>
<p>Ethames Degree College</p>
</body>
</html>
<html>
<head>
<title>HTML Inline CSS</title> </head> <body>
<p style = "color:red;">This is red</p>
<p style = "font-size:20px;">This is thick</p>
<p style = "color:green;">This is green</p>
<p style = "color:green;font-size:20px;">This is thick and green</p>
</body>
</html>
h1 { color:
green; }
p { color: red; }
<html>
<head>
<link rel="stylesheet" href="style.css">
<title>Cascading Sheets</title>
</head>
<body>
<center><h1> Web Technology</h1></center>
<center><p> our subject </p></center>
</body>
</html>
<html>
<head>
<style type="text/css"> p
{ font-family: georgia, serif; font-size: x-large;
color:#ff9900;
} a:hover { color: LimeGreen; textdecoration: none;
}
</style>
</head>
<body>
<p>This paragraph tag has been preset using embedded style sheets. Same for
the horizontal rule below and the hyperlink under that. </p>
<p>Also see <a href="http://www.ethames.ac.in" target="_blank">external
style sheets</a></p>
</body>
</html>
<html>
<head>
<style> #para1 { text-align: center; color: red; } .center { text-align:
center; color:
red;
}
</style>
</head>
<body>
</body>
</html>
<html>
<head> <style> img { webkit-filter:
grayscale(100%); filter: grayscale(100%);
}
</style>
</head>
<body>
<h1> Filter Property </h1>
<p> convert the image to grayscale </p>
<img src="img.jpg" alt="img" width="300">
</body>
</html>
<html>
<head> <style> div { width: 100px; height: 100px; background: red;
transition: width 2s;
-webkit-transition: width 2s; /* Safari 3.1 to 6.0 */
}
div:hover {
width: 300px;
}
</style>
</head> <body>
<h1>The transition Property</h1>
<p>Hover over the div element below, to see the transition effect:</p>
<div></div>
<p><b>Note:</b> This example does not work in Internet Explorer 9 and
earlier versions.</p>
</body>
</html>
<html>
<head>
<style>
div { border: 1px solid gray; padding: 8px;
}
h1 { text-align: center;
text-transform: uppercase; color: #4CAF50;
}
<div>
<h1>text formatting</h1>
<p>This text is styled with some of the text formatting properties. The heading
uses the text-align, text-transform, and color properties.
The paragraph is indented, aligned, and the space between characters is
specified.
The underline is removed from this colored
<a target="_blank" href="tryit.asp?filename=trycss_text">"Try it
Yourself"</a> link.</p>
</div>
</body> </html>
<html>
<head>
<title>Find the area and circumference of a circle</title>
</head>
<body>
<script language="JavaScript"> function CalculateArea(){ var radius
=document.form1.txtRadius.value; document.write("<P>The area of the
circle is " + (radius * radius * Math.PI) +
"</p>");
document.write("<P>The circumference of the circle is " + (2 * radius *
Math.PI) + "</p>");
}
</script>
<form name=form1>
Enter the radius of circle:
<input type="text" name="txtRadius" size=10>
<br>
<input type="button" value="Calculate" onClick='CalculateArea();'>
</form>
</script>
</body>
</html>
<script>
function largest()
{
var, num1, num2, num3;
num1 = Number(document.getElementById("N").value);
num2 = Number(document.getElementById("M").value);
num3 = Number(document.getElementById("O").value);
<html>
<head>
<title>math</title>
<script type= "text/javascript ">
<!-- functionoper()
{
varch=parseInt(prompt( "Enter your choice 1.Addition 2.Subtraction
3.Multiplication 4.Division ")); switch(ch)
{
case 1: var v1=parseInt(prompt( "Enter the first value ")); var
v2=parseInt(prompt( "Enter the second value
")); var v3=v1+v2; document.writeln( "<br> "+
"Addition: "+v3); break;
case 2:
var v4=parseInt(prompt( "Enter the first value ")); var
v5=parseInt(prompt( "Enter the second value
")); var v6=v4-v5; document.writeln( "<br> "+
"Subtraction: "+v6); break;
case 5:
var v13=parseInt(prompt( "Enter the first value ")); var
v14=parseInt(prompt( "Enter the second value ")); var
v15=v13%v14; document.writeln( "<br> "+ "Modulus:
"+v15); break;
default:
} document.writeln( "Enter choice correctly ");
}
</script>
</head>
<body onLoad= "oper()"></body>
</html>
33. Write a Java Script program to print Odd numbers using while loop.
<html>
<head>
<script type="text/JavaScript"> var i = 1; while (i <= 100) { document.write (i
+ "<br>"); i
+= 2; }
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<script type='text/javascript'> var num = prompt("Enter a Number")
<html>
<head>
<script type="text/javascript">
<!-- function sayHello() { alert("Hello World")
}
//-->
<!--
function validation() { all validation goes here
.........
return either true or false
}
//-->
<!--
function over() { document.write ("Mouse Over");
} function out() { document.write ("Mouse
Out");
}
//-->
</script>
</head>
<body>
<p>Click the following button and see result</p>
<form>
<input type="button" onclick="sayHello()" value="Say Hello" />
</form>
36. Write a Java Script program to print N-natural numbers using For
loop
<html>
<head>
<script type='text/javascript'> var num = prompt("Enter a Number")
for(i=0;i<=num;i++) {
document.write(i);
}
</script>
</head>
<body>
</body>
</html>
<html>
<head> <script> function show(){
<html>
<head>
<title>Basic Javascript Array Example</title>
<script language="javascript">
alert(fruits[1]);
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<title>JavaScript String split() Method</title>
</head>
<body>
document.write( splitted );
</script>
</body>
</html>
<html>
<body>
<script type="text/javascript">
document.write(Math.round(7.25))
document.write(Math.max(2,4))
document.write(Math.min(2,4))
</script>
</body>
</html>
41. Create a Web page with an image, when the mouse is doubled clicked
new image should replace the existing
<html>
<head><title>ondblclick event demo</title>
</head>
<body>
<h3>ondblclick event demo</h3>
<p>Fires when the element is double-clicked.</p> <img
style="width:300px;height:100px;border:1px solid;"
ondblclick="javascript:alert('event has been triggered');">Demo text</img>
</body>
</html>
42. Create a Web page and apply mouse effects to change text color, size,
family etc on the text
<html>
<head> <style>
a.one:link {color:#ff0000;}
a.one:visited {color:#0000ff;}
a.one:hover {color:#ffcc00;}
a.two:link {color:#ff0000;}
a.two:visited {color:#0000ff;}
a.two:hover {font-size:150%;}
a.three:link {color:#ff0000;}
a.three:visited {color:#0000ff;}
a.three:hover {background:#66ff66;}
a.four:link {color:#ff0000;}
a.four:visited {color:#0000ff;}
a.four:hover {font-family:monospace;}
a.five:link {color:#ff0000;text-decoration:none;}
a.five:visited {color:#0000ff;text-decoration:none;}
a.five:hover {text-decoration:underline;}
</style>
</head>
<body>
<p>Mouse over the links and watch them change layout:</p>
<p><b><a class="one" href="default.asp" target="_blank">This link changes
color</a></b></p>
43. Create a Web page which displays a line of text, when you click on the
text a new line of text should overwrite the existing text.
<html>
<body>
</body>
</html>
<html>
<head> <script> function myFunction() { alert("You pressed a key inside the
input field");
}
</script>
</head>
<body>
<p>A function is triggered when the user is pressing a key in the input
field.</p>
</body>
</html>
<html>
<head> <script> function message() { alert("This alert box was triggered by
the onreset event handler");
}
</script>
</head>
<body>
<form onreset="message()">
Enter your name: <input type="text" size="20">
<input type="reset">
</form>
</body>
</html>
46. Create a XML document for employee database with 10 records and 5
columns in each record.
<product>Desktop</product>
<id>333</id>
<price>$2995.00</price>
</project>
<project>
<product>Scanner</product>
<id>444</id>
<price>$200.00</price>
</project> </projects>
</employee>
<employee>
<name>
<lastname>Gable</lastname>
<firstname>Clark</firstname>
</name>
<hiredate>October 25, 2005</hiredate>
<projects>
<project>
<product>Keyboard</product>
<id>555</id>
<price>$129.00</price>
</project>
<project>
<product>Mouse</product>
<id>666</id>
<price>$25.00</price>
</project>
</projects>
</employee>
<employee>
<name>
<lastname>Harry</lastname>
<firstname>Dou</firstname>
</name>
<hiredate>October 15, 2005</hiredate>
<projects>
<project>
<product>Printer</product>
<id>111</id>
<price>$111.00</price>
</project>
<project>
<product>Laptop</product>
<id>222</id>
<price>$989.00</price>
</project>
</projects>
</employee> <employee>
<name>
<lastname>Lary</lastname>
<firstname>Cary</firstname>
</name>
<hiredate>October 20, 2005</hiredate>
<projects>
<project>
<product>Desktop</product>
<id>333</id>
<price>$2995.00</price>
</project>
<project>
<product>Scanner</product>
<id>444</id>
<price>$200.00</price>
</project>
</projects>
</employee>
</document>
47. Create a XML document for student database and apply the style sheet
effects.
Steps to Apply CSS to XML Document
Step 1 : Create XML
Create Sample XML File same like shown above. (Say Student.xml)
<?xmlversion="1.0"encoding="UTF-8"standalone="yes"?>
<Students>
<Student>
<Name>Ra.One</Name>
<Address>New Delhi</Address>
</Student>
<Student>
<Name>Krishh</Name>
<Address>New Mumbai</Address>
</Student>
</Students>
Name
{ display:block; font-weight:bold; font-size :18px;
}
Address
{ font-size
:15px;
}
Step 3 : Include CSS file in the XML Document
Applying css to the XML document is much easy task. we need to include
css
<?xml-stylesheet type="text/css" href="Student.css"?>
After Including above line in the XML document complete XML document will
looks like –
<?xmlversion="1.0"encoding="UTF-8"standalone="yes"?>
<?xml-stylesheet type="text/css" href="Student.css"?>
<Students>
<Student>
<Name>Ra.One</Name>
<Address>New Delhi</Address>
</Student>
<Student>
<Name>Krishh</Name>
<Address>New Mumbai</Address>
</Student>
</Students>
<bookstore xmlns:xlink="http://www.w3.org/1999/xlink">
</bookstore>
<html>
<body>
<div>
<b>FirstName:</b> <span id = "FirstName"></span><br>
<b>LastName:</b> <span id = "LastName"></span><br>
<b>ContactNo:</b> <span id = "ContactNo"></span><br>
<b>Email:</b> <span id = "Email"></span>
</div>
<script>
//if browser supports XMLHttpRequest if
(window.XMLHttpRequest)
{ // Create an instance of XMLHttpRequest object. code for IE7+,
Firefox, Chrome, Opera, Safari xmlhttp = new
XMLHttpRequest();
} else { // code for IE6, IE5 xmlhttp = new
ActiveXObject("Microsoft.XMLHTTP");
}
xmlDoc.getElementsByTagName("FirstName")[0].childNodes[0].nodeValue;
document.getElementById("LastName").innerHTML =
xmlDoc.getElementsByTagName("LastName")[0].childNodes[0].nodeValue;
document.getElementById("ContactNo").innerHTML =
xmlDoc.getElementsByTagName("ContactNo")[0].childNodes[0].nodeValue;
document.getElementById("Email").innerHTML =
xmlDoc.getElementsByTagName("Email")[0].childNodes[0].nodeValue;
</script> </body>
</html>
Create node.xml
<Company>
<Employee category = "Technical" id = "firstelement">
<FirstName>Tanmay</FirstName>
<LastName>Patil</LastName>
<ContactNo>1234567890</ContactNo>
<Email>tanmaypatil@xyz.com</Email>
</Employee>