Hi
I understand that <p> is paragraph, and this would wrap around my text, setting it to the styles which I state in my CSS.
But it seems after researching on google, that <body> is quite similar.
Or am I misunderstanding?
Can someone define what the body tag is, and if i already have set attributes for <p> would i need to do it again for <body>
thanks
Page 1 of 1
<p> and <body>..are they the same?
#2
Posted 13 April 2009 - 05:10 PM
A web page is made up of 2 sections, head and body.
<head>
</head>
<body>
</body>
Everything on a page is then placed inside these two tags. Most of the stuff in the head is meta-data and is not visible on the actual page whereas the stuff in the body is what you see.
Thus <body> is very different from <p>
You can set global page settings in the css with body {}
<head>
</head>
<body>
</body>
Everything on a page is then placed inside these two tags. Most of the stuff in the head is meta-data and is not visible on the actual page whereas the stuff in the body is what you see.
Thus <body> is very different from <p>
You can set global page settings in the css with body {}
#3
Posted 14 April 2009 - 04:23 PM
Body style in the CSS will control everything within the main document (everything between the <body></body> tags) that isn't given its own style. So, you can specify document-wide text properties here such as a common type family and size.
In a paragraph, of course it separates the sections for easy reading. So, you could specify a p style in the CSS to set the spacing between paragraphs and any styling specific to text placed in a paragraph, such as if you want paragraph text to be blue.
In a paragraph, of course it separates the sections for easy reading. So, you could specify a p style in the CSS to set the spacing between paragraphs and any styling specific to text placed in a paragraph, such as if you want paragraph text to be blue.
Share this topic:
Page 1 of 1
Help

















