0

Image notdisplaying

Hi, Newbie here. Trying to add an image in but it doesn't display. The image is in a folder on my desktop and the code looks like this: <html> <head> <title>Alans First Web Page</Title> </head> <body> <divclass="section"> <h1><span>About Me</span></h1> <p> Hello, my name is <strong><b><i>Alan Dobson,<br></strong></b></i> <br>I am new to coding and learning the basics. So far its interesting and quite fun but I have lots to learn. </P> <p align="center" pclass="qouate">"Declare variables, not war" <hr "width=100%" <img src="C:\Users\Dobson\Desktop\Alan-Code\girls.jpg" alt="" /> </body> </html>

11th Dec 2017, 1:01 PM
Alan
Alan - avatar
2 odpowiedzi
+ 2
Can't say if you're using exact file path or not, but your code is full of errors. You didn't close the hr tag and left no space between "div" and "class" and many more. Here is the correct code. <html> <head> <title>Alans First Web Page</title> </head> <body> <div class="section"> <h1><span>About Me</span></h1> <p> Hello, my name is <strong><b><i>Alan Dobson,<br></strong></b></i> <br/>I am new to coding and learning the basics. So far its interesting and quite fun but I have lots to learn. </p> <p align="center" class="qouate">"Declare variables, not war" <hr width="100%"/> <img src="C:\Users\Dobson\Desktop\Alan-Code\girls.jpg" alt="" /> </body> </html>
11th Dec 2017, 2:53 PM
Ranjan Bagri
Ranjan Bagri - avatar
+ 1
ahh, thanks for pointing out my erros. I have fixed them now.
11th Dec 2017, 3:01 PM
Alan
Alan - avatar