Skip to content

[HELP] HTML problem

Featured Replies

I have a problem with HTML. When i write at the notepad these commands like: <IMG SRC="../anyimage.gif"> or <BGSOUND SRC=".../blablabla.mp3"> at the browser doesnt happen nothing. Before someone tell that may i dont save the file, i tell you that i do it. I dont have any problem with the browser, maybe i use Opera the last version but i have and Google Chrome.

 

Someone help me. I dont know if i write with a false way the commands or something else is going wrong.

  • Author

Bumpz0r!

 

Plz help!

well first of all use notepad++ ;)

2nd, make sure there is nothing wrong with the pic or sound you're putting and also that they are in the location you specified!

and does this happen only with these 2 commands?

  • Author

I use notepad, the pics and the music dont have any problem. And yes at the whole commands that i have used until now, only these two have some problem.

I use notepad, the pics and the music dont have any problem. And yes at the whole commands that i have used until now, only these two have some problem.

well better download notepad++ it will make you understand where is the prob!

or you can send me the code to test it for you, whatever you want.

you can  open the html file with notepad or WordPad and Insert the HTML Code

Does the "View Source" shows you something?

 

  • Author

you can  open the html file with notepad or WordPad and Insert the HTML Code

I dont want to edit any other html file i try to make my own html files.

 

Does the "View Source" shows you something?

 

View Source??? I am newbie at website coding.
  • Author

just post the code here so that it will be easier for us to help!

the codes that i use are

 

<BGSOUND SRC=".../blabla.mpe">

and

 

<IMG SRC=".../balbla.gif or jpg">

is the mp3 saved at the same directory with .html file?

 

also

 

where exactly did you insert that tag? between <body> ... ... </body>?

 

 

it should be placed on <head> ... <bgsound src="..."></head>

 

I'm not sure but I think bgsound is a double tag.

I'm not sure but I think bgsound is a double tag.

 

Nop, it's not.

 

it should be placed on <head> ... <bgsound src="..."></head>

 

Between the body tags you mean.

 

View Source??? I am newbie at website coding.

 

When you are in your browser, viewing your page, just press CTRL+U (in mac CMD+U).

 

-Blane

Between the body tags you mean.

Not according to this.

this is your directory?

folder: MyWeb

MyWeb\index.html

MyWeb\images\imagejpg

MyWeb\sounds\bgsound.mp3

???

index.html

 

<body>

change your code for img to

<img src="images/image.jpg" />

change your bgsound code to

 

<embed src="sounds/bgsound.mp3" visible="hidden" loop="yes" />

</body>

<!-- Comment: this embed is embeding the sound with "hidden" it means only sound, change loop to "no" if you want the sound play once -->

 

note: this code must compatible to all browser...

 

ask me more if you have any question ^_^

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.