What's this STYLE Tag doin' ?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: What's this STYLE Tag doin' ?

  1. #1
    Setya Guest

    What's this STYLE Tag doin' ?


    Hi all,
    I'm a newbie in web development. I've got some samples of HTML pages.
    However, in one of those samples I've found the following tag in the HEAD
    section :

    <style fprolloverstyle>
    A:hover {color: #FF0000; text-decoration: underline; font-weight: bold}
    </style>

    Could anyone tell me what's above tag doing ? It doesn't seem to have any
    effect on the page at all (I've tried to remove it and it doesn't make any
    difference on the page appearance).Please feel free to also send your answer
    to my personal e-mail address.

    Thanks in advance

    Setya


  2. #2
    Russell Jones Guest

    Re: What's this STYLE Tag doin' ?

    The style tag causes links to turn red and become underlined when you hover
    over them with the mouse. Add a link (an anchor tag) to your HTML to see
    this in action. For example: <a href="somefile.htm">This is a link</a>.

    "Setya" <jsetya@yahoo.com> wrote in message news:3bc92dd5$1@news.devx.com...
    >
    > Hi all,
    > I'm a newbie in web development. I've got some samples of HTML pages.
    > However, in one of those samples I've found the following tag in the HEAD
    > section :
    >
    > <style fprolloverstyle>
    > A:hover {color: #FF0000; text-decoration: underline; font-weight: bold}
    > </style>
    >
    > Could anyone tell me what's above tag doing ? It doesn't seem to have any
    > effect on the page at all (I've tried to remove it and it doesn't make any
    > difference on the page appearance).Please feel free to also send your

    answer
    > to my personal e-mail address.
    >
    > Thanks in advance
    >
    > Setya
    >




  3. #3
    Setya Guest

    Re: What's this STYLE Tag doin' ?


    "Russell Jones" <arj1@northstate.net> wrote:
    >The style tag causes links to turn red and become underlined when you hover
    >over them with the mouse. Add a link (an anchor tag) to your HTML to see
    >this in action. For example: <a href="somefile.htm">This is a link</a>.
    >
    >"Setya" <jsetya@yahoo.com> wrote in message news:3bc92dd5$1@news.devx.com...
    >>
    >> Hi all,
    >> I'm a newbie in web development. I've got some samples of HTML pages.
    >> However, in one of those samples I've found the following tag in the HEAD
    >> section :
    >>
    >> <style fprolloverstyle>
    >> A:hover {color: #FF0000; text-decoration: underline; font-weight: bold}
    >> </style>
    >>
    >> Could anyone tell me what's above tag doing ? It doesn't seem to have

    any
    >> effect on the page at all (I've tried to remove it and it doesn't make

    any
    >> difference on the page appearance).Please feel free to also send your

    >answer
    >> to my personal e-mail address.
    >>
    >> Thanks in advance
    >>
    >> Setya
    >>

    Thanks Mr. Russell
    Now that makes sense, but what 'bout the 'fprolloverstyle' part ? Is
    this an attribute ? the syntax doesn't seem so. Could you also recommend
    me a complete documentation on how to use the "A:hover {color: #FF0000; text-decoration:
    underline; font-weight: bold}" part ?


  4. #4
    Russell Jones Guest

    Re: What's this STYLE Tag doin' ?

    My guess is that it's something generated by FrontPage, based on the "fp" at
    the beginning of the attribute. Browsers simply ignore attributes that they
    don't "understand", which is convenient when you want to do something such
    as identify a tag type based on a custom attribute or store information in a
    tag. IE has a concept called "expandos" which are exactly what you're
    seeing--custom attributes added to a tag. Search for "expando property" if
    you want to know more.
    For example, if you had some custom code that inserted HTML into a page, and
    you wanted to be able to hide all the elements that your code inserted, you
    could add an expando to your tags that you could later search for with
    script. That way, you could interact with only *your* added tags without
    affecting any content that was already on the page.

    "Setya" <jsetya@yahoo.com> wrote in message news:3bc9444b$1@news.devx.com...
    >
    > "Russell Jones" <arj1@northstate.net> wrote:
    > >The style tag causes links to turn red and become underlined when you

    hover
    > >over them with the mouse. Add a link (an anchor tag) to your HTML to see
    > >this in action. For example: <a href="somefile.htm">This is a link</a>.
    > >
    > >"Setya" <jsetya@yahoo.com> wrote in message

    news:3bc92dd5$1@news.devx.com...
    > >>
    > >> Hi all,
    > >> I'm a newbie in web development. I've got some samples of HTML

    pages.
    > >> However, in one of those samples I've found the following tag in the

    HEAD
    > >> section :
    > >>
    > >> <style fprolloverstyle>
    > >> A:hover {color: #FF0000; text-decoration: underline; font-weight: bold}
    > >> </style>
    > >>
    > >> Could anyone tell me what's above tag doing ? It doesn't seem to have

    > any
    > >> effect on the page at all (I've tried to remove it and it doesn't make

    > any
    > >> difference on the page appearance).Please feel free to also send your

    > >answer
    > >> to my personal e-mail address.
    > >>
    > >> Thanks in advance
    > >>
    > >> Setya
    > >>

    > Thanks Mr. Russell
    > Now that makes sense, but what 'bout the 'fprolloverstyle' part ? Is
    > this an attribute ? the syntax doesn't seem so. Could you also recommend
    > me a complete documentation on how to use the "A:hover {color: #FF0000;

    text-decoration:
    > underline; font-weight: bold}" part ?
    >




  5. #5
    Jon Crosse Guest

    Re: What's this STYLE Tag doin' ?


    <STYLE> tags are related to CSS (Casscading Style Sheets)
    For more info on them go to:

    http://www.projectcool.com/developer/cssref/index.html

    _________________________
    Jon Crosse


    "Setya" <jsetya@yahoo.com> wrote:
    >
    >"Russell Jones" <arj1@northstate.net> wrote:
    >>The style tag causes links to turn red and become underlined when you hover
    >>over them with the mouse. Add a link (an anchor tag) to your HTML to see
    >>this in action. For example: <a href="somefile.htm">This is a link</a>.
    >>
    >>"Setya" <jsetya@yahoo.com> wrote in message news:3bc92dd5$1@news.devx.com...
    >>>
    >>> Hi all,
    >>> I'm a newbie in web development. I've got some samples of HTML pages.
    >>> However, in one of those samples I've found the following tag in the

    HEAD
    >>> section :
    >>>
    >>> <style fprolloverstyle>
    >>> A:hover {color: #FF0000; text-decoration: underline; font-weight: bold}
    >>> </style>
    >>>
    >>> Could anyone tell me what's above tag doing ? It doesn't seem to have

    >any
    >>> effect on the page at all (I've tried to remove it and it doesn't make

    >any
    >>> difference on the page appearance).Please feel free to also send your

    >>answer
    >>> to my personal e-mail address.
    >>>
    >>> Thanks in advance
    >>>
    >>> Setya
    >>>

    >Thanks Mr. Russell
    > Now that makes sense, but what 'bout the 'fprolloverstyle' part ? Is
    >this an attribute ? the syntax doesn't seem so. Could you also recommend
    >me a complete documentation on how to use the "A:hover {color: #FF0000;

    text-decoration:
    >underline; font-weight: bold}" part ?
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center