SuperBlue Posted May 22, 2007 Share Posted May 22, 2007 Maybe question is rather simble, but lately while working on my new website i got in doubt about how to present text in my documents. Well, the way i've done it in the past was by simply enclose the text in either divs or spans, the validator dosent come up with errors this way. However if i read in Guides on html they allways use the P tag. Why is that exactly?, and if that is indeed the correct way, how could i change the default behavior so the text dosent break more then one line, or dosent at all? The way i've done it in the past, dosent "feel right", also when im beautifying my code it dosent look right simply to have text not enclosed by other tags then the div itself, and it dosent "feel right", becourse i use spaces to beautify with, and the text itself contains spaces... So clearly theres somthing i've missed :-\ anyway i've tryed a few times to find an explanation on this, but dident find any on google. Quote Link to comment https://forums.phpfreaks.com/topic/52412-rules-for-text-in-html/ Share on other sites More sharing options...
AndyB Posted May 22, 2007 Share Posted May 22, 2007 Semantics - if the text is a paragraph, enclose it in paragraph tags. As for 'beautification', I assume that's using spaces or tabs outside tags so your code appears logically indented. Quote Link to comment https://forums.phpfreaks.com/topic/52412-rules-for-text-in-html/#findComment-258659 Share on other sites More sharing options...
ToonMariner Posted May 22, 2007 Share Posted May 22, 2007 on screen appearance should be controlled by css if you use a standards compliant method. as Andy says semantics is the answer... If you 'beautification' relates to the on-screen rendering then instead of spaces you should apply padding or margin to your link... Quote Link to comment https://forums.phpfreaks.com/topic/52412-rules-for-text-in-html/#findComment-258809 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.