I Keep getting - Empty p tags error


#1



<!DOCTYPE html>
<html>
<head>
<Title>My new Website</title>
</head>
<body>
<h1>John Picton</h1>
<p>This is my webpage</P>
<p>It is here for me to learn</P>
<p>Or at least to try</p>
</body>
</html>

I keep getting the error "Oops, try again. No empty p tags! Make sure to write a bit about yourself in all three paragraphs."
I am sure I am missing something obvious.

TIA

John


#2

make sure all paragraph tags have a lowercase p, html is case-sensitive


#3

all of the p tags are lower case.

I looked this up and my understanding was that HTML tags are case insensitive (however in my code they are all lower case any way).


#4

including all the closing tags?

I should have been more specific: a lowercase opening tag doesn't match a uppercase closing tag.


#5

Sorry I just checked - I had put an uppercase p in there.

However I still looked this up and according to the information at www.w3.org tags are insensitive

as stated in this part of their page

Tag names for HTML elements may be written with any mix of lowercase and uppercase letters that are a case-insensitive match for the names of the elements given in the HTML elements section of this document; that is, tag names are case-insensitive.

Is the case insensitivity in the CodeAcademy interface?


#6

My post crossed

So they can be case independent as long as they match?


#7

i never understood why people would use uppercase letters, but it seems you may. The recommendations w3 makes have become easier over the yeas (with the latest html5 recommendations some closing tags (include paragraphs) are no longer required)

codecademy is case-sensitive in this exercise.


#8

I just saved my code in to a .html file via notepad and used a whole range of upper and lowercase letters and the page ran fine?

So I ask again is the upper / lowercase thing a Code Academy thing (which is fine) or an HTML thing?


#9

Again poses crossed

I really appreciate the clarification

In my case it was sloppy use of the keyboard :slight_smile: so it is a good thing it is picked up.

Many thanks

John