Web Design Forum: <p> and <body>..are they the same? - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

<p> and <body>..are they the same?

#1 User is offline   leaaa 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 58
  • Joined: 14-March 09
  • Reputation: 0
  • Experience:Nothing
  • Area of Expertise:Designer

Posted 13 April 2009 - 05:04 PM

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
0

#2 User is offline   caraewilton 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 367
  • Joined: 24-October 08
  • Reputation: 0
  • Location:South Africa
  • Experience:Beginner
  • Area of Expertise:I'm Learning

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 {}
0

#3 User is offline   Meow 

  • Advanced Member
  • PipPipPip
  • View gallery
  • Group: Members
  • Posts: 476
  • Joined: 06-April 09
  • Reputation: 12
  • Gender:Female
  • Location:Rugby
  • Experience:Intermediate
  • Area of Expertise:Designer

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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users