473,789 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Element "P" IS open!

Hi group,

Does anyone know why I get a W3 validator error (click the validation
link at the bottom of the page) for
http://www.polisource.com/consumer-protection.shtml saying "Line 227,
column 3: end tag for element "P" which is not open." It looks open to
me, right before the table tag. Maybe that's why the validator is still
in beta, but I thought I'd ask.

Jul 23 '05 #1
15 5975
"Barry" <ba***@polisour ce.com> writes:
Does anyone know why I get a W3 validator error (click the validation
link at the bottom of the page) for
http://www.polisource.com/consumer-protection.shtml saying "Line 227,
column 3: end tag for element "P" which is not open." It looks open to
me, right before the table tag. Maybe that's why the validator is still
in beta, but I thought I'd ask.


In HTML the end tag for <p> is optional, and implied by the start of
any block level element. So...

<p>...<table>.. .</table>...</p> is read in HTML as
<p>...</p><table>...</table>...</p> which has the unwanted closing tag
that the validator reports.

Additionally, even in a language like XHTML that doesn't have any
optional end tags, <table> cannot be contained within <p>.

--
Chris
Jul 23 '05 #2
"Barry" <ba***@polisour ce.com> wrote:
Does anyone know why I get a W3 validator error (click the validation
link at the bottom of the page) for
http://www.polisource.com/consumer-protection.shtml saying "Line 227,
column 3: end tag for element "P" which is not open."
Yep, you've got the end tag for a paragraph but no opening tag. The
error report is correct. Delete that stray end tag.
It looks open to me, right before the table tag.


No, that's a different paragraph. As paragraph elements can not
contain table elements the paragraph is implicitly closed as soon as
the table starts. Hence the end tag after the table isn't paired up
with any opening tag.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 23 '05 #3
Barry schrieb:
Hi group,

Does anyone know why I get a W3 validator error (click the validation
link at the bottom of the page) for
http://www.polisource.com/consumer-protection.shtml saying "Line 227,
column 3: end tag for element "P" which is not open." It looks open to
me, right before the table tag. Maybe that's why the validator is still
in beta, but I thought I'd ask.


I took away the <p> ... </p> around the <table> ... </table>
Now it's valid.

regards

Werner

--
--------------------------------------------------
Werner Partner, 45699 Herten
http://www.sonoptikon.de
Jul 23 '05 #4
In our last episode,
<11************ *********@z14g2 000cwz.googlegr oups.com>,
the lovely and talented Barry
broadcast on comp.infosystem s.www.authoring.html:
Hi group, Does anyone know why I get a W3 validator error (click the validation
link at the bottom of the page) for
http://www.polisource.com/consumer-protection.shtml saying "Line 227,
column 3: end tag for element "P" which is not open." It looks open to
me, right before the table tag. Maybe that's why the validator is still
in beta, but I thought I'd ask.


P cannot contain a table. When you opened the table you
implicitly closed the open P. That makes the close-P after the
close-table unnecessary.

I wouldn't be having anything to say about betas if I were you.

--
Lars Eighner ei*****@io.com http://www.larseighner.com/
"There are some people that if they don't know, you just can't tell 'em."
-- Louis Armstrong
Jul 23 '05 #5
Thanks Chris, and everyone else. I fixed it. I remember reading the
first quote below, but not the second.

http://www.w3.org/TR/html401/struct/global.html#h-7.5.3
"Content model
Generally, block-level elements may contain inline elements and other
block-level elements."

http://www.w3.org/TR/html401/struct/text.html#h-9.3.1
"The P element represents a paragraph. It cannot contain block-level
elements (including P itself)."

With all the repetition, it looks like there's competition for most
replies here.

Jul 23 '05 #6
On Fri, 18 Mar 2005 06:22:30 -0800, Barry wrote:
Hi group,

Does anyone know why I get a W3 validator error (click the validation link
at the bottom of the page) for
http://www.polisource.com/consumer-protection.shtml saying "Line 227,
column 3: end tag for element "P" which is not open." It looks open to me,
right before the table tag. Maybe that's why the validator is still in
beta, but I thought I'd ask.


Perhaps the standard only allows inline elements inside of p?

HTH,
La'ie Techie

Jul 23 '05 #7
Um... this is getting ridiculous. I don't think I'll be posting here
again.

Jul 23 '05 #8
On 19/03/2005 01:57, Barry wrote:
Um... this is getting ridiculous. I don't think I'll be posting here
again.


If you're commenting on repetition, you have to realise that it can be
due to the nature of Usenet. Posts don't automatically propagate to
all servers, similarly they don't arrive instantaneously . I've seen
posts suddenly appear several days after they were supposedly posted.

This is why regulars keep telling posters to quote what they're
responding to, so that missing posts don't prevent a reader from
following the conversation.

As for posting competition, there really isn't any point. This group
doesn't collect statistics, and Steve would probably win anyway. :)
(At least against the other posters in this thread).

Of course, it could be that other posters aren't reading the rest of
the thread before answering. That does happen[1], but it's hardly
something to get worked up about. It should take far less time for you
to dismiss a duplicate answer than it did for the poster to write it.
At least appreciate their effort.

Mike
[1] You can tell because the OP might offer new information
elsewhere and the post doesn't take it into account.

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #9
"Barry" <ba***@polisour ce.com> wrote:
Um... this is getting ridiculous. I don't think I'll be posting here
again.


What's rdidiculous? Please quote part of the message you're replying
to so people have some context to understand your reply. Based on your
other post I guess that you think its ridiculous that more than one
person has posted the answer to your problem. Why?

Different messages propogate at different rates. Whilst the first
dozen or so replies may have reached your news server your original
message may only just have reached someone else's server.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
18740
by: Amol | last post by:
Hi, I want to fetch some values from a XML file, using a java program. I want to retrieve value of path tag for e.g<path>some path</path> tag.(Marked with **** in the below XML file Example) ============= My XML File ============
4
8673
by: Jamie Jackson | last post by:
I'm trying to limit the space between an <h1> and an <h2>, which immediately follows. Isn't there some syntax for this? <h1>Main Header</h1> <h2>Sub Header</h2> There's too much space between the two by default, but I only want to modify the relative proximity when <h1/> is followed by <h2/>. This is possible, isn't it?
5
12098
by: RodneyDunes | last post by:
My site did validate and now it doesn't. The error I get is the following: document type does not allow element "META" here ....nt-type" content="text/html;charset=iso-8859-1"> Can someone please tell me what I need to change?These are the Meta tags: </head> <meta http-equiv="Content-type" content="text/html;charset=iso-8859-1"> <META http-equiv="PICS-Label" content=(PICS-1.1 "http://www.classify.org/safesurf/" L gen true for
4
6931
by: Tom Eldridge | last post by:
Hi all I'm getting tons of these errors when running the w3c validator on my template page. Basically it will say for example: element "TITLE" undefined. Do I need to put this into lowercase or uppercase or have I got completely the wrong end of the stick and need to define my doctype to another? Currently I have this:
1
4747
by: tankbattle | last post by:
That is, what's the difference between <complexType name="Address" final="restriction"> <sequence> <element name="name" type="string"/> <element name="street" type="string"/> <element name="city" type="string"/> </sequence> </complexType> and <complexType name="Address" block="restriction">
5
11142
by: garfy | last post by:
Hi i get this error in validation Line 22 column 6: document type does not allow element "title" here. <title>Seo Web Design Los Angeles - Web Design And Search Engine Optimization L But the title is inside the head so why I am getting this?
7
2477
by: Zhang Weiwu | last post by:
Dear all How does javascript realiablily tell if a variable is a reference to an HTML Element "<select>", without causing browser to pop up error message? if (variable.constructor == HTMLElementSelect) // doesn't work, Firefox complain no such property if variable is undefined if (typeof variable == "object" && variable.constructor == HTMLElementSelect) // doesn't work, IE complain object do not have this property "constructor"
3
4310
by: blackrunner | last post by:
ERROR in my Query?! ERROR: Element GESCHLECHT is undefined in FORM. i think everything ok. Maby somebody can help me here Element GESCHLECHT is undefined in FORM. The error occurred in \anmeldung2.cfm: line 404
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9499
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10374
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10177
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10127
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8998
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5405
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.