| You are here: | About>Computing & Technology>Web Design / HTML> HTML and XHTML> XHTML> Form vs. Function |
![]() | Web Design / HTML |
More Markup HelpXML and XHTML HelpForm vs. Function - XML-like HTML TagsXML-like HTML TagsWhen writing XML and XHTML the markup language should not define how the resulting document will look. The markup language is in the document to define the content. Defining Content - What Does That Mean?Content is more than just text on a page. Most content has a function of some type. On HTML pages, the function of most text is as paragraphs within a larger document. However, for XML documents, there might be more specific functions. For example, an address book written in XML would have tags to define the various parts of the address. Such as: <address> The tags used in the address book:
are not HTML tags. They do nothing to the text other than describe the function of the content. I could use this XML document in many different places, I would just need to provide the style information so that I could print the address, display it on a Web page, or add it to my personal address book. Functional HTML TagsHTML is moving closer to XML. Tags that define the form or style of the HTML document are, in many cases, deprecated in favor of style sheets (CSS). But there are many tags already in HTML that serve in a more functional fashion than form.
More Markup HelpXML and XHTML Help |
Las Vegas on a BudgetFind a BargainHotel DealsCheap EatsFree AttractionsEntertainment for Less |
All Topics | Email Article | | | ![]() |
| Advertising Info | News & Events | Work at About | SiteMap | Reprints | Help | Our Story | Be a Guide |
| User Agreement | Ethics Policy | Patent Info. | Privacy Policy | ©2008 About, Inc., A part of The New York Times Company. All rights reserved. |


