''<p> </p>'' inside or outside the body tag?

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Hi,I’m wondering about the ‘‘p’’ tags.Should I put it inside the '‘body’'tags or I can put randomly in the ‘‘index.html.’’ structure? I’m asking so because I’ve tested inside it and outside of the body tag and it seems that in both ways it worked properly.

```
<do not remove the three backticks above>

Hey,

You should always put <p></p> tags in the <body></body> tags. Same for other tags.

All the things that are in the <head></head> tags are not visible for users on a website. So mostly we put links in there to css or javascript files.

In the body we put the content that we want people to see when they visit our website. So it’s best to put it between there, because you’ll get problems when you try to use css.

I hope my explanation was a bit clear. :slight_smile:

1 Like

Your suppose to put it inbetween the body codes

1 Like

Hi,

Yes You are Right.You Can Put <p> tag inside or outside the Body.Its Working Properly.
Exa:

<html>
	<head></head>
	<body>
		<p>hello World!!!!!</p>
	</body>
	<p>Wellcome</p>
</html>

THANK YOU,
Divyesh Padamani

1 Like

Thanks,veryaliona.yes,it was super clear. I think that ,doing so,we are following the Style guides provided by World Wide Web Consortium (W3C) in order to decline the probability of misreading.:slight_smile:

1 Like

Hi,Divyesh Padamani.Thanks for you help. I guess that the WWWC recommends put inside the body just in case of any misreading by the browser or maybe it’s just a standardisation for unknown reasons. :slight_smile:

Paragraph tags must ALWAYS be placed inside the body tags, no matter what.

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