Click here to Skip to main content
15,797,923 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
the image banner.jpg is available but still not suggesting in vs code
and isn't appearing on web page

What I have tried:

<!DOCTYPE html>
<html lang="en">

    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Barber Shop</title>
        * {
            margin: 0px;
            padding: 0px;
            background: url(images/banner.jpg);

    <section id="banner">


Updated 3-Jun-21 4:50am

1 solution

Rather odd CSS to define you image but here's one glaring mistake:

background: url(images/banner.jpg);

It should be
background: url("images/banner.jpg");

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900