This discussion is archived
1 Reply Latest reply: Nov 30, 2012 12:36 PM by fac586 RSS

Format for HTML Table Cell Attributes

Howard (... in Training) Pro
Currently Being Moderated
What is the format for multiple HTML Table Cell Attributes? Is that possible?

The default is the single attribute
nowrap="nowrap"
Suppose you also have some style attributes like:
style="font-family:Arial; color:#FFFFFF; font-size:22px; font-weight:bold;"
Now, I suppose "nowrap" could be incorporated in the style. In that case, how would one code two attributes which cannot be combined?

Does someone have an example?

Kind regards,
Howard
  • 1. Re: Format for HTML Table Cell Attributes
    fac586 Guru
    Currently Being Moderated
    Howard (DBA in Training) wrote:
    What is the format for multiple HTML Table Cell Attributes? Is that possible?
    It's covered in the HTML specification: http://developers.whatwg.org/introduction.html#a-quick-introduction-to-html
    The default is the single attribute
    nowrap="nowrap"
    Suppose you also have some style attributes like:
    style="font-family:Arial; color:#FFFFFF; font-size:22px; font-weight:bold;"
    Now, I suppose "nowrap" could be incorporated in the style.
    is obsolete<tt>nowrap</tt> is obsolete and should indeed be implemented using CSS:
    style="font-family:Arial; color:#FFFFFF; font-size:22px; font-weight:bold; white-space: nowrap;"
    In that case, how would one code two attributes which cannot be combined?

    Does someone have an example?
    class="foo bar" id="baz" style="font-family:Arial; color:#FFFFFF; font-size:22px; font-weight:bold;"

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points