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>
 

chown33

Moderator
Staff member
Aug 9, 2009
10,767
8,468
A sea of green
Your HTML contains "curly" quotes instead of neutral quotes. Read these:
https://forums.macrumors.com/threads/keychain-password-removal-command.2017004/#post-23968019
https://forums.macrumors.com/threads/image-wont-load.1835561/#post-20565755


Here's the part of your HTML with the curly quotes:

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


I've changed your posted text to a very large font, to make it easier to see the kinds of quotes. The quote before "file:" is curly, as are the ones around "logo".
 

Rhysd

macrumors newbie
Original poster
Apr 2, 2017
5
0
Your HTML contains "curly" quotes instead of neutral quotes. Read these:
https://forums.macrumors.com/threads/keychain-password-removal-command.2017004/#post-23968019
https://forums.macrumors.com/threads/image-wont-load.1835561/#post-20565755


Here's the part of your HTML with the curly quotes:

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


I've changed your posted text to a very large font, to make it easier to see the kinds of quotes. The quote before "file:" is curly, as are the ones around "logo".
i see thank you so for much for helping so quickly.
 

Rhysd

macrumors newbie
Original poster
Apr 2, 2017
5
0
As a side note, you might find a more code orientated text editor helpful. Text Edit can do things that would be helpful if you were word processing, but problematic if you're coding. Some popular ones are:

http://www.barebones.com/products/bbedit/
https://www.sublimetext.com
http://small.syntra.io

Good luck!
thanks i just downloaded sublime .
I have been working on wondows pc, but had a macbook bought me.
It seems nothing is straight forward with mac compared to windows.
thanks again
 

superscape

macrumors 6502a
Feb 12, 2008
937
223
East Riding of Yorkshire, UK
It seems nothing is straight forward with mac compared to windows.

I disagree. It's just different and unfamiliar if all you're used to is Windows. Embrace the learning experience and you'll have some fun. A lot of stuff is much better and almost always more intuitive in macOS (IMHO).

Remember you'd (probably) not code HTML using Word on Windows, in the same way you'd (probably) not use TextEdit on the Mac. In either case, you'd at least need a decent text editor. I believe Sublime in particular is used on both platforms. This isn't a macOS vs Windows thing, it's a picking the right tool for the job thing. ;-)
 
  • Like
Reactions: neeklamy

sellyfied

macrumors newbie
Oct 4, 2017
1
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>
[doublepost=1507183154][/doublepost]i see thank you so for much for help quicly
 

960design

macrumors 68040
Apr 17, 2012
3,703
1,571
Destin, FL
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>
Glad you have it sorted... when posting code... it is often better to use a dedicated service such as:
  1. JS Bin ( https://jsbin.com/?html,output )
  2. JSFiddle ( https://jsfiddle.net/ )
  3. Cloud9 ( https://c9.io/ )
There are many other. I prefer JS Bin for simple code sharing. For example, your code:
https://jsbin.com/bayomubiga/edit?html,output
 

dwig

macrumors 6502a
Jan 4, 2015
903
444
Key West FL
thanks i just downloaded sublime .
I have been working on wondows pc, but had a macbook bought me.
It seems nothing is straight forward with mac compared to windows.
thanks again

In general, I agree with superscape's response, though in this case Apple has done you a bit of a disservice.

Windows still ships with 2 editing utilities, a light weight wordprocessor named WordPad and a true text editor named Notepad. Apple, on the other hand, only provides a basic word processor with the macOS and they give it a rather inappropriate name "TextEdit".

TextEdit, like WordPad but unlike Notepad, is a poor tool for coding. On Windows, Notepad is a solid reliable tool for such use but very very basic. On both OSs, I would recommend getting something else. On Windows, Notepad++ is a good lightweight tool. On macOS, I find BBedit a good choice.
 

960design

macrumors 68040
Apr 17, 2012
3,703
1,571
Destin, FL
In general, I agree with superscape's response, though in this case Apple has done you a bit of a disservice.

Windows still ships with 2 editing utilities, a light weight wordprocessor named WordPad and a true text editor named Notepad. Apple, on the other hand, only provides a basic word processor with the macOS and they give it a rather inappropriate name "TextEdit".

TextEdit, like WordPad but unlike Notepad, is a poor tool for coding. On Windows, Notepad is a solid reliable tool for such use but very very basic. On both OSs, I would recommend getting something else. On Windows, Notepad++ is a good lightweight tool. On macOS, I find BBedit a good choice.
What about Vi or Pico!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.