Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 04-10-2005, 01:43 PM <br> tag or <p> tag
Junior Talker

Posts: 1
Trades: 0
Hello;

I'm curious, should I break with a <p> tag or use the <br> tag for coding? Some say that the <p> tag is become deprecated? Dreamweaver is my program choice. All advice is appreciated. Thanks.

Ron
Bartainer is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-10-2005, 07:09 PM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
<p> on it's own works, but it's technicly invalid. For a line break you should use <br> (<br /> for XHTML) For a change of paragraph enclose each paragraph in <p></p> tags.

The reason is that <p> is Paragraph, therefore it should be

HTML Code:
<p>This is a paragraph</p>
<p>This is another paragraph</p>
It's basically to section off the paragraphs. <br /> is a line break.

HTML Code:
This is one line<br />This will be rendered on the next line down
In case you're wondering about the / in the <br /> tag:
Valid XHTML is based on XML. XML requires everything to have an opening tag <tag> and a closing tag </tag>. Some tags can be written shorthand - mainly tags where it wouldn't make sense to have something in it... like <br /> is a line break - it wouldn't make sence to have something 'in' a line break, so you shorten <br></br> to just <br />
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 04-10-2005, 08:57 PM
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
I agree with Minaki. I was just reading an article about this. It said you are not supposed to use the paragraph tag for a line break. You are supposed to use the <br> tag.
angele803 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to <br> tag or <p> tag
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14570 seconds with 12 queries