Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Rhysd

macrumors newbie
Original poster
Apr 2, 2017
5
0
i am brand new to html
i am triying to get image to appear in simple html on my mac book using tex edit
i set text edit plain text
i found address of image on the mac book but it denote appear.
can any any one help me
Thnks

address of image on ma book is
file:///Users/rhysdavies/Desktop/htmlweb/gflogov.jpg

this is the code i wrote

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<p>Test text .</p>
<p>more test text </p>

<img src=“file:///Users/rhysdavies/Desktop/htmlweb/gflogov.jpg" alt=“logo” width="128" height="128">

</body>
</html>
 
Drop the 'file://' prefix. This should work:
<img src=“/Users/rhysdavies/Desktop/htmlweb/gflogov.jpg" alt=“logo” width="128" height="128">

In fact, if your image is in the same folder as your html file, you can drop the path entirely:
<img src=“gflogov.jpg" alt=“logo” width="128" height="128">

Do some reading on file paths.

i am brand new to html
i am triying to get image to appear in simple html on my mac book using tex edit
i set text edit plain text
i found address of image on the mac book but it denote appear.
can any any one help me
Thnks

address of image on ma book is
file:///Users/rhysdavies/Desktop/htmlweb/gflogov.jpg

this is the code i wrote

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<p>Test text .</p>
<p>more test text </p>

<img src=“file:///Users/rhysdavies/Desktop/htmlweb/gflogov.jpg" alt=“logo” width="128" height="128">

</body>
</html>
 
Drop the 'file://' prefix. This should work:
<img src=“/Users/rhysdavies/Desktop/htmlweb/gflogov.jpg" alt=“logo” width="128" height="128">

In fact, if your image is in the same folder as your html file, you can drop the path entirely:
<img src=“gflogov.jpg" alt=“logo” width="128" height="128">

Do some reading on file paths.
thanks for your post i had done a lot of reading up on this. i wouldn't come on here unless i really needed to.
it was an "" issue thanks for your help
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.