write code for this please 1Design a web page that uses 2 im
write code for this please:
1.Design a web page that uses 2 images one is to open a local image file and the other to open external web site.
2. Design a web page using the HTML and CSS that demonstrate the method of style - overriding.
Solution
1)
web page that uses 2 images one is to open a local image file and the other to open external web site.
<!DOCTYPE html>
<html>
<body>
<a href=\"/html/image2.jpg\">
<img src=\"image2.jpg\" alt=\"image2\" >
</a>
<p>The image is a link. You can click on it.</p>
<a href=\"https://www.google.co.in/\">
<img src=\"smiley.gif\" alt=\"google\" >
</a>
</body>
</html>
2)
a web page using the HTML and CSS that demonstrate the method of style - overriding.
<!DOCTYPE html>
<html>
<head>
<style>
p {
border: 1px solid powderblue;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
p {
color:blue;
}
p{
color:red;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
</body>
</html>

