Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: HTML Images, audios and videos  (Read 6675 times)

0 Members and 1 Guest are viewing this topic.

sara

    Topic Starter


    Starter

    • Experience: Beginner
    • OS: Other
    HTML Images, audios and videos
    « on: January 12, 2017, 07:53:34 PM »
       Hi, Guys how are you doing?

       my name is Sara and i am trying to learn HTML and CSS. my question is my browsers can not display images, audio and videos. by the way, my OS is windows 10 pro, i am using notepad++, browsers Firefox, chrome and IE. None of my browsers are working. here are the following HTML codes:
     
     1. <img src="Documents/reyan.jpg" alt="reyan" style="width:400px;height:400px;">
     2. <audio controls>
      <source src="Documents/RAAZ REBOOT.MP4" type="audio">
    </audio>
    3. <video controls>
                  <source src="Documents/Super_yoga.mp4" type="video/mp4"/>
          </video>

        i have tried three of my browsers and none of them are working. for more information i am attaching the three browsers how they look like after they display the image
     
        please guys i need your help.
          Thank you,
          Sara




           

    [attachment deleted by admin to conserve space]

    jenno



      Rookie

      • Experience: Familiar
      • OS: Windows 7
      Re: HTML Images, audios and videos
      « Reply #1 on: January 13, 2017, 02:32:03 AM »
      Your code looks correct, the only thing I can think of is an issue with the source files. Are they definitely where they're supposed to be?

      sara

        Topic Starter


        Starter

        • Experience: Beginner
        • OS: Other
        Re: HTML Images, audios and videos
        « Reply #2 on: January 14, 2017, 01:41:25 PM »
            HI, Jenno

            you mean the directory of my files?  the images, audio and videos and the index,html are in the same folder ( Documents)


           

        sara

          Topic Starter


          Starter

          • Experience: Beginner
          • OS: Other
          Re: HTML Images, audios and videos
          « Reply #3 on: January 16, 2017, 12:23:31 AM »
           
             Hi guys

              i think the problem is with windows 10 because my images, audio and videos are working with windows 7. i have tried with my friends windows 7 OS. now, my question is how can i downgrade to windows 7?


             Thank you,
              sara

          camerongray



            Expert
          • Thanked: 306
            • Yes
            • Cameron Gray - The Random Rambings of a Computer Geek
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Mac OS
          Re: HTML Images, audios and videos
          « Reply #4 on: January 16, 2017, 03:59:41 AM »
          You are including files in a path relative to your HTML file.  Therefore if your HTML file is in D:/Notepad++/ then your browser is looking for the images in D:/Notepad++/Documents/Super_yoga.mp4.  If this is not correct then you will either need to move the files into the same directory or use a full path to access you images (e.g. C:/Users/username/Documents/Super_yoga.mp4).

          This issue is in no way related to Windows 10 so downgrading your entire OS to try to solve the issue would be silly.