Who is good at HTML?

I am taking an entry level HTML class online for school, pretty basic stuff (but new to me). So, i write up my pages, and periodically save my work and then open it my browser (Mozilla FireFox, which happens to be the browser the school uses exclusively and recomends all students use for everything) and everything appears fine and there are no errors, everything works and displays perfectly. I email my asingments in, and my teacher emailes me back saying that I am recieveing no credit at all because when she opens my page, she sees nothing and tells me there are errors on it, and that I am missing a lot of tags, blah blah blah.

now, would someone please explain to me why when i open my page in a browser, everything works and displays correctly and there is essentailly nothing visibly wrong with the page, yet the teacher cannot even view it and tells me about all these erros in my code that are making it not display? its just a very short 1 page assingment, and if someone would like i will post my code up so they can tell me what I am doing wrong. I sent the teacher back and e-mail contesting the grade and included a screan shot of what i see when I open the page in my browser.

Post up the code. Also use http://validator.w3.org/

Um link to page?

werd… lets see it. Havent done HTML in a long ass time, but if it’s basic I should be able to help (I’m sure the guys above know more about it though)

i am ok with it

well, I cant exactly post a link to the page, because it isnt online anywhere, but heres the code, and below that is a screen shot of what I see when i open it in my browser:

<html>
<title>Traveling The World</title>
<body text=“#000000” bgcolor=“#c0c0c0”>
<h1 align=“center”>
<font color=“maroon” face=“arial”>My Travels Of 2006: Photos</font></h1>
<hr width=“80%” noshade=“noshade” color=“maroon”/>
<h2 align=“left”><i>Cities In the US</i></h2>
<ul>
<ul type="circle>
<li>New York City</li>
<li>Chicago</li>
<li>Boston</li>
<li>Miami</li>
</ul type=“circle”>
<p> </p>
<h3>
New York City
</h3>

<img src=“GMT - home” border=“6” align=“middle” alt=“NYC Skyline” lowsrc=“GMT - home” hspace=“20”/>
<p> </p>
<p> </p>
<h3>
Chicago
</h3>
<img src=“http://www.chicago.suttonplace.com/images/Exterior_lrg.jpg” border=“6” align=“middle” alt=“Chicago” lowsrc=“http://www.chicago.suttonplace.com/images/Exterior_lrg.jpg” hspace=“20” />
<p> </p>
<p> </p>
<h3>
Boston
</h3>
<img src=“http://www.ph.ed.ac.uk/~dra/boston/bost66.jpg” border=“6” align=“middle” alt=“The Boston Aquarium” lowsrc=“http://www.ph.ed.ac.uk/~dra/boston/bost66.jpg” hspace=“20” />
<p> </p>
<p> </p>
</html>
<h3>
Miami
</h3>
<img src=“http://networks.ecse.rpi.edu/~xiay/pic/2002/miami/miami.jpg” border=“6” align=“middle” alt=“Miami Palm Trees” width=“450” height=“300” lowsrc=“http://networks.ecse.rpi.edu/~xiay/pic/2002/miami/miami.jpg” hspace="20 />
<p> </p>
<p> </p>
<hr width=“80%” noshade=“noshade” color=“maroon”/>
</html>

what i see when i open the page

Lots of errors via w3c.

Maybe the photos aren’t showing up because they’re linked from the web.

well now im really confused because thw W3C validator thing is telling me that i cant have all this stuff in there that the textbook says i need in there.

is she using IE? or FF??

you should really do your coding with the style tag

and use tables

also indent your code its hard to read.

also you have no head tag in there, the title must be in a head tag

i am not sure which browser she is using. does it make a difference? and if my code is ‘wrong’ according to her, then why does it display ok FF and not in another borwser (assuming she is using IE or something else).

and how would I go about doing coding with a style tag?

makes a huge differnce, a site migh tlook fine on one browser and look like shit on the other

style=“”

look up css

ok i made some changes to the code, and i got it it to show up in IE:

<html>
<head>
<title>Traveling The World</title>
</head>
<body>
<body text=“#000000” bgcolor=“#c0c0c0”>
<h1 align=“center”>
<font color=“maroon” face=“arial”>My Travels Of 2006: Photos</font></h1>
<hr width=“80%” noshade=“noshade” color=“maroon”/>
<h2 align=“left”><i>Cities In the US</i></h2>
<ul>
<ul type="circle>
<li>New York City</li>
<li>Chicago</li>
<li>Boston</li>
<li>Miami</li>
</ul type=“circle”>
<p> </p>
<h3>
New York City
</h3>

<img src=“GMT - home” border=“6” align=“middle” alt=“NYC Skyline” lowsrc=“GMT - home” hspace=“20”/>
<p> </p>
<p> </p>
<h3>
Chicago
</h3>
<img src=“http://www.chicago.suttonplace.com/images/Exterior_lrg.jpg” border=“6” align=“middle” alt=“Chicago” lowsrc=“http://www.chicago.suttonplace.com/images/Exterior_lrg.jpg” hspace=“20” />
<p> </p>
<p> </p>
<h3>
Boston
</h3>
<img src=“http://www.ph.ed.ac.uk/~dra/boston/bost66.jpg” border=“6” align=“middle” alt=“The Boston Aquarium” lowsrc=“http://www.ph.ed.ac.uk/~dra/boston/bost66.jpg” hspace=“20” />
<p> </p>
<p> </p>
<h3>
Miami
</h3>
<img src=“http://networks.ecse.rpi.edu/~xiay/pic/2002/miami/miami.jpg” border=“6” align=“middle” alt=“Miami Palm Trees” width=“450” height=“300” lowsrc=“http://networks.ecse.rpi.edu/~xiay/pic/2002/miami/miami.jpg” hspace=“20” />
<p> </p>
<p> </p>

<hr width=“80%” noshade=“noshade” color=“maroon”/>

<p> </p>
<p> </p>

</body>

</html>

yea head tag

You should only use tables for tabular data, not for displaying normal content. That should be done with span and div tags.

And yes, your code will not pass the validator. I’d imagine it may look fine on internet explorer, but on other browsers such as firefox, that are more strict with coding standards, it would fail. That is most likely your teachers problem.

–mark

Also, you shouldnt set codes like “color” inside of tags like hr. Instead, use styles, like :

style=“color:red;”

This may be advanced for your class, but is much more compliant.

–mark

And…

Dont use <p></p> just to add spacing. Paragraph tags should be used as block level elements to hold content. If you just need to add spacing, use line break tags like this:

<br />

Also, your <ul></ul> tags should not contain the text “type=circle”. If for some reason you need it in the opening tag, you do not also need it in the closing tag. Closing tags shoudl always just be the slash and the tag.

–mark

or for a space

^^^

Sometimes you have to use for multiple spaces. HTML only can see one space at a time, so if for some reason you need too show more then one space, that works very well. There is a large list of web-compliant codes, and one of them is that non-breaking space character.

–mark

depending upon the browser…some are more forgiving than others.

the style related things that others are talking about will not make or break a page. (like the table versus <p> tags, head tag…whatever). at worst, something like ff might not render a box in a table with a decent amount of width if it is empty…but that won’t ‘break’ anthing.

however, depending upon how persnickity the instructors code viewer is you have a pretty glaring non-compliant HTML structure.

Line 9:
<ul type="circle>

syntactically fucked.