HTML Very simple doubt

Discussion in 'HTML & Website Design' started by hemanthjava, Feb 13, 2007.

  1. #1
    <html>
    <body>
    <h1>hi dude</h1><h2>whats happening</h2>
    </body>
    </html>
    Code (markup):
    How do I have the sentences in the 2 tags H1 and H2 to appear in the same line
     
    hemanthjava, Feb 13, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    You could do
    
    h1, h2 {
        display: inline;
        }
    Code (markup):
    but why would you? It would be an inappropriate use of a main header and a section header.

    cheers,

    gary
     
    kk5st, Feb 13, 2007 IP