Results 1 to 7 of 7
  1. #1
    Silver Lounger Bruce K's Avatar
    Join Date
    Apr 2002
    Location
    Phoenix, Arizona, USA
    Posts
    1,876
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Attribute definition

    <pre><html>
    <head>
    <title id="ridTitle">Citrus Punch</title>
    <style>

    </style>
    </head>
    <body id="ridBody" background="Citrus Punch Bkgrd.gif">
    <center><img id="ridImg" src=citbannA.gif align=bottom></center>

    <SPAN id="_AthCaret"></SPAN>

    </body>
    </html> </pre>

    In the above HTML, what do the following attributes mean:<UL><LI>id="ridTitle"<LI>id="ridBody"<LI>id=" ridImg"[/list]And this tag/attribute combo I cannot determine whatsoever:<UL><LI><SPAN id="_AthCaret"></SPAN>[/list]

  2. #2
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Attribute definition

    ID's are just unique identifiers in a document (web page) that will let you specify as Style class for. It's kind of like the Class attribute.

    Have a look at this example.

    <pre><HEAD>
    <TITLE>Match P</TITLE>
    <STYLE type="text/css">
    *#z98y { letter-spacing: 0.3em }
    </STYLE>
    </HEAD>
    <BODY>
    <P id=z98y>Wide text</P>
    </BODY></pre>


    The id is z98y which specifies a 0.3 em letter spacing for the paragraph.

    Here is the W3C's CSS2 definition of the id selector or the CSS1 defintion.
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

  3. #3
    Silver Lounger Bruce K's Avatar
    Join Date
    Apr 2002
    Location
    Phoenix, Arizona, USA
    Posts
    1,876
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Attribute definition

    Hi, Bryan ~

    I referenced the W3 before posting but that did not clarify what these attributes mean or trigger. Trying to determine the 'rid' prefix purpose and what the span attribute/tag combo accomplish since this is all there is to the code. Only one background image and one image. These attributes if removed, render the page useless in OE.

  4. #4
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Attribute definition

    From what I can gather from W3C, it doesn't mean anything. You could have ID names like Joe, Fred, Bruce, Woody, etc. Just so long as they are unique within the document.

    just looking at the HTML code, the rid prefixes don't do anything by themselves, nor does the span tag, since it's empty.

    Now, OE may just use these specific prefixes to mean something to itself internally, but as plain HTML code it shouldn't matter what they are called.
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

  5. #5
    Silver Lounger Bruce K's Avatar
    Join Date
    Apr 2002
    Location
    Phoenix, Arizona, USA
    Posts
    1,876
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Attribute definition

    Hi, Bryan ~

    Would it be fair to postulate then that the id attributes are somehow read internally by OE and thus execute some sort of action or exercise control?

  6. #6
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Attribute definition

    Anything like that would just be a WAG on my part since I don't use OE.

    But if it doesn't work without the ids or the span, then it is reasonable to assume that OE somehow uses the ids internally.

    But lIke I said, that's just a Wild A** Guess on my part.
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

  7. #7
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Attribute definition

    One other reason for adding an ID to a tag is to manipulate that element using JavaScript. To be W3C standards compliant, it is more appropriate to use an ID than a NAME attribute to, er, name your elements.

    As for the naming convention, I have no idea. To each his own.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •