Reply to Re: How to create custom XHTML tag?

Your name:

Reply:


Posted by Toby Inkster on 11/22/86 11:47

janecki wrote:

> 2) After creating new tag:
> <window title="TITLE">MESSAGE</window>

XHTML doesn't allow you to create new tags at will. The X (extensibility)
part of XHTML comes from the fact that it's easy the for standards setters
(i.e. browser makers, etc) to create extended versions of XHTML for
particular purposes -- for example, the XHTML+Voice standard for
interactive voice pages (currently only supported by Opera 7.5+ on Windows
2000/XP); and XHTML+MathML+SVG. The X part of XHTML doesn't really help
ordinary folk like you and me to create new elements like the above.

It looks to me like more suitable markup for your example might be:

<div class="window">
<h2>Title</h2>
<div>
Message.
</div>
</div>

you can then use CSS to style that how you like. For example:

.window { border: 2px solid #060; margin: 1em; padding: 0; }
.window H2 { margin: 0; padding: 4px; background: #060; color: white; }
.window DIV { margin: 0; padding: 4px; color: #060; background: white; }

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация