1. Home
  2. Computing & Technology
  3. Web Design / HTML

boolean

By Jennifer Kyrnin, About.com

Definition: A boolean attribute in XHTML is an attribute that is either on or off. If the attribute is present, it takes effect, otherwise it does not. In valid XHTML, all attributes must have a value, so boolean attributes are written boolean="boolean". For example <option value="test" selected="selected">test</option>
Pronunciation: bu lee an - (adjective)
Examples: In the option tag, selected is a boolean attribute:
<option value="test" selected="selected">test</option>

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. XHTML Glossary
  7. boolean

©2008 About.com, a part of The New York Times Company.

All rights reserved.