Tobbe Posted March 31, 2017 Share Posted March 31, 2017 <p> <h2>Greetings</h2> Text<br> <br> More text<br> <br> text <a href="link">Name<i class="material-icons" style="font-size:12px">open_in_browser</i></a> text<a href="link" target="_blank">Name<i class="material-icons" style="font-size:12px">open_in_new</i></a>?<br> <br> Text <a href="Link">Name<i class="material-icons" style="font-size:12px">open_in_browser</i></a><br> <br> Text<br> </p> I get this error: Error: No p element in scope but a p end tag seen. From line 50, column 1; to line 50, column 4 (validator.w3.org) Everything seems to work as it should but I get this error and can't figure out what is wrong Link to comment Share on other sites More sharing options...
dsonesuk Posted March 31, 2017 Share Posted March 31, 2017 (edited) You can't have block element within paragraph, move opening p tag under h2 tag. It probably corrected by adding closing tag after opening tag, which means no opening tag for ending closing p tag. Edited March 31, 2017 by dsonesuk 1 Link to comment Share on other sites More sharing options...
Tobbe Posted March 31, 2017 Author Share Posted March 31, 2017 2 minutes ago, dsonesuk said: You can't have block element within paragraph, move opening p tag under h2 tag. Document checking completed. No errors or warnings to show. Thank you this solved it! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now