By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,396 Members | 1,835 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,396 IT Pros & Developers. It's quick & easy.

Tags Organization

P: n/a
Hello,

Can I have <h1>, <pand <spantags inside a <ptag?

What should be the best tag to encapsulate all other tags? <div>?
What are the limitations of using <pand <spanin this?

Where can I find some information on this?

Thanks,
Miguel

Mar 30 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Els
shapper wrote:
Can I have <h1>, <pand <spantags inside a <ptag?
<span>: yes. <h1and <p>: no.
What should be the best tag to encapsulate all other tags? <div>?
Depends why you want to do that. <bodyis really all you need, but if
you need more divisions, than <divis good, yes.
What are the limitations of using <pand <spanin this?
<pis the element you use for a paragraph, and <spanis what you use
if you want to apply some style rules for no particular important
reason to a portion of text inside a paragraph. If you'd want to make
some text bold, think about the reason - do you want to emphasize it?
Use <em>.
Where can I find some information on this?
http://www.w3.org/MarkUp/Guide/

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/
Mar 30 '07 #2

P: n/a
On 30 Mar, 16:42, "shapper" <mdmo...@gmail.comwrote:
Can I have <h1>, <pand <spantags inside a <ptag?
No. You can have <spanin there, but not the others. You could put
all three inside a <div>
What should be the best tag to encapsulate all other tags? <div>?
Yes, but I start to get worried making recommendations like this
blindly, without seeing what you're trying to achieve!
What are the limitations of using <pand <spanin this?

Where can I find some information on this?
It's not easy to find information on this. Most authoring guides
ignore it, or get it wrong.
It's often discussed in here though - search for "block" and "inline"

The definition is from the HTML DTD (which is hard to read at first)
http://www.w3.org/TR/REC-html40/sgml/dtd.html

Some explanation has been posted in the past
http://groups.google.co.uk/group/com...d232d58d400ff1

http://groups.google.co.uk/group/alt...a65f912f6e8458

Mar 30 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.