[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Help with HTML Validation problem

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 7
Thread images: 1

File: Capture.png (12KB, 304x263px) Image search: [Google]
Capture.png
12KB, 304x263px
I'm working on an HTML project for my Web Development Class, about to submit it, and I'm getting an odd validation error on one of my html documents.

The validator is having an issue with one of my <p> tags, even though it is recognized within Notepad++.

Here's the section of code:

<h2><a>Related Park News</a></h2>
<p id="news">
<div id="link1">
&nbsp;<a href="http://www.stonemountainpark.com/">Stone Mountain Park</a>
<p class="hide" id="link1p" >At Stone Mountain, you can see the world's largest bas-relief, with famous Confederate figures, like Stonewall Jackson!</p>
</div> <br>
<div id="link2">
&nbsp;<a href="https://www.lakecompounce.com/">Lake Compounce</a>
<p class="hide" id="link2p" >Lake Compounce is the oldest currently running amusement park in the US, opened way back in 1846!</p>
</div> <br>
<div id="link3">
&nbsp;<a href="https://www.sixflags.com/newengland">Six Flags New England</a>
<p class="hide" id="link3p" >Six Flag's New England park is commonly known as the "Coaster Capital of New England"!</p>
</div> <br>
</p>


Here's what the w3schools html validator is saying:

Error: No p element in scope but a p end tag seen.
From line 71, column 4; to line 71, column 7
> <br>↩ </p>↩ ↩ ↩

Pic related is a screenshot of Notepad++ recognizing the connected tags.

Thanks for any help!
>>
Can't know without the full code. You're probably missing another p tag on top or something.

Use pastebin.
>>
thats an easy one, you cannot nest <p>s
>>
>>300894
Try this one. If your problem is that you need an id for your line right there, I think you can use a label to tag it. You could also use the "a" tag, and correct any style errors using the css.
>>
>>300894
>>300898
I shoulda figured the not-nesting p tags.Ill try this, thanks! I woulda responded earlier but the internet here is ass
>>
replacing the first <p> (#news) with a <div> should clear thing up nicely

>and i should have added this to my post above
>>
Thanks for the help anons, I ended up working it out with an article tag.

I just wish I wasnt stupid enough to forget I can't nest p's.

I appreciate the help!
Thread posts: 7
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.