Tags Organization

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shapper

    Tags Organization

    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

  • Els

    #2
    Re: Tags Organization

    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?




    --
    Els http://locusmeus.com/
    accessible web design: http://locusoptimus.com/

    Comment

    • Andy Dingley

      #3
      Re: Tags Organization

      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)


      Some explanation has been posted in the past




      Comment

      Working...