¿Porque me aparece No debe haber etiquetas p vacías!?


#1

Ayudeme no se que es lo que pasa aqui dice que no debe haber etiquuetas p vacias

<p>
<h1>
<body>
hola 
</body>
</p>
</h1>

<p>
<h1>
<body>
como estas 
</body>
</p>
</h1>

<p>
<h1>
<body>
muy bien gracias
</body>
</p>
</h1>

#2

You will need to translate this, since English is my only language.

HTML has a strict outer structure consisting of a root element,

<html>
</html>

This element has two child elements, which do not repeat,

<html>
    <head>
    </head>
    <body>
    </body>
</html>

We tell the browser what markup language to parse the document with by opening our document with a Document Type Declaration, or,

<!DOCTYPE html>
<html>
    <head>
    </head>
    <body>
    </body>
</html>

The HEAD element contains a document title, which will appear on the browser tab or title bar of a window, and any meta data associated with the document such a special media types, style sheets, scripts, and so on.

<head>
    <title>Every document should have a title</title>
</head>

The BODY element is the container for all the content we wish to display in the webpage.

<body>
    <h1>Every document should have a top level heading that
        closely matches the title</h1>
    <p>hola</p>
    <p>como estas</p>
    <p>muy bien gracias</p>
</body>

That's a basic primer. Everything else builds upon the simple model.


#3

Hopefully with that primer you can see how a P element is constructed. The error message might be a generic one, since your markup contains several errors. This would be an empty element...

<p></p>

The author misuses the tag word. There are actually two tags, an OPENTAG and an ENDTAG which together form the container, or element. But we won't beat ourselves up if we happen to call them paragraph tags so long as we understand what is really in play.

It is generally considered bad practice to leave empty tags in a source document. There are exceptions, but they apply to a script driven document that has elements set out for it to populate, and even this is unnecessary, since our script can create elements as it needs them. You'll run into this in more detail once you begin to work with script.


#4

mira escribe atravez lo mismo pero da error porfavor se mas concreto conmigo soy novato.




hola





como estas





bien gracias



#5

Language barrier... Hopefully someone will be along to help. Study the example above for clues.