Another stupid question...about those mysterious </p></div> tags

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

rosebud0419

Thread Starter
Joined
Aug 13, 2005
Messages
79
I read someplace that after you have your DOCTYPE attributes placed correctly on each page, you then close the page with </p></div> and the usual </body></html>. In using the p-div closing tags, does this mean I can dispense with such tags as </b>, </font>, </center> and so forth? I've been trying to surf for info on this, but the more I read, the more confused I get (as usual!). I'm deeply into making corrections on each and every site page...and thought I ought to ask about this before proceeding any farther.

thanks

rosebud
 

colinsp

Colin
Joined
Sep 5, 2007
Messages
2,362
You only close an open tag. So you only use </p> if you have a matching <p> earlier in your code. Each tag does something different. You need to read up on tags and what they do. You will need the <b> tag to bold text for instance and once you have finished bolding text you turn it off with </b>. Go to the W3C schools it is a great website that explains all about tags etc or get yourself a good HTML programming book that expalins it all.
 
Joined
Jul 22, 2006
Messages
8,450
The W3c validation service show 25 errors and suggests corrections:
http://validator.w3.org/
Don't worry too mch about the "alt" errors, but you have close your tags.
Your text should be configured in your style sheet to make your markup easier to read(and to edit).
I think most people would say the background is too busy, and detracts from the text.
Use a left align for the text (IMHO), as "center" makes it hard to read.
 

rosebud0419

Thread Starter
Joined
Aug 13, 2005
Messages
79
I don't even have a style sheet of my own (the only one being, what goes along with my new index layout, a freebie from an online source). Over the years I've struggled with hand coding, things that look like what you see on this page:

http://www.w3schools.com/html/html_intro.asp

On there, it looks as though I wouldn't even need the closing p tags and div tags. I understand what the closing </p> tag is for. But with such basic pages as mine are, I'm not sure what the div tag does for me.

But that's the sort of really basic html I've 'made do' with for a long time... :eek: I am seriously out of date!
 

colinsp

Colin
Joined
Sep 5, 2007
Messages
2,362
Looking at your code it is totally incorrect even on the page that you think is OK.

You have loads of opening <p> tags and no closing </p> tags. Every time you have a <p> you must have a matching </p> at the end of the paragraph. You have a closing div tag at the end of the page but no corresponding opening div tag so it can be deleted.

As I said above get yourself a book or read and understand the w3c schools site.

As an example to help you

Code:
<p>
A final note:  I hope everyone has Java and can view the<br>
Anfy manips (I should have several of these eventually),<br>
they are well worth checking out! 
[B][COLOR="Red"]</p>[/COLOR][/B]
You need to have that </p> closing tag after the paragraph.
 
Joined
Jul 22, 2006
Messages
8,450
I just took a look at your site, and have to tell you I was a huge Hercules fan as well, but Xena was my favorite. Some of the best TV I ever saw was in these two shows.
As for the page, we can help you fix it, but HTML is a very forgiving code as you can see by the fact that your page works.
As for the style sheet, they are relatively easy to create if you want to learn more.
 

rosebud0419

