Please fix and improve my HTML and CSS code: First picture is my WRONG output. Second picture is the EXPECTED output. Just use random pictures for photo1. photo2, photo3, photo4, photo1thumb, photo2thumb, photo3thumb, photo4thumb for testing.   index.html Image Gallery Image Gallery             Golden Gate Bridge                   California Beach              Waves Crashing              Pacific Sunset

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

Please fix and improve my HTML and CSS code:

First picture is my WRONG output.

Second picture is the EXPECTED output.

Just use random pictures for photo1. photo2, photo3, photo4, photo1thumb, photo2thumb, photo3thumb, photo4thumb for testing.

 

index.html

<!DOCTYPE html>
<html lang="en">
<head>
<title>Image Gallery</title>
<meta charset="utf-8">
<style>

#gallery     {     position: relative; }
#gallery ul     {     width: 250px; list-style-type: none; }
#gallery li     {     display: inline; float: left; padding: 10px
#gallery img     {     border-style: none; }
#gallery a     {     text-decoration: none; color: #333;
                font-style: italic; }
#gallery span     {     display: none; }
#gallery a:hover span { 
                    display: block; 
                    position: absolute;
                    top: 10px; left: 300px; 
                    text-align: center; }

</style>
</head>
<body>
<h1>Image Gallery</h1>
<div id = "gallery">
<ul>
    <li><a href="photo1.jpg"><img src="photo1thumb.jpg" width="100" <span>
        <img src="photo1.jpg" width="250" height="150">Golden Gate Bridge
        </li> 
    <li><a href="photo2.jpg"><img src="photo2thumb.jpg" width="100"<span>
    <img src="photo2.jpg" width="250" height="150">California Beach</li>
    
    <li><a href="photo3.jpg"><img src="photo3thumb.jpg" width="100"<span>
    <img src="photo3.jpg" width="250" height="150">Waves Crashing</li>
    
    <li><a href="photo4.jpg"><img src="photo4thumb.jpg" width="100"<span>
    <img src="photo4.jpg" width="250" height="150">Pacific Sunset</li>
    
</ul>
</div>
</body>
</html>

 

Image Gallery
TORE
1100
Golden Gate Bridge
California Beach
Transcribed Image Text:Image Gallery TORE 1100 Golden Gate Bridge California Beach
Image Gallery
Image Gallery
Pacific Sunset
An interactive image gallery with CSS
с
X
III
Transcribed Image Text:Image Gallery Image Gallery Pacific Sunset An interactive image gallery with CSS с X III
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Image Element
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education