Skip to main content
Inspiring
March 20, 2017
Answered

Why is a </SPAN> appearing when I save source code

  • March 20, 2017
  • 2 replies
  • 414 views

I am trying to debug a page for someone because some bullet points are not working and indenting as they should

The site is commercial and I am NOT plugging anything but the page addess is http://www.essentialfinance.net/events/booking2.aspx?index=1195

Essential Finance - Event Booking

The bit in question is the part where the bullet points are in the margin.

When I view the page source in Mozilla or Firefox the lines simply break with a <BR> at the end of the line "The tutorial will include:"

When I save the page a <\Span> moves up four lines to break the span before I want it to.

I have included stylesheets for the UL LI bits to give a 20Px left margin but it's not working.

The </SPAN> should be staying under the close of the </LI> </UL> bit

What is happening?

Thank you in advance for any feedback.

Terry

    This topic has been closed for replies.
    Correct answer Nancy OShea

    Okay - so could I get away with something like the below to add a class with a left margin of 20px legally?

    <ul>

         <li class="dotindent">List item</li>

         <li class="dotindent">List item</li>

         <liclass="dotindent">List item</li>

    </ul>

    Thank you very much for all your help

    Terry


    Sure.  Or you could apply your class to the parent tag with much less HTML code like this.

    CSS:

         ul .indent li {margin-left: 20px}

    HTML:

        <ul class="indent">

              <li>List item</li>

              <li>List item</li>

              <li>List item</li>

         <ul>

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    March 20, 2017

    Viewing your page in my browser with Outlines around block level elements, I can see that your bullet list is not inside the parent container as it should be. 

    Your code contains an unacceptable number of code validation errors, too.  Fix these:

    [Invalid] Markup Validation of http://www.essentialfinance.net/events/booking2.aspx?index=1195 - W3C Markup V…

    In Code View, close your <p> tags and remove the stray <BR> and <span> tags.

    Nancy

    Nancy O'Shea— Product User & Community Expert
    Inspiring
    March 20, 2017

    This is my point - the original code does NOT have a <\SPAN> which is breaking up the container....

    My code is:-

    <P class="text">

    <SPAN class="esstextblue">A full demonstration of how  <B>AppMapper</B> can seamlessly integrate your Excel spreadsheets with any of your iSeries Applications <BR>

    This interactive session will focus on <B><FONT color="#50a000">'Header & Detail' scripts</FONT> </B>, using purchase order

    create and maintain.  <BR \>All you need is 30 minutes!

    <BR \><BR \>The tutorial will include:<BR \>

    <UL>

      <LI>AppMapper latest features</LI>

      <LI>Demo on Header & Detail</LI>

      <LI>Q&A</LI></UL>

    </SPAN>

    This works fine on local computer - however when uploaded and then retrieved online it comes back as:-

    <P class="text">

    <SPAN class="esstextblue">A full demonstration of how  <B>AppMapper</B> can seamlessly integrate your Excel spreadsheets with any of your iSeries Applications <BR>

    This interactive session will focus on <B><FONT color="#50a000">'Header & Detail' scripts</FONT> </B>, using purchase order

    create and maintain.  <BR \>All you need is 30 minutes!

    <BR \><BR \>The tutorial will include: </SPAN><BR \>

    <UL>

      <LI>AppMapper latest features</LI>

      <LI>Demo on Header & Detail</LI>

      <LI>Q&A</LI></UL>

    I can accept errors but something is happening once the page is up there to create these breaking errors.....?

    Nancy OShea
    Community Expert
    Community Expert
    March 20, 2017

    DW does its best to reconcile code errors when it sees them.  But yours is so very messy, it's confused.

    Close your paragraph tag before you create a <UL>.

    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Community Expert
    March 20, 2017

    There are 55 html errors on that page, those should be resolved and will likely be the source of your issue.

    Run the validator at http://validator.w3.org/nu to get a listing.