What's new

How to get Safari to view local html files?

healer said:
I understand your point now. To me this is redundant. I never did it having designed and implemented quite a few web sites for myself and for my clients'. The paths are relative. Certainly one can specify a full absolute path. Without the <base href> specified prior, I believe the HTML translation engine would just take the files being in the same directory.

With the <base href> specified in the <head> section, every time I restore the web site from the hosting web server to my home office web server for testing or further development I have to remember to change the <base href>.

True, but can you explain how you have your site set-up?
 
True, but can you explain how you have your site set-up?

We are getting far away from what this forum is all about. Anyway I need to finish what I have started. I apologize for diverting you this far.

The <base href>, as I understand, is only required if one has a directory structure of more than one level and where we want to save repeating the full path every time.

Unless I am using osCommerce or Joomla or those content management systems or similar, when I create a website from scratch I usually have something as simple as possible, usually of a directory structure of only one level. Other than that I wouldn't re-invent the wheel but would use those available on the Internet for free. To my experience those big systems usually have a directory structure of multiple levels, so having a <base href> would simplify all subsequent path statements. That's probably why you need something like that. What I have been trying to say is that it is not a must to have a <base href>, it all depends on the merits.
 
this did not format right

There are HTML and CODE tags on the forum. Try wrapping your example in them for better results.

HTML:
<HTML>
<head>
<title>Food.com - Chicken</title>
script type="text/CSS" src="http://www.food.com/foods/meats/style.css" />
</head>
<body>
<img src="http://wew.food.com/foods/meats/images/chicken.jpg" />
<p>
Directions go here
</p>
</body>
</HTML>
 
Last edited:
healer said:
I will cease talking about this. Joining this forum is mainly for iPad issues, nothing else. I apologize for the deviation.

It's all good, besides, I'm shocked they haven't done that already.
 

Most reactions

Latest posts

Back
Top