dcsimg
www.webdeveloper.com
Results 1 to 9 of 9

Thread: Image error

  1. #1
    Join Date
    May 2017
    Posts
    4

    Image error

    Hello,

    My image isn't displaying on google chrome browser. What could be the problem?

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

    <head>
    <meta charset="utf-8">
    <title>Justin Beaver Fascinated by HTML</title>
    <link rel="stylesheet" href="main.css">
    </head>

    <body>
    <article>
    <header>
    <h1>Justin Beaver: Ever since I have learned HTML, my life has taken a complete 180</h1>
    <p>Poster by: Damian Wielgosik</p>
    </header>
    <p>Justin Beaver confessed something that even his greatest fans would have never expected of the skilled musicians and lyricist. The young rock-and-roller admitted that since he typed his first title tag, his life became easier. It has been reported by those surrounding the Canadian that Beaver's private mentors, Ryan Loseling and Nicolas Crate, often walk around Los Angeles disputing what a great tool the HTML validator is.</p>
    <figure>
    <img src="Arsenal.png" alt="Arsenal Logo">
    <figcaption>Justin Beaver's happy cat</figcaption>
    </figure>
    <p>Beaver has already created some websites and does not intent to stop there,
    <q>I will probably have a song about HTML on my next album,</q> - the artist added.
    </p>
    </article>
    </body>
    </html>

  2. #2
    Join Date
    May 2016
    Location
    Southern California
    Posts
    81
    Where is the image stored? Is it in an images directory? Right now your code is looking for it in the root directory.

  3. #3
    Join Date
    May 2017
    Posts
    4
    The current image is stored on my desktop.

  4. #4
    Join Date
    Jan 2004
    Location
    chertsey, a small town s.w. of london, england.
    Posts
    1,824

    Quote Originally Posted by TheMagicalForce View Post
    The current image is stored on my desktop.
    And where is your HTML file stored?

    coothead
    ~ the original bald headed old fart ~

  5. #5
    Join Date
    May 2017
    Posts
    1
    I think in your code. your code is looking for pictures in the same folder with html file. So if you put the picture in your desktop and your desktop don't include your html file. you should check

  6. #6
    Join Date
    May 2017
    Posts
    1
    please store the image and the html file in the same folder...
    for example if your image is on desktop then you should also save your html file on desktop

  7. #7
    Join Date
    Mar 2012
    Posts
    3,860
    Although, when viewing files locally, a browser will allow you to store the files anywhere you like, the same is not true online. So to avoid unexpected difficulties when you eventually up-load your web pages, it is better to develop the site offline in the same structure as it will have online:

    1. Each web site has a home directory, which may be called "www".
    2. The home page of your web site should (usually) be called "index.html", and is stored in the home directory.
    3. Other web pages can be stored in the home directory (or child directories of home).
    4. It is good practice to store images, and other binary files, in child directories of the home directory, e.g. "images".
    5. All directory names and file names are to be in lower case.

  8. #8
    Join Date
    Nov 2011
    Location
    chennai
    Posts
    78
    Please check your image dimension or please set your image dimension on IMG tag. I think the dimension is not supported on your monitor.

  9. #9
    Join Date
    Jun 2017
    Posts
    3
    Error "NSIS Error" - what is it and how to fix it ?!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles