Element "P" IS open!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Barry

    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.

  • Chris Morris

    #2
    Re: Element "P&quot ; IS open!

    "Barry" <barry@polisour ce.com> writes:[color=blue]
    > 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.[/color]

    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

    Comment

    • Steve Pugh

      #3
      Re: Element &quot;P&quot ; IS open!

      "Barry" <barry@polisour ce.com> wrote:
      [color=blue]
      >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."[/color]

      Yep, you've got the end tag for a paragraph but no opening tag. The
      error report is correct. Delete that stray end tag.
      [color=blue]
      > It looks open to me, right before the table tag.[/color]

      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 <steve@pugh.net > <http://steve.pugh.net/>

      Comment

      • Werner Partner

        #4
        Re: Element &quot;P&quot ; IS open!

        Barry schrieb:
        [color=blue]
        > 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.
        >[/color]

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

        regards

        Werner

        --
        --------------------------------------------------
        Werner Partner, 45699 Herten

        Comment

        • Lars Eighner

          #5
          Re: Element &quot;P&quot ; IS open!

          In our last episode,
          <1111155750.491 713.79680@z14g2 000cwz.googlegr oups.com>,
          the lovely and talented Barry
          broadcast on comp.infosystem s.www.authoring.html:
          [color=blue]
          > Hi group,[/color]
          [color=blue]
          > 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.[/color]

          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 eighner@io.com http://www.larseighner.com/
          "There are some people that if they don't know, you just can't tell 'em."
          -- Louis Armstrong

          Comment

          • Barry

            #6
            Re: Element &quot;P&quot ; IS open!

            Thanks Chris, and everyone else. I fixed it. I remember reading the
            first quote below, but not the second.


            "Content model
            Generally, block-level elements may contain inline elements and other
            block-level elements."


            "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.

            Comment

            • Lāʻie Techie

              #7
              Re: Element &quot;P&quot ; IS open!

              On Fri, 18 Mar 2005 06:22:30 -0800, Barry wrote:
              [color=blue]
              > 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.[/color]

              Perhaps the standard only allows inline elements inside of p?

              HTH,
              La'ie Techie

              Comment

              • Barry

                #8
                Re: Element &quot;P&quot ; IS open!

                Um... this is getting ridiculous. I don't think I'll be posting here
                again.

                Comment

                • Michael Winter

                  #9
                  Re: Element &quot;P&quot ; IS open!

                  On 19/03/2005 01:57, Barry wrote:
                  [color=blue]
                  > Um... this is getting ridiculous. I don't think I'll be posting here
                  > again.[/color]

                  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.

                  Comment

                  • Steve Pugh

                    #10
                    Re: Element &quot;P&quot ; IS open!

                    "Barry" <barry@polisour ce.com> wrote:
                    [color=blue]
                    >Um... this is getting ridiculous. I don't think I'll be posting here
                    >again.[/color]

                    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 <steve@pugh.net > <http://steve.pugh.net/>

                    Comment

                    • Barry

                      #11
                      Re: Element &quot;P&quot ; IS open!

                      I guess it could be a propagation issue, but I've posted to fairly busy
                      newsgroups before and never saw this level of repetition. I also have
                      experience on a message board in which people could vote on posts and
                      your rank and privileges depend on your votes, which brings out
                      annoying habits in some people.

                      Statistics for this group are at

                      (I'm accessing this through Google Groups, which is more reliable than
                      Verizon, but I might use Verizon in the future).

                      I do appreciate the effort of those who aren't purposely being
                      repetitive.

                      Comment

                      • Dr John Stockton

                        #12
                        Re: Element &quot;P&quot ; IS open!

                        JRS: In article <u31o31lg66icil 30jao737q6r0rn4 p0fbg@4ax.com>, dated
                        Sat, 19 Mar 2005 10:55:44, seen in news:comp.infos ystems.www.authoring.h
                        tml, Steve Pugh <steve@pugh.net > posted :[color=blue]
                        >
                        >What's rdidiculous? Please quote part of the message you're replying
                        >to so people have some context to understand your reply.[/color]

                        (1) A sign of a broken spelling-checker?

                        (2) He's posting via Google. If you want to be helpful, ISTM that you
                        need to explain not only what to do but also how to do it :

                        Keith Thompson wrote in comp.lang.c, message ID
                        <lnwtuhfy7d.fsf @nuthaus.mib.or g> :-
                        If you want to post a followup via groups.google.c om, don't use
                        the "Reply" link at the bottom of the article. Click on "show options"
                        at the top of the article, then click on the "Reply" at the bottom of
                        the article headers.

                        --
                        © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME ©
                        Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
                        Web <URL:http://www.merlyn.demo n.co.uk/news-use.htm> : about usage of News.
                        No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.

                        Comment

                        • Ståle Sæbøe

                          #13
                          Re: Element &quot;P&quot ; IS open!

                          Barry wrote:[color=blue]
                          > I guess it could be a propagation issue, but I've posted to fairly busy
                          > newsgroups before and never saw this level of repetition. I also have
                          > experience on a message board in which people could vote on posts and
                          > your rank and privileges depend on your votes, which brings out
                          > annoying habits in some people.
                          >
                          > Statistics for this group are at
                          > http://groups-beta.google.com/group/...ing.html/about
                          > (I'm accessing this through Google Groups, which is more reliable than
                          > Verizon, but I might use Verizon in the future).
                          >
                          > I do appreciate the effort of those who aren't purposely being
                          > repetitive.
                          >[/color]
                          Some participants here like to take an issue and beat it to death with a
                          stick. I think they use the propagation mechanics as an excuse to show
                          everyone that they knew the answers as well. The very same posters will
                          snip quotes out of context and call you names. Also they will attack you
                          if you help someone because they are convinced they have a better
                          answer, but will not in turn give that answer away before they have
                          tried to humiliate the person seeking answers for being ignorant.
                          Sometimes I think these trolls actually live inside the servers and are
                          put on this earth to annoy and to procrastinate communication in service
                          of satan ... oops I am getting out of line here ... ahem ...

                          Anyway, watch who will flame me for this post.

                          However there are a few who are really helpful and I appreciate that a
                          lot :)

                          You said you have posted to other groups. Can you recommend some that
                          share the topics with these?

                          Comment

                          • Barry

                            #14
                            Re: Element &quot;P&quot ; IS open!

                            Thanks, I was wondering how to create those colored quotes, but I switched
                            to Outlook Express so it won't matter until I switch from Verizon to Optimum
                            Online, when I expect to not know how to do things for a while.
                            [color=blue]
                            > Keith Thompson wrote in comp.lang.c, message ID
                            > <lnwtuhfy7d.fsf @nuthaus.mib.or g> :-
                            > If you want to post a followup via groups.google.c om, don't use
                            > the "Reply" link at the bottom of the article. Click on "show options"
                            > at the top of the article, then click on the "Reply" at the bottom of
                            > the article headers.[/color]


                            Comment

                            • me

                              #15
                              Re: Element &quot;P&quot ; IS open!

                              "Barry" <mail@DELETE_TH IS_PARTpolisour ce.com> wrote in message
                              news:Cu3%d.9948 $I16.7540@trndn y03...[color=blue]
                              > Thanks, I was wondering how to create those colored quotes, but I switched
                              > to Outlook Express so it won't matter until I switch from Verizon to[/color]
                              Optimum[color=blue]
                              > Online, when I expect to not know how to do things for a while.[/color]

                              OT but if you have questions about OE try the following NG:
                              Good Luck,
                              me

                              microsoft.publi c.windows.inete xplorer.ie6_out lookexpress


                              Comment

                              Working...