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


#1


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.



#2

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:


#3

Your suppose to put it inbetween the body codes


#4

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


#5

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:


#6

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:


#7

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


#8

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