Help with HTML?
I'm working on a school assignment, and I have to use a picture in place of bullet points and have a picture at the top of the page. This is the code I have for each, respectively. <p> <ul style="list-style: square url(flask.jpg) inside"> <li>Conceptual Chemistry: An introductory course, requiring basic math but no algebra</li> <li>Chemistry I: An introductory course, requiring solid algebra skills</li> <li>Advanced Placement Chemistry: An advanced course requiring a grade of A or B in Chemistry I</li> </ul> </p> and <p style="text-align: center"> <img src="dube.jpg" alt="Mr. Dube's Chemistry Class at Robert Service High School"/> </p> When I open my document up with I.E. and Mozilla, the pictures don't show up. Any Ideas why?? This is my first time ever coding with HTML so please be detailed in your answer. -Thanks Other than that, is the coding correct? how can I fix the Directory error?
Public Comments
- The image could be in the wrong directory or not uploaded(if online).
- Make sure the images are in the same place as the html document. If you want to put the images in a folder, then put this before the image name: foldername/ change "foldername" to the folders name. make sure this folder is in the same place as the html document though(aka: desktop, documents, pictures, any folder, etc...)
- It's gotta be the location for the .jpg I tried tis code using the url for a jpg of my own and it worked perfectly... in order for it to work the way you have it the .jpg needs to be in the same directory as the html file, if it isn't you need to either move the file or re-address the url to where the picture actually is. so if the jpg is in a graphics folder within the site folder graphics/flask.jpg EDIT: The code is correct, but we can't tell you how to re-address the url() attribute without knowing the file structure of your site. Simply move the pictures so that they're in the same directory as the .html file, then the current addressing will work. here's a tutorial on html file structure: http://www.matcmp.sunynassau.edu/~glassr/html/url.htm
Powered by Yahoo! Answers