HTML Syntax Question
Perry Spiller <[email protected]> Mon, 06 Jun 2011 18:52:35 +1200
| Newsgroups | gmane.org.user-groups.linux.hawkes-bay |
|---|---|
| Message-ID | <[email protected]> |
--===============0650589813== Content-Type: multipart/alternative; boundary="=====================_34535015==.ALT" --=====================_34535015==.ALT Content-Type: text/plain; charset="us-ascii" 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 <http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=pspiller>this <http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=pspiller>company. I use them for my web sites. <http://spillerfamily.info/catherine/>Here's Catherine's web site. How did I get an Internet address/domain name? I bought it from <http://affiliate.godaddy.com/redirect/6A582EB13A2306404D585DB35510593C85C7835A6FC0B0C416D8529F7887A2AEBBDCFDC9F7FC53C637168F1E6931E930/>this company for $NZ27 for 3 years. Cheap? You betcha! You can do it, too. Click on either of the links to check for yourself. --=====================_34535015==.ALT Content-Type: text/html; charset="us-ascii" <html><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><img src="G:\PerryE\Images\Perry\Harvard Five F Schol Pic.jpg" width="75%" alt="Flying School Five" /></div> <br> <div>Are the windoze back slashes 'poison' to a relative source attribute?</div> <br> <div> From a web search, it seems so. But altering them to a forward slash didn't help.</div> <br> <div><img src="G:/PerryE/Images/Perry/Harvard Five F Schol Pic.jpg" width="75%" alt="Flying School Five" /></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, but ONLY if I remove the drive letter and slash:</div> <br> <div><img src="HarvardPic.jpg" width="75%" alt="Flying School Five" /></div> <br> <div>As I'm presently in teach-yourself-html mode, I appreciate that this is to some extent</div> <div>academic, as my image references are relative and once actually on the www, they'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 href="file://C:\mywebpage.html" EUDORA=AUTOURL> 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> <body> <hr> <font size=1>Looking for a place to host your web site idea?<br><br> Look no further than <a href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=pspiller"> this </a> <a href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=pspiller"> company</a>. I use them for<br> my web sites. <a href="http://spillerfamily.info/catherine/">Here's Catherine's web site</a>.<br><br> How did I get an Internet address/domain name?<br> I bought it from <a href="http://affiliate.godaddy.com/redirect/6A582EB13A2306404D585DB35510593C85C7835A6FC0B0C416D8529F7887A2AEBBDCFDC9F7FC53C637168F1E6931E930/"> 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=3> </font></body> </html> --=====================_34535015==.ALT-- --===============0650589813== 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 --===============0650589813==--