|
| |
|
|
newboy
Posts: 4 Joined: 11/29/2009 Status: offline
|
Base Location (href) - 11/29/2009 20:17:38
Almost finished my first site (using MS Expression Web 2), and I am confused by base href on Page Properties. I assumed I would use this to give an address each major page of my site to help SEO, ie www.mysite.com/gallery, www.mysite.com/bookshop and so on, but in a recent forum on EW2, I got the impression that you would normally leave base location empty. Can someone advise me on this?
|
|
|
|
treetopsranch
Posts: 1651 From: Cottage Grove, OR, USA Status: offline
|
RE: Base Location (href) - 11/29/2009 21:32:55
A base URL for all relative URLs on a page: The href attribute specifies a base URL for all relative URLs on a page. Example code: <head> <base href="http://www.w3schools.com/images/" /> </head> <body> <img src="stickman.gif" /> </body> So since we have specified a base URL in the head section, the browser will look for the image at "http://www.w3schools.com/images/stickman.gif" Does that answer your question? It can possibly save you some coding effort. However, I don't use it. You can find an example at www.w3schools.com
_____________________________
Don from TreeTops Ranch, Oregon "I've got a taste for quality and luxury"
|
|
|
|
newboy
Posts: 4 Joined: 11/29/2009 Status: offline
|
RE: Base Location (href) - 11/30/2009 0:23:58
To Don, Tree Tops Ranch Oregon, Thanks for the advice Don; it's been bugging me for a while. Oh, and thanks for putting me onto w3schools, it looks as if it could be really handy. Brian - Narooma Australia
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|