0

Hi im new to html and fairly new to programing i've been waching youtube vidios on html and they all do the same thing to put up a phot but whenever i try the photo eror shows up by the way i use notepad ++

 <!doc type html >

 <html>
 <head>
 <title> matt's html </title>
 </head>
 <body bgcolor = "#6a0888">
 <image src = "lakers.jpg">
 </html>              
5
Contributors
4
Replies
28
Views
4 Years
Discussion Span
Last Post by asaa
0

<body bgcolor = "#6a0888"> - is not good, better is <body style="background:#6a0888"> or use css
<image src = "lakers.jpg"> - it's wrong! Use this - <img src="lakers.jpg" alt="lakers" />

0

As you are new to Web coding, you must check with W3C School to get familiar with such type of basic codings.

0

incorrect doctype <doc type html>
The doctype declaration must be exact (both in spelling and in case)
<!DOCTYPE html>
without a doctype the browser does not know what you are trying to tell it, nothing else will work
the tutorial sites mentioned by the prior posts is here http://www.w3schools.com/

Edited by almostbob

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.