Re: HTML Syntax Question

Helen Burnett <[email protected]> Mon, 6 Jun 2011 21:15:02 +1200
Newsgroups gmane.org.user-groups.linux.hawkes-bay
Message-ID <[email protected]>
--===============0411355666==
Content-Type: multipart/alternative; boundary=0016e6d77df6d5879404a507892b

--0016e6d77df6d5879404a507892b
Content-Type: text/plain; charset=ISO-8859-1

http://www.cmu.edu/computing/doc/web/publish/references/index.html

<http://www.cmu.edu/computing/doc/web/publish/references/index.html>This
link might help.

My recommendation is to always use relative links, it makes moving the
website MUCH easier, ie, going from a locally hosted site to a WWW site

On Mon, Jun 6, 2011 at 6:52 PM, Perry Spiller <[email protected]> wrote:

>
> How does one turn a windoze path into a valid path for a relative image
> source?
> Start with this:
>
> <img src="G:\PerryE\Images\Perry\Harvard Five F Schol Pic.jpg" width="75%"
> alt="Flying School Five" />
>
> Are the windoze back slashes 'poison' to a relative source attribute?
>
>  From a web search, it seems so. But altering them to a forward slash
> didn't help.
>
> <img src="G:/PerryE/Images/Perry/Harvard Five F Schol Pic.jpg" width="75%"
> alt="Flying School Five" />
>
> Are spaces in filenames valid?
>
> If not, should they be filled with an under-line character?
>
> Concatenated?
>
> What of drive letters?
>
> If I move the image to they same root/directory and rename it so this is
> the path: C:/HarvardPic.jpg
>
> . . . it works as desired,  but ONLY if I remove the drive letter and
> slash:
>
> <img src="HarvardPic.jpg" width="75%" alt="Flying School Five" />
>
> As I'm presently in teach-yourself-html mode, I appreciate that this is to
> some extent
> academic, as my image references are relative and once actually on the www,
> they'll
> be absolute.
>
> Nonetheless, it would be nice to understand the syntax for locally
> referenced images
> when using the
>  file://localhost/C:/mywebpage.html
> . . . type of URL for an image located in a different drive and/or folder.
>
>
>
>
>
>  ------------------------------
> Looking for a place to host your web site idea?
>
> Look no further than this
> <http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=pspiller>
> company<http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=pspiller>.
> I use them for
> my web sites. Here's Catherine's web site<http://spillerfamily.info/catherine/>
> .
>
> How did I get an Internet address/domain name?
> I bought it from this company<http://affiliate.godaddy.com/redirect/6A582EB13A2306404D585DB35510593C85C7835A6FC0B0C416D8529F7887A2AEBBDCFDC9F7FC53C637168F1E6931E930/>for $NZ27 for 3 years.
>
> Cheap? You betcha! You can do it, too. Click on
> either of the links to check for yourself.
>
> _______________________________________________
> HBLUG mailing list
> [email protected]
> http://www.linux.net.nz/cgi-bin/mailman/listinfo/hblug
>
>

--0016e6d77df6d5879404a507892b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<a href=3D"http://www.cmu.edu/computing/doc/web/publish/references/index.ht=
ml">http://www.cmu.edu/computing/doc/web/publish/references/index.html</a><=
div><br></div><div><a href=3D"http://www.cmu.edu/computing/doc/web/publish/=
references/index.html"></a>This link might help.</div>
<div><br></div><div>My recommendation is to always use relative links, it m=
akes moving the website MUCH easier, ie, going from a locally hosted site t=
o a WWW site<br><br><div class=3D"gmail_quote">On Mon, Jun 6, 2011 at 6:52 =
PM, Perry Spiller <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]=
.nz">[email protected]</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;"><br>
<div>How does one turn a windoze path into a valid path for a relative
image source?</div>
<div>Start with this:</div>
<br>
<div>&lt;img src=3D&quot;G:\PerryE\Images\Perry\Harvard Five F Schol
Pic.jpg&quot; width=3D&quot;75%&quot; alt=3D&quot;Flying School Five&quot;
/&gt;</div>
<br>
<div>Are the windoze back slashes &#39;poison&#39; to a relative source
attribute?</div>
<br>
<div> From a web search, it seems so. But altering them to a forward
slash didn&#39;t help.</div>
<br>
<div>&lt;img src=3D&quot;G:/PerryE/Images/Perry/Harvard Five F Schol
Pic.jpg&quot; width=3D&quot;75%&quot; alt=3D&quot;Flying School Five&quot;
/&gt;</div>
<br>
<div>Are spaces in filenames valid?</div>
<br>
<div>If not, should they be filled with an under-line character?</div>
<br>
<div>Concatenated?</div>
<br>
<div>What of drive letters?</div>
<br>
<div>If I move the image to they same root/directory and rename it so
this is the path: C:/HarvardPic.jpg</div>
<br>
<div>. . . it works as desired,=A0 but ONLY if I remove the drive
letter and slash:</div>
<br>
<div>&lt;img src=3D&quot;HarvardPic.jpg&quot; width=3D&quot;75%&quot;
alt=3D&quot;Flying School Five&quot; /&gt;</div>
<br>
<div>As I&#39;m presently in teach-yourself-html mode, I appreciate that th=
is
is to some extent</div>
<div>academic, as my image references are relative and once actually on
the www, they&#39;ll</div>
<div>be absolute.</div>
<br>
<div>Nonetheless, it would be nice to understand the syntax for locally
referenced images</div>
<div>when using the</div>
<div><a>
file://localhost/C:/mywebpage.html</a></div>
<div>. . . type of URL for an image located in a different drive and/or
folder. </div>
<br>
<br>
<br>
<br>
<br>

<div>
<hr>
<font size=3D"1">Looking for a place to host your web site idea?<br><br>
Look no further than
<a href=3D"http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickth=
ru.cgi?id=3Dpspiller" target=3D"_blank">
this
</a>
<a href=3D"http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickth=
ru.cgi?id=3Dpspiller" target=3D"_blank">
company</a>. I use them for<br>
my web sites. <a href=3D"http://spillerfamily.info/catherine/" target=3D"_b=
lank">Here&#39;s
Catherine&#39;s web site</a>.<br><br>
How did I get an Internet address/domain name?<br>
I bought it from
<a href=3D"http://affiliate.godaddy.com/redirect/6A582EB13A2306404D585DB355=
10593C85C7835A6FC0B0C416D8529F7887A2AEBBDCFDC9F7FC53C637168F1E6931E930/" ta=
rget=3D"_blank">
this company</a> for $NZ27 for 3 years.<br><br>
Cheap? You betcha! You can do it, too. Click on<br>
either of the links to check for yourself.</font><font size=3D"3">
</font></div>

<br>_______________________________________________<br>
HBLUG mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br>
<a href=3D"http://www.linux.net.nz/cgi-bin/mailman/listinfo/hblug" target=
=3D"_blank">http://www.linux.net.nz/cgi-bin/mailman/listinfo/hblug</a><br>
<br></blockquote></div><br></div>

--0016e6d77df6d5879404a507892b--


--===============0411355666==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
HBLUG mailing list
[email protected]
http://www.linux.net.nz/cgi-bin/mailman/listinfo/hblug

--===============0411355666==--