Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > what's wrong?

Reply
Thread Tools

what's wrong?

 
 
thedarkman
Guest
Posts: n/a
 
      01-07-2007
http://www.ismichaelstoneguilty.org/...r_20_2006.html

the above page should exhibit the four options on consecutive lines but
for some reason on the website two of the lines are merged as you can
see. There doesn't appear to be any error in the coding. Can anyone
sort this out?

Thanks

 
Reply With Quote
 
 
 
 
John Hosking
Guest
Posts: n/a
 
      01-07-2007
thedarkman wrote:
> http://www.ismichaelstoneguilty.org/...r_20_2006.html
>
> the above page should exhibit the four options on consecutive lines but
> for some reason on the website two of the lines are merged as you can
> see. There doesn't appear to be any error in the coding. Can anyone
> sort this out?
>


Well, you can *say* there doesn't appear to be any error, but it doesn't
make it true. It doesn't even validate
http://validator.w3.org/check?verbos...r_20_2006.html
(or try http://tinyurl.com/yxdgsq), and that doesn't necessarily detect
any logic errors. It's just the *syntax*. But the code, my friend, is awful.

As it happens you've got something like this:
<h3><br>
<p><a href="blah1.html">To First Letter
<br><a href="blah2.html">To Second Letter</br>
<br><a href="blah3.html">Return To Correspondence Index</br>
<br><a href="blah4.html">Return To Site Index
</h3>

This is a very long <h3> element (although it's not really a heading,
it's a list of four links). The first element in the <h3> is a
line-break. Then you've got a paragraph (for some non-reason) which
looks like it's going to contain a link. The <a> element is started
(blah1), but never finished. After the text "To First Letter" there
comes a <br>, which really is a line-break.

Then a second link (blah2) starts (again without closing tag) with the
text "To Second Letter". Next comes a thing spelled </br>, which isn't
really anything, but appears to be treated by some browsers as a
line-break. Then there follows a <br>, which really is a line-break. So
that's two line-breaks following the second link.

Similar chaos ensues after the third (likewise unclosed) <a> link,
before finishing the train wreck with (1) the lack of a terminating </a>
for the fourth link; (2) the lack of a </p> (not formally required).

Additionally, the page starts with two never-terminated <font> elements
and a spurious closing </center> tag.

You're lucky a browser shows you *anything*.

HTH
--
John
 
Reply With Quote
 
 
 
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      01-07-2007
thedarkman wrote:

> http://www.ismichaelstoneguilty.org/...r_20_2006.html
>
> the above page should exhibit the four options on consecutive lines
> but for some reason on the website two of the lines are merged as you
> can see. There doesn't appear to be any error in the coding. Can
> anyone sort this out?


Count your <br>'s. And </br> is incorrect; line breaks don't use
closing tags.

You should use a list, instead of putting them in a heading element
<h3>. <hx> elements are headings, not size controls. Also lacking the
closing </a> tags, which some browsers may fail on. Use:

<ul>
<li><a href="m_s_letter_governor_october_16_2006.html">To First
Letter</a></li>
<li><a href="m_s_letter_to_governor_october_30_2006.html" >To Second
Letter</a></li>
<li><a href="m_s_letters.html">Return To Correspondence Index</a></li>
<li><a href="m_s_ismichaelstoneguilty_site_index.html">Re turn To Site
Index</a></li>
</ul>

If you really want them bold, add this in your <head> section:

<style type="text/css">
li { font-weight: bold; }
</style>

--
-bts
-Motorcycles defy gravity; cars just suck
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      01-07-2007
In article
<(E-Mail Removed) .com>,
"thedarkman" <(E-Mail Removed)> wrote:

> http://www.ismichaelstoneguilty.org/...r_20_2006.html
>
> the above page should exhibit the four options on consecutive lines but
> for some reason on the website two of the lines are merged as you can
> see. There doesn't appear to be any error in the coding. Can anyone
> sort this out?


Nearly everything is wrong. You can get info from trying to
validate the page... but really, you need to get a tute on how to
write HTML and CSS. It is so simple what you need that if no one
has helped you by maybe tomorrow, I will suggest a plan if your
voice is heard again... But swim time now for dorayme... bleak as
the day is...

--
dorayme
 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      01-07-2007
dorayme wrote:

> but really, you need to get a tute ...


Oft recommended: http://htmldog.com/

Enjoy your swim.

--
-bts
-Motorcycles defy gravity; cars just suck
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      01-07-2007
In article
<Li_nh.342429$(E-Mail Removed)>,
"Beauregard T. Shagnasty" <(E-Mail Removed)> wrote:

> dorayme wrote:
>
> > but really, you need to get a tute ...

>
> Oft recommended: http://htmldog.com/
>
> Enjoy your swim.


I did. And am in such a good mood now that I offer OP:

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

<html>
<head>
<title>Is Michael Stone guilty? Website - Letter from the
governor of HMP Full Sutton</title>

<style type="text/css">
h1 {color: #C00; background: #fff;text-align: center;}
li { font-weight: bold; margin-bottom: .3em;}
div {text-align: center}
div img {width: 919px; height: 1260px}
</style>

</head>
<body>

<h1>Letter From The Governor Of HMP Full Sutton</h1>

<ul>
<li><a href="m_s_letter_governor_october_16_2006.html">To First
Letter</a></li>
<li><a href="m_s_letter_to_governor_october_30_2006.html" >To
Second
Letter</a></li>
<li><a href="m_s_letters.html">Return To Correspondence
Index</a></li>
<li><a href="m_s_ismichaelstoneguilty_site_index.html">Re turn To
Site
Index</a></li>
</ul>

<div>
<img
src="http://www.ismichaelstoneguilty.org/m_s_stone_governor_letter
_october_20_2006_page_1.jpg" alt="LETTER FROM THE GOVERNOR OF HMP
FULL SUTTON - PAGE 1">

<img
src="http://www.ismichaelstoneguilty.org/m_s_stone_governor_letter
_october_20_2006_page_2.jpg" alt="LETTER FROM THE GOVERNOR OF HMP
FULL SUTTON - PAGE 2">
</div>

</body>
</html>

No need for even a break or div to separate imgs, if anyone had a
monitor big enough, pages side by side would be fine. As it
happens they are same size, from the scanned page. Terrible
scanner or something! And far far too big in file size... er...no
I am not in that good a mood... personally, I would not bother to
centre anything in this thing, but earthlings seem to love it,
there are genes that code for the programming bias in their
brains you see...

--
dorayme
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      01-07-2007
In article
<(E-Mail Removed)>,
dorayme <(E-Mail Removed)> wrote:

> div img {width: 919px; height: 1260px}


Perhaps, come to think of it, to give a bit more sense of order,

div img {width: 919px; height: 1260px; border:3px solid #666;}

--
dorayme
 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      01-07-2007
dorayme wrote:

> "Beauregard T. Shagnasty" <(E-Mail Removed)> wrote:
>
>> dorayme wrote:
>>
>>> but really, you need to get a tute ...

>>
>> Oft recommended: http://htmldog.com/
>>
>> Enjoy your swim.

>
> I did. And am in such a good mood now that I offer OP:


Well done. Amazing what a dip will do for you. <g>

--
-bts
-Motorcycles defy gravity; cars just suck
 
Reply With Quote
 
thedarkman
Guest
Posts: n/a
 
      01-07-2007

Thanks everyone; I'm not interested in using lists or stylesheets or
anything like that. My code is very basic. Like me! Will check it out
on another machine later today.

Beauregard T. Shagnasty wrote:
> dorayme wrote:
>
> > "Beauregard T. Shagnasty" <(E-Mail Removed)> wrote:
> >
> >> dorayme wrote:
> >>
> >>> but really, you need to get a tute ...
> >>
> >> Oft recommended: http://htmldog.com/
> >>
> >> Enjoy your swim.

> >
> > I did. And am in such a good mood now that I offer OP:

>
> Well done. Amazing what a dip will do for you. <g>
>
> --
> -bts
> -Motorcycles defy gravity; cars just suck


 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      01-07-2007
thedarkman wrote:

> Thanks everyone; I'm not interested in using lists or stylesheets or
> anything like that. My code is very basic.


...and - pardon me for reiterating - very full of errors. So 1997, too.
Why would you not want to try to improve? I figured your original post
here was to learn how to correct the mistakes you had made. Proper,
modern code is really quite simple.

> Like me! Will check it out on another machine later today.


Copy dorayme's code, give it a different file name for testing. You
don't need another machine.

--
-bts
-Motorcycles defy gravity; cars just suck
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments