Hi, i am newbie to html, i am stuck with a line of code, please assist me that what is wrong with this code.
<img src = "LRH.jpeg" alt = "job in lady reading" width = "300" length = "400"/>
Hi, i am newbie to html, i am stuck with a line of code, please assist me that what is wrong with this code.
<img src = "LRH.jpeg" alt = "job in lady reading" width = "300" length = "400"/>
No such attribute as "length."
but it does not show the image in a page?
Then check that the file name of your image is correct and that it's in the proper location (in the same directory as your HTML page, for how you've written it here).
Yes, its in the same directory, i have place the picture and html page in a folder on desktop but its showing picture.
secondly lets suppose if i place the file somewhere else then how would i address the location in coding? Will I write the complete path of the picture?
You can either write the path to the image beginning at the web root (this is known as an "absolute" path), or you can write it in relation to the directory where the HTML file is (a "relative" path).
Absolute paths begin with a / (or with the full domain name) and must include every directory between the root and the image, eg. "/subfolder/images/myImage.jpg"
Relative paths begin with either the name of a directory that resides in the same location as the HTML file, or with a ".." to signify the parent directory of the HTML file, eg. "images/myImage.jpg" or "../othersubfolder/images/myImage.jpg"