SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Wizard jonese's Avatar
    Join Date
    Jul 1999
    Location
    Powder Springs GA (Atlanta)
    Posts
    1,238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What are base tags? i saw them on Sitepoint and can't figure them out...

    ------------------
    Eric Jones - WR Administrator
    http://www.sitepoint.com
    eric@sitepoint.com
    ICQ 1215804 (mention WR)

  2. #2
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    District of Columbia
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    base URL for all relative URLs in the document

    <base href=".." target="..">

    ------------------
    Have something to say?
    ICQ#20563633

  3. #3
    SitePoint Wizard jonese's Avatar
    Join Date
    Jul 1999
    Location
    Powder Springs GA (Atlanta)
    Posts
    1,238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so why would you do this? i thought the browsers just figured it out automatically?

    does this serve any purpose?

    ------------------
    Eric Jones - WR Administrator
    http://www.sitepoint.com
    eric@sitepoint.com
    ICQ 1215804 (mention WR)

  4. #4
    SitePoint Addict
    Join Date
    Feb 2000
    Location
    District of Columbia
    Posts
    373
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well, I use it on our intranet site when I have two different servers and I need to go back and forth between them. Then your URLs are http://172.22.22.2/whatever and I use <base> so I dont have to write out the http://172.22.22.2 every time.

  5. #5
    Destiny Manager Plebius's Avatar
    Join Date
    Nov 1999
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    They probably help stupid browsers and primitive robots. Plus, if all the links on a page point to another domain, say yahoo.com you can just use
    <base href="http://www.yahoo.com/"> in the base tag and then in your links just use the relative path to save typing and space.

  6. #6
    SitePoint Enthusiast
    Join Date
    Jul 1999
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The best use is <base target="_self"> or <base target="_new"> etc. It tells what frame, or if a new window the link should be opened in.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •