Extra p tags added to code and not nested properly
-
The problem area has the following code:
</tr> </tbody> </table><!-- .widget-wrapper --> </div> <div style="float:right; clear:right; margin:0 1em 0 1em; padding:0 1em 0 1em;"> <h3>Severe Weather</h3> <table class="white_comm" style="width: 20em; border:2px;"> <!-- <a class="widget-logo" href="https://www.fema.gov" rel="nofollow noopener noreferrer"><img src="//fema.gov/profiles/fema_gov/themes/unicorn/img/fema-logo-main.png" alt="US Department of Homeland Security - Federal Emergency Management Agency" /></a>--> <thead> <tr class="white_pad7" style="width: 20em;">
The rendered page has inserted an opening p tag between /table and /div. Then added a closing p tag between the table tag and the opening thead tag in the next opening div section.
</tr> </tbody> </table> <p><!-- .widget-wrapper --> </div> <div style="float:right; clear:right; margin:0 1em 0 1em; padding:0 1em 0 1em;"> <h3>Severe Weather</h3> <table class="white_comm" style="width: 20em; border:2px;"> <!-- <a class="widget-logo" href="https://www.fema.gov" rel="nofollow noopener noreferrer"><img class="lazyload jetpack-lazy-image" src="image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-src="//fema.gov/profiles/fema_gov/themes/unicorn/img/fema-logo-main.png" alt="US Department of Homeland Security - Federal Emergency Management Agency" data-lazy-src="https://image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7?is-pending-load=1" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"><noscript><img data-lazy-fallback="1" class="lazyload" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-src="//fema.gov/profiles/fema_gov/themes/unicorn/img/fema-logo-main.png" alt="US Department of Homeland Security - Federal Emergency Management Agency" /></noscript><noscript><img class="lazyload jetpack-lazy-image" src="//fema.gov/profiles/fema_gov/themes/unicorn/img/fema-logo-main.png" alt="US Department of Homeland Security - Federal Emergency Management Agency" data-lazy-src="//fema.gov/profiles/fema_gov/themes/unicorn/img/fema-logo-main.png?is-pending-load=1" srcset="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"><noscript><img data-lazy-fallback="1" class="lazyload" src="//fema.gov/profiles/fema_gov/themes/unicorn/img/fema-logo-main.png" alt="US Department of Homeland Security - Federal Emergency Management Agency" /></noscript></noscript></a>--></p> <thead> <tr class="white_pad7" style="width: 20em;">
Unnecessary p tags and not nested properly. What is doing this? My syntax checker on the rendered page tells me there is an extra closing /p tag there but doesn’t say anything about the out of place opening p tag.
The page I need help with: [log in to see the link]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Extra p tags added to code and not nested properly’ is closed to new replies.