www.webdeveloper.com
Results 1 to 2 of 2

Thread: Must I put the full http://address for image. in Css and html.

  1. #1
    Join Date
    Apr 2012
    Posts
    110

    Must I put the full http://address for image. in Css and html.

    Hi,
    Having problems putting image in by hand coding. Must I use <img src"http://www.artmodels.com/images/model2.jpg

    Must I put the http: in the css aswell as in the html. or do I put http in css and just img src="images/model2.jpg in the html. or vica versa. Getting really confused with these basics.

  2. #2
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,214
    You do not need to use the full URL if the images are on your own server for your site. Use a full URL to an image offsite that you have permission to use. Never hotlink to content without explicit permission. See the following:

    Absolute and Relative Paths

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