dcsimg
www.webdeveloper.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: HTML file link code

  1. #1
    Join Date
    Sep 2003
    Location
    Texas
    Posts
    3

    Post HTML file link code

    I really need help finding a code that i can create a link from my site to mp3 files saved on the server. I really suck at html, so if you can help me, i'd appreciate it.
    ryan cox

  2. #2
    Join Date
    Sep 2003
    Location
    Texas
    Posts
    3
    P.S.
    If anyone also has a code for inserting pictures (with position coding) i would appreciate that too!
    ryan

  3. #3
    Join Date
    Dec 2002
    Location
    Manchester, UK
    Posts
    6,276
    If you want to link to an mp3 then do this:

    <a href="abc.mp3">abc.,mp3</a>

    Alternatively you can link to a page with an mp3 embedded in it. To embed something do this:

    <embed src="abc.mp3" width="x" height="y" autostart="false">

    It is not neccesary to include the width, height or autostart attributes but I did include them just so you know about them.


    To put an image on page and position it you can do this:

    <img src="def.gif" style="position:fixed;top:100px;left:50%;">

    You can use px or % for units. px means pixels and % refers to the percentage width/height of the page. You can also replace top with bottom, and left with right.

    You can also replace fixed with absolute to position it relative to it's parent element.
    Last edited by David Harrison; 09-03-2003 at 05:11 PM.
    Every fight is a food fight when you’re a cannibal.

  4. #4
    Join Date
    Sep 2003
    Location
    Texas
    Posts
    3
    Thanks partner.. i really appreciate your help.
    THIS IS THE BEST SITE EVER! you guys rock
    ryan

  5. #5
    Join Date
    Nov 2002
    Posts
    2,632
    Also note the image tag should also include the width and height of the image so as it loads the page is already spaced out properly instead of it shiftting around as an image loads. Plus, adding in the "alt" attribute is good incase the image doesn't show up.

  6. #6
    Join Date
    Dec 2002
    Location
    Manchester, UK
    Posts
    6,276
    I also use the title attribute in all of my links and images when I use them.

    Hey spufi, what happened to your post count? It's dropped down into the 300's.
    Every fight is a food fight when you’re a cannibal.

  7. #7
    Join Date
    Nov 2002
    Posts
    2,632
    Originally posted by lavalamp
    I also use the title attribute in all of my links and images when I use them.

    Hey spufi, what happened to your post count? It's dropped down into the 300's.
    It's been down in the 300 range for a while and I can't really call if it was higher, so I don't know.

  8. #8
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Two things to point out... Adding the alt attribute is not only good and the right thing to do, as spufi said, but it is also required. It is not an optional attribute.

    And number 2, the title attribute is not the alt attribute, so just because you include title is no excuse to leave out alt.

  9. #9
    Join Date
    Dec 2002
    Location
    Manchester, UK
    Posts
    6,276
    also use
    as in, along with, in conjuction with etc. I don't leave alt out.
    Every fight is a food fight when you’re a cannibal.

  10. #10
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Missed those two words...

  11. #11
    Join Date
    Dec 2002
    Location
    Manchester, UK
    Posts
    6,276
    That's OK. Sometimes I miss out whole posts.
    Every fight is a food fight when you’re a cannibal.

  12. #12
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    lol... Yep, been there, done that...

  13. #13
    Join Date
    Jan 2003
    Location
    Windsor, UK
    Posts
    367
    Alt tag is one of the few W3 rules I agree with.

    However some are stupid, and I've decided if Macromedia don't want to follow it, and neither do many of the main companies, I don't really care to follow it either.

  14. #14
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Originally posted by gavinnet
    However some are stupid, and I've decided if Macromedia don't want to follow it, and neither do many of the main companies, I don't really care to follow it either.
    Sucks to be a disabled viewer of your site...

  15. #15
    Join Date
    Jan 2003
    Location
    Windsor, UK
    Posts
    367
    On some of my sites I guess it would be, but I follow Macromedia standards, after being at the BETT show I have piles and piles of white paper on Accesiblilty in HTML, in Flash, in images etc..

    Though when I was speaking with Mark Green (education manager) he reckoned some people were taking it to far by trying to make sites that worked fine for fully blind people for example.

    I really don't mean any offence when I say this, but you dont get many blind people surfing the net, and in the business world people tend to aim at the majority rather than the miniroty because thats where the money is.

    On this site idea http://forums.webdeveloper.com/showt...threadid=16897 it is something we will work on i guess though.

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