headings, images , anchor tag,use of special character ,table,span in table, image hyperlinks , feedback form , DIV tag,descendent selector via div and para tag, child selector, javascript , internal links , drag and drop
2. SNO TOPIC REMARK
1 Headings,image,anchor tag
2 Use of special character
3 Table
4 Span in table
5 Image hyperlinks(navigation bar)
6 Anchor tag
7 Question 7:form(feedback)
8 DIV tag
9 Descendent selector(through div and para tag)
10 Child selector (using para and div tag)
11 Javascript
12 Internal links
13 drag and drop
6. <p><del>Youmay download 3.14*10<sup>2</sup>
character worth of information from this site </del>
only <sub>one</sub>download per hour is permited</p>
<p><em>Note< ¼ of the information presented here is updated daily
</em></p>
</body>
</html>
7.
8. Question 3 : Table
<?xml version="." encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 strict//EN"
"http://www.w3.org/TR/xhtml strict dtd"
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Asimple XHTML table </title>
</head>
<body>
<table border="1" width="40"
summary="this table provides information about the prices of fruit">
<caption<<strong>Priceof fruit </strong></caption>
<thead>
<tr>
<th>FRuit</th>
<th>Price</th>
</tr>
</thead>
<tfoot>
<tr>
<th>ToTal</th>
<th>$3.75</th>
</tr>
17. Question 6:anchor tag
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/TR/xhtml1" xml:lang="en" lang="en">
<head>
<title>DOCUMENTATION</title>
</head>
<body>
<h1 align=center>Example of Anchor tag</h1>
<h>here are the links to various JIMS institutions WEbsites</h>
<p><strong>click a name to go to that page</strong></p>
<!-- create for text hyperlinks -->
<p><ahref="https://www.jimsd.org">JIMS vasant kunj-II </a></p>
<p><ahref="https://www.jimsd.org">JIMS kalkaji </a></p>
<p><ahref="https://www.jimsd.org">JIMS rohini </a></p>
<p><ahref="https://www.jimsd.org">JIMS greater noida </a></p>
</body>
</html>
18.
19. Question 7:form(feedback)
<?xml version="." encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0strict//EN"
http://www.w3.org/TR/xhtml/DTD/xhtml strict.dtd">
<html xmlns="http:www.w3.org/1999/xhtml">
<head>
<title>FORMS</title>
</head>
<body>
<h1>FEEDBACK form </h1>
<p> please fill out this form to help us improve our site</p>
<form method="post"action=" ">
<p>
<input type="text" name="recipient"
value="artisolanki1234@gmail.com"/>
<input type="hidden" name="subject"
value="Feedback Form"/>
<input type="hidden" name="redirect"
value="span.html"/>
<p><label>Name:
<input name="name" type="text" size="25"
maxlength="30"/>
</label>
23. Question 9:descendent selector(through div and para tag)
<!DOCTYPE html>
<html>
<head>
<style>
div p{
background-color:cyan;
border-right-style:solid;
border-color:red;
<!--border-radius:50px;-->
border-right-width:7px;
padding:20px;
<!--width:200px;-->
<!--height:150px;-->
}
h1{
font-size;32;
font-family;times new roman;
}
</style>
</head>
<body>
<h1 align="center">Example of descendant selector</h1>
24. <h2 align="center">through div and para tag </h2>
<div>
<p>paragraph 1 in the div</p>
<p>paragraph 2 in the div</p>
<p>paragraph 3 in the div</p>
</div>
<p>paragraph 4 not in the div</p>
</body>
</html>
25. Question 10:child selector (using para and div tag)
<!DOCTYPE html>
<html>
<head>
<style>
div>p {
background-color:yellow;
border-bottom-style:dotted;
}
</style>
</head>
<body>
<h1 align=center>Example of child selector</h1>
<h2 align=center>This example selects all <p> elements inside <div>
elements</h2>
<div>
<p>Hey JIMS,I am paragraph 1 in the div</p>
<p>Hey JIMS,I am paragraph 2 in the div</p>
<section><p>HeyJIMS,I am paragraph 3 in the div</p></section>
<p>Hey JIMS,I am paragraph 4 in the div</p>
</div>
<p>Hey JIMS,I am paragraph 5 not in a div</p>
32. Question 13:drag and drop
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 STRICT//EN"
"HTTP://www.w3.org/TR/xhtml1-strict"
<html>
<head>
<title>
drag and drop
</title>
<script type="text/javascript">
var diffX,diffY,theElement;
function grabber(event)
{
theElement=event.currentTarget;
var posX=parseInt(theElement.style.left);
var posY=parseInt(theElement.style.top);
diffX = event.clientX - posX;
diffY = event.clientY - posY;
document.addEventListener("mousemove",mover,true);
document.addEventListener("mouseup",dropper,true);
event.stopPropagation();