Create an html/javascript and align the image and text vertically and horizontal
ID: 3571371 • Letter: C
Question
Create an html/javascript and align the image and text vertically and horizontally to the center as the image shown.Also resize the image
Main html document
<!DOCTYPE html>
<html>
<head>
<title>HTML and JavaScript</title>
</head>
<frameset cols="20%,*,">
<frame name="UpperFrame" src="upper2.html">
<frame name="LowerFrame" src="lower4.html">
</frameset>
</html>
upper2.html
<!DOCTYPE html>
<html>
<head>
<title>HTML and JavaScript</title>
<center><h1>ANIMAL</h1></center></P>
<CENTER><h1>IMAGES</H1></CENTER></p>
<center><p><a href=>Lions</a></p>
<p><a href=>Tigers</a></p>
<p><a href=>Bears</a></p>
<p><a href=>Camels</a></p>
<p><a href=>Zebras</a></p>
<p><a href=>Elephants</a></p></center>
</div>
</body>
</html>
lower4.html
<!DOCTYPE html>
<html>
<head>
<title>HTML and JavaScript</title>
</head>
<body>
<img
src="http://www.websitedevelopmentbook.com/Chapter02/cat.jpg"/>
</div>
</body>
</html>
Explanation / Answer
<!DOCTYPE html>
<html>
<head>
<title>HTML and JavaScript</title>
</head>
<body>
<imgvertical-align:middle"
src="http://www.websitedevelopmentbook.com/Chapter02/cat.jpg"
/>
</div>
</body>
</html>
change code shipset tovertical-align:middle"
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.