Pages failing to load... - Page 2

User 38401 Photo


Senior Advisor
10,951 posts

dave beall wrote:
I would have to check the markup manual .. but.. I think it's actually correct to have no closing tag on<ul><li> untill the last <li>, then it has the close tag</li></ul>

but I do put them in my lists, and it never took them out.


Ya and if that's true then it would be correct as it's in there now because the last one does have the </li> on it. I've always put the </li> after each line myself too. Never heard not to, but if that's the case then that would render that part correctly setup other than the caps etc.
User 364143 Photo


Guest
5,410 posts

http://www.w3schools.com/tags/tag_li.asp

<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>

<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>


CoffeeCup... Yeah, they are the best!
User 528054 Photo


Registered User
209 posts

Heavens, thankyou everybody for the replies.

It all helps a huge ammount. Code completion is now turned off....

I have replaced all the capital /A> and i tried to end each line with </li>

However when i validate the html at W3 I get errors that the <br> line breaks are invalid in the doc type being used....

Sooooo which doc type do I use, and why?

I would appreciate some advice with that, as doc types are a mystery at the moment.

I use this one just now is...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

Thankyou

Peter
User 528054 Photo


Registered User
209 posts

PS......

Just want to say....

What a great bunch of people you all are on here.

So much help all the time! :-)

Thanks
Peter
User 38401 Photo


Senior Advisor
10,951 posts

hiya Peter,

the <br> tags should now be <br /> so if you just add a space and a forward slash to the ones you have so they look like that you should be good there.
User 528054 Photo


Registered User
209 posts

Thanks Jo Ann,

I shall do that, and have changed all the A's to a...

Your comment earlier about doc type though................
I have no idea what they are doing, in the acceptability/validating area...

Basically the html validates or not. Hopefully someone will be
able to help a bit with that.

What's the difference between them?

I hope you are well
Peter
User 364143 Photo


Guest
5,410 posts

Sometimes the difference is how the page is rendered. Other times, there is no visible difference. The nice thing about the w3c validator page is that it explains what the error is and most times, how to correct the error.
CoffeeCup... Yeah, they are the best!
User 528054 Photo


Registered User
209 posts

Ok thankyou for that, I shall look.

One question though, why are there so many different doc types?

And what's the reason that there isn't just one doc type that fits all, so to speak...

I am sorry to ask what must seem very basic stuff, but an insight
into why there are so many variations would be much appreciated

Peter
User 364143 Photo


Guest
5,410 posts

Times change and so do the standards. It basically tells the browser this is what I want to display and how I intend for you to display it, so follow these standards when rendering the web page to the screen. When the standard is not followed, or not defined, strange things happen.

http://www.w3schools.com/tags/tag_doctype.asp
CoffeeCup... Yeah, they are the best!
User 528054 Photo


Registered User
209 posts

Ahh, I see thanks.

Jo Ann has suggested changing <br> for <br />,

I have looked W3 and the list of doc types is long with several different types.

Can you advise me on which doc type I should be using,
I use this one at the moment...

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

Peter

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.