W3C home > Mailing lists > Public > www-html@w3.org > April 1998

ALIAS tag?

From: David Suarez de Lis <akira@fantasia.usc.es>
Date: Fri, 24 Apr 1998 13:38:13 +0200 (CEST)
To: W3C HTML Mailing List <www-html@w3.org>
Message-ID: <Pine.LNX.3.96.980424132708.1737B-100000@fantasia.usc.es>
Hi all,

I have been thinking that many of the new tags we could add to the HTML4
DTD can be managed by using class and/or rel attributes which most tags
now support.

I think it would be nice an ALIAS tag which would allow us to simplify
writing and which UA's would expand on the fly when display the documents.

One of its many implementations could be

<alias name="Juan" content="div class='juan'">

The use on the document would be:

<html><head>
<title>Theater play...</title>
<alias name="Juan" content="div class='Juan'" lang="es">
<alias name="Pedro" content="div class='Pedro'" lang="es">

<style type="text/css">
        body { background: white; }
	Juan { font-style: italic; color: green; }
        Pedro { font-style: normal; color: blue; }
        ...
</style>

<body lang="en">

<h1>Act 1</h1>

<Juan>Hey, <span lang="es">Pedro</span>, how you doing?</Juan>

<Pedro>Doing fine, thanks. What about you, <span
lang="es">Juan</span>?</Pedro>

...
</body>
</html>


Obviously all </Alias-name> would be equivalent to </div>

This method could provide powerful structural markup to HTML documents
without the need of modifying the DTD, also allowing full use of Style
Sheets instead of hardwired style markup. 


Well, just my thoughts,
David@

--
<sig><who>David Su&aacute;rez de Lis
<url>mailto:akira@fantasia.usc.es
<where>University of Santiago de Compostela, SPAIN, EU
</sig>
Received on Friday, 24 April 1998 05:36:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:36 GMT