#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Location
    IN
    Posts
    11
    Rep Power
    0

    How to set h1 in menu?


    Hello,

    one of my client is looking for h1 in menu?

    i did try for that...

    <select id="menu">
    <option value="1"><h1>one</h1></option>
    <option value="2"><h1>two</h1></option>
    <option value="3"><h1>three</h1></option>
    </select>

    kindly guide me for that...
    thanks a lot
  2. #2
  3. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,131
    Rep Power
    4304
    That's not possible. Only text is allowed inside <option> elements.

    Is your client wanting to do that for SEO reasons? Or does your client just want to increase the font-size of the options?
    Spreading knowledge, one newbie at a time.

    Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Location
    London
    Posts
    21
    Rep Power
    0
    That isn't actually possible, it won't work how ever you try.

    Although, if your just trying to increase the size of the font or change the color - just give the menu class a style! Don't ever use a H tag for the size of font .

    Cheers,
    Sam

    Comments on this post

    • Kravvitz agrees
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2012
    Posts
    9
    Rep Power
    0

    Question


    <ul><li><h1>one</h1></li></ul>

IMN logo majestic logo threadwatch logo seochat tools logo