Web Analytics Made Easy -
StatCounter My website - CodingForum

Announcement

Collapse
No announcement yet.

My website

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • My website

    I've started building a website and have photo elements in the code as follows:
    <img src="file:///C:/Users/Home/Pictures/iphone6splusgold_portrait.png" class = "iphone" alt="Iphone6" style="width:650px;height:660px;">

    I only have HTML and CSS code in the .htm file. Every time I try and upload it to *************** the photos and Animate.css don't show. Can anyone tell me why or suggest a better free website service to use?

    Website: http://ezswype.comuf.com/Ezswype.htm

    Problem when uploaded to server:
    https://postimg.org/image/esjghe0x5/

    What it's supposed to look like:
    https://postimg.org/image/9wtsb4tzt/

    Contact: [email protected] or post a reply, thanks!

  • #2
    Code:
    src="file:///C:/Users/Home/Pictures/
    Do we SEE the problem here? How is a website going to have access to files on your local hard drive? Did you upload those images? If so, where did you upload them to? You don't just upload the HTML file with LOCAL file:// links to your images.

    Though the fact you even HAVE the file:// rubbish means you've probably been DUPED into using some overpriced pile of trash like Dreamweaver, so you've got a bit to learn.

    Via FTP create a /pictures directory in the root of your account next to the .html file. Upload your images to there, then change ALL your src="" to something like:

    Code:
    <img src="pictures/iphone6splusgold_portrait.png">
    Oh, and get some alt tags on your images, and lose the inline style="" rubbish. Unless that "style" is conveying meaning (a very rare corner case) if you say style="" in your markup, you're doing something wrong!

    But then with your lack of quotes around attribute values, endless pointless classes for nothing, little if anything resembling semantic markup, and static css inside a <style> tag, lack of anything remotely resembling logical document structure, and using absolute positioning instead of flow for EVERYTHING... you've got some work and learning ahead.
    Walk the dark path, sleep with angels, call the past for help.
    https://cutcodedown.com
    https://medium.com/@deathshadow

    Comment


    • #3
      This is my first website and I've only started learning how to code. The classes, values and style tags are all linked to the CSS above, it works perfectly in the code document so there's nothing wrong with the code I've written as everyone as different ways of doing things. I've figured out the problem for anyone wondering.
      I've linked the images to my hard drive, linking them to an online uploading website such as Postimage.org is helpful if you want images on your website as they host and give you a html link. Thanks for your help anyways.

      Comment


      • #4
        Originally posted by deathshadow View Post
        Code:
        src="file:///C:/Users/Home/Pictures/
        Do we SEE the problem here? How is a website going to have access to files on your local hard drive? Did you upload those images? If so, where did you upload them to? You don't just upload the HTML file with LOCAL file:// links to your images.

        Though the fact you even HAVE the file:// rubbish means you've probably been DUPED into using some overpriced pile of trash like Dreamweaver, so you've got a bit to learn.

        Via FTP create a /pictures directory in the root of your account next to the .html file. Upload your images to there, then change ALL your src="" to something like:

        Code:
        <img src="pictures/iphone6splusgold_portrait.png">
        Oh, and get some alt tags on your images, and lose the inline style="" rubbish. Unless that "style" is conveying meaning (a very rare corner case) if you say style="" in your markup, you're doing something wrong!

        But then with your lack of quotes around attribute values, endless pointless classes for nothing, little if anything resembling semantic markup, and static css inside a <style> tag, lack of anything remotely resembling logical document structure, and using absolute positioning instead of flow for EVERYTHING... you've got some work and learning ahead.

        This is my first website and I've only started learning how to code. The classes, values and style tags are all linked to the CSS above, it works perfectly in the code document so there's nothing wrong with the code I've written as everyone as different ways of doing things. I've figured out the problem for anyone wondering.
        I've linked the images to my hard drive, linking them to an online uploading website such as Postimage.org is helpful if you want images on your website as they host and give you a html link. Thanks for your help anyways.

        Comment

        Working...
        X