Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 12

ASSIGNMENT 1

Q1.

Code:
1.html:
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body>
    <a href="2.html">Move to second page</a>
   
    
</body>
</html>
Output:

2.html:
Code:
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body>
    <a href="3.html">Move to third page</a>
</body>
</html>
Output:

3.html:
Code:
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body>
    <a href="4.html">Move to fourth page</a>
   
    
</body>
</html>

Output:
4.html:
Code:
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body>
    <a href="1.html">Move to first page</a>
</body>
</html>

Output:
Q2.

Code:
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body>
    <p>(a+b)<sup>2</sup>=a<sup>2</sup>+2*a*b+b<sup>2</sup></p>
    <p>(a+b)*(a-b)=a<sup>2</sup>-b<sup>2</sup></p>
    <p>(a+b)<sup>3</sup>=a<sup>3</sup>+3*a*b<sup>2</sup>+3*a<sup>2</sup>*b+b<s
up>3</sup></p>
   
    
</body>
</html>
Output:
Q3

Code:
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body>
    <ul>
             <h1>Page links</h1>
             <hr>
             <li>
             <p> <a href="p1.html" >page 1</a></p>
        </li>  
        <li>
            <p><a href="p2.html">page 2 </a></p>
        </li> 
        <li>
            <p><a href="p3.html">page 3</a></p>
        </li>       

    
    </ul>
</body>
</html>

Output:
Q4
Create three webpages:
Code:
1.hyderabad.html:
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body>
    <h1>Hyderabad</h1>
    <hr>
    <img src="hy.png" height="200 px" width="400 px" alt="This is Hyderabad">
    <img src="hy2.jpeg" height="200 px" width="400 px" alt="This is Hyderabad"
>
    <img src="hy4.jpg" height="200 px" width="500 px" alt="This is Hyderabad">
    <p>Hyderabad is the capital and largest city of the Indian state of Telang
ana and de jure capital of Andhra Pradesh.[A] Occupying 650 square kilometres 
(250 sq mi) along the banks of the Musi River, located on the Deccan Plateau i
n the northern part of South India. At an average altitude of 542 metres (1,77
8 ft), much of Hyderabad is situated on hilly terrain around artificial lakes, 
including Hussain Sagar lake —predating the city's founding—north of the city 
centre. Hyderabad City has a population of about 6.9 million, with about 9.7 m
illion in Hyderabad Metropolitan Region, making it the fourth-most populous ci
ty and sixth-most populous urban agglomeration in India. With an output of US$
74 billion, Hyderabad is the fifth-largest contributor to India's overall gros
s domestic product.</p>
    
</body>
</html>

Output:

2.chennai.html:
Code:
!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body>
    <h1>Chennai</h1>
    <hr>
    <img src="c.jpg" height="200 px" width="400 px" alt="This is Chennai">
    <img src="c1.jpg" height="200 px" width="400 px" alt="This is Chennai">
    <img src="c2.jpg" height="200 px" width="500 px" alt="This is Chennai">
   <p>Chennai had the third-largest expatriate population in India, at 35,000 
in 2009, 82,790 in 2011 and estimated at over 100,000 by 2016.[20][21] Tourism
-guide publisher Lonely Planet named Chennai as one of the top ten cities in t
he world to visit in 2015.[22] Chennai is ranked as a beta-level city in the G
lobal Cities Index,[23] and was ranked the best city in India by India Today i
n the 2014 annual Indian city survey.[24][25] In 2015 Chennai was named the "h
ottest" city (worth visiting, and worth living in for long term) by the BBC, c
iting the mixture of both modern and traditional values.[26] National Geograph
ic mentioned Chennai as the only South Asian city to feature in its 2015 "Top 
10 food cities" list.[27] Chennai was also named the ninth-best cosmopolitan c
ity in the world by Lonely Planet.[28] </p>
    
</body>
</html> 

Output:

3.Bangalore.html:
Code:
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body>
    <h1>Bangalore</h1>
    <hr>
    <img src="b.jpg" height="200 px" width="400 px" alt="This is Bangalore">
    <img src="b1.jpg" height="200 px" width="400 px" alt="This is Bangalore">
    <img src="b2.jpg" height="200 px" width="500 px" alt="This is Bangalore">
   <p>Bangalore, officially known as Bengaluru[14] ([ˈbeŋɡəɭuːɾu] (About this 
soundlisten)), is the capital of the Indian state of Karnataka. It has a popul
ation of over ten million,[8] making it a megacity and the third-most populous 
city and fifth-most populous urban agglomeration in India.[15] It is located i
n southern India, on the Deccan Plateau at an elevation of over 900 m (3,000 f
t) above sea level, which is the highest among India's major cities.[16] Its m
ulti-ethnic, multi-religious, and cosmopolitan character is reflected by its m
ore than 1000 Hindu temples, 400 mosques, 100 churches, 40 Jain Basadis, three 
Sikh gurdwaras, two Buddhist viharas and one Parsi fire temple located in an a
rea of 741 km² of the metropolis. The religious places are further represented 
by the proposed Chabad of the Jewish community. </p>
    
</body>
</html>

Output:

You might also like