Thread Starter
Joined
Aug 13, 2005
Messages
79
That would have been my next question, about the closing of <p> tags. Over all these years I *never* saw a paragraph tag closed, not in the old basic html that is. So...hmm, OK, I see what you mean about the index page (well, it soon will be an index page, at the moment it's an entry page) and the gallery page. Those wouldn't be any real problem to fix. Trouble is...I have about a hundred fiction pages... oh em gee :eek: and you can guess what they look like! Yet, strangely enough, they do work fine.

On the galleries page I formerly did have the text aligned to the left, but without knowing how to use an align tag. So how would I do that?

I've been trying to use NotePad++ also and discovered a neat function that allows you to alter tags universally, like on all pages throughout a folder. It would be nice if they would invent a way to let us change blocks of text universally rather than just one line.

Hey, it's great to know of yet another Hercules AND Xena fan out there! I loved both the series about equally well. :D
 
Joined
Jul 22, 2006
Messages
8,450
In the old days, most people didn't close the <p> tag, but it's good form to do so now.
I'm semi-busy at the moment, but I'll look at this later and give you some ideas.
You might want to look into an HTML editor, which makes all this much easier.
I use HTML-Kit:
http://www.chami.com/html-kit/
There are many others.
 

rosebud0419

Thread Starter
Joined
Aug 13, 2005
Messages
79
Yeah, are'nt we all at least semi-busy, LOL. I'm like the little old woman living in the shoe...she had so many projects she didn't know what to do :p

OK, I was kinda hoping someone would point out an editor that would help me with all this. I did take another look at the 'beginner HTML' page on w3schools and...lo and behold...there was a closing tag for the brief 'test' sentence! Opening tag <p> and closing tag right at the end. I didn't see that before!

Been looking at other sites similar to mine, sites I got my ideas from (having no inkling that they were, or soon would be, considered outmoded in their style), and I see that many of them were created on Angelfire or some other kind of pagemaker that still exists on such hosts out there. And I've surfed recently and found there are a lot of others. I thought this might help me, but I like my current host too much to move! To use the pagemakers you have to submit your site on *their* URL. I even experimentally tried one of the pagemakers and didn't care for it at all, I didn't seem to have any control over what I was doing. And I do like to have control! :)

Going to see that editor now...thanks, I really need a 'magic blender' to put all my pages into and presto, they're all correct and up to date!
 
Joined
Jul 22, 2006
Messages
8,450
You should like using an editor.
Once you open your page in HTML Kit, press F9 to see all the known errors. A very handy way to check your tags.
It's a bit more sophisticated than some editors-I don't use all its capabilities.
 

rosebud0419

Thread Starter
Joined
Aug 13, 2005
Messages
79
I downloaded and now I think I'm already an HTML-Kit fan! I'm in the "poking at it" stages.

I didn't know about F9; but I brought up the first html page in the folder and "tidied" it, then saved it. It put in all the closing paragraph tags, yeeeeee. :D And it explained other things, why they are incorrect. It even said I'm not using the proper DOCTYPE header, uh oh! I can't figure out how to change that w/o making entirely new files.

But how would I globally manage the entire folder of pages? I looked into the Plugins section online and it shows HTML Tidy, and it's very nice to have a means of automatically "fixing" each page. But I'd like to hit the whole folder and have done with it! I trust HTML Tidy knows more than I do about what is correct.

OK, I figured out how to globally manage a folder...subfolder, actually...but it keeps telling me it's logged 1000 events and please refine my file options or whatever, and try again. That's why I placed all my pages neatly into subfolders and tried to "fix" one of those. It appears that I may *have* to edit each page individually.... *sigh* At least it's putting all those missing tags onto each page, yaay for that.

(Later...) Ohno, the Kit is messing up my fonts!! Makes me wish I had just opted for default...I even tried search and replace to make the verdana font go back to size "2" rather than "3" and it still won't do it...

Can't upload .html files on here, so here's a sampling to show what is happening:
______________

<p><font face="Verdana" size="3">&ldquo;Does everything die when
it gets older?&rdquo; Melaegus asked.</font></p>
<p><font face="Verdana" size="3">&ldquo;Yes, Mel, everything dies
when it gets older.&rdquo;</font></p>
<p><font face="Verdana" size="3">&ldquo;You&rsquo;re real old.
When are you going to die?&rdquo; he asked.</font></p>
<p><font face="Verdana" size="3">Iolaus chuckled. The boy was too
young for Iolaus to explain his many trips into the underworld.
Instead, he pacified the child by stating, &ldquo;Hopefully, not
until I can get you back home to your father.&rdquo;</font></p>
<p><font face="Verdana" size="3">This seemed to satisfy
Melaegus.</font></p>
<p><font face="Verdana" size="3">&ldquo;When a tree dies, it
begins to rot,&rdquo; Iolaus said as he continued with the story.
He walked over to the decaying log. Bending at the knees, he
began scooping out the rich humus from under the log. He sifted
through the pile of dirt, searching for the reason they had come
this way.</font></p>
<p><font face="Verdana" size="3">&ldquo;What are you looking
for?&rdquo; the young boy asked.</font></p>
<p><font face="Verdana" size="3">&ldquo;All sorts of bugs are
attracted to this kind of dirt.&rdquo; Finally, after he had
removed three piles of dirt, Iolaus found what he was looking
for. &ldquo;WORMS!&rdquo; he exclaimed as he pulled out a long,
brown, moving earthworm.</font></p>
<p><font face="Verdana" size="3">&ldquo;Mel, open your
hand,&rdquo; Iolaus prompted.</font></p>
<p><font face="Verdana" size="3">The boy held out both of his
tiny hands. He closed his eyes in unpleasant anticipation. Iolaus
placed three earthworms in his palm.</font></p>
<p><font face="Verdana" size="3">&ldquo;They tickle,&rdquo;
Melaegus laughed, &ldquo;but Iolaus? What do worms have to do
with trees?&rdquo;</font></p>
<p><font face="Verdana" size="3">Iolaus had to think about it.
&ldquo;Well,&rdquo; he began, &ldquo;if we didn&rsquo;t find the
worms for fishing then the birds would, and they wouldn&rsquo;t
be eating the acorns, so they wouldn&rsquo;t drop the acorn seed,
so a new tree wouldn&rsquo;t grow, and we couldn&rsquo;t find a
good fishing stick, and then we couldn&rsquo;t find a dead tree
so we could find the worms. See, it&rsquo;s a circle. Now,
let&rsquo;s go fishing.&rdquo; Iolaus offered before Melaegus
could ask any more questions.</font></p>
<p><font face="Verdana" size="3">Protectively, Iolaus asked,
&ldquo;Do you want to bait the hook or shall I?&rdquo;</font></p>
<p><font face="Verdana" size="3">&ldquo;Can you?&rdquo; the boy
asked, unsure of himself.</font></p>
<p><font face="Verdana" size="3">&ldquo;Sure. We&rsquo;ll do it
at the stream.&rdquo; The two traveled toward Iolaus&rsquo;
favorite fishing hole. The hunter wrapped a loving arm around the
young boy as they went.</font></p>
<p><font face="Verdana" size="3"><br></font></p>
<center><font face="Verdana" size="3"><a href=
"http://gardenofdreams.izfree.com/HTML/otherfic.html"><img border="0"
src=
"http://gardenofdreams.izfree.com/Graphics/wood_button_back.gif"></a></font></center>
<p><br></p>
</body>
</html>
 
Joined
Jul 22, 2006
Messages
8,450
Here's a crude beginning using css only.
Note that the layout is in a separate style sheet, "dreams.css" that must be placed in the same folder.
This is a very flexible layout that should wok in all browsers and complies with modern standards.
The W3c Tryit editor is here, and will save you a lot of time as well as give you some practice:
http://www.w3schools.com/css/default.asp
 

Attachments

rosebud0419

Thread Starter
Joined
Aug 13, 2005
Messages
79
Thank you! (y) I have come to understand a few of the tags commonly seen in CSS, I just need to learn from 'the ground up' how to put it all together.

In the HTML-Kit, it looked like the program was trying to turn my poor simple little pages into something like XHTML, I noticed the disturbing frequency of those &quot kind of marks showing up all thru the document. Especially on that last one...

I suppose there would be a means of stripping out the 'old' font tags (in HTML-Kit)? As stated on my index/entry page, I learned how to turn ClearType on in Settings, and I love it. Makes even default fonts look readable. Before ClearType, the text on my pages looked good in IE but terrible in Firefox. Now it looks fine either way :)
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top