Paragraph in Body?


#1

Hey, so how do you put a paragraph inside a body when there is a div with another paragraph in it.


#2

I’m not quite sure I understand your question. Would you mind giving an example?

Are you talking about this?

<body>
    <div>
        <p>This is an example paragraph.</p>
    </div>
</body>

If so, then all you’d have to do to add a paragraph to the body, is this:

<body>
    <div>
        <p>This is an example paragraph.</p>
    </div>
    <p>This is an example paragraph.</p>
</body>

OR

<body>
    <div>
        <p>This is an example paragraph.</p>
        <p>This is another example paragraph.</p>
    </div>
</body>

#3

I think it’s fine in both ways you written aquaphoenix. I think that it depends he wants to do with the <div> element.


#4

Thanks the first example is what I was looking for…:slight_smile:


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.