想法:缩写HTML [英] Idea: Abbreviated HTML

查看:53
本文介绍了想法:缩写HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很惊讶,还没有人开发出一种HTML变体,

使用缩写标记。也许他们有,我不知道。


HTML非常详细 - 这对它的采用很重要,因为从现有页面阅读来源是最快的之一学习它的方法 -

和描述性的清晰标记是关键。


然而,有一个更简洁的标记系统的论据

很好,一个可以很容易地从常规html转换成

轻松。


优点是双重的:减少打字和减少带宽。


雅虎!例如,仔细检查其高流量

主页中使用的每个字节,并弯曲规则并缩写URL以使页面为

仍可在每个浏览器中解析,但带宽非常非常低。


最近他们在新主页上做了一些重大修改

这进一步降低了带宽。


接近这一点,很少使用的符号可以取代

最常见的标签,这些符号将被编码替换。

此外,可以使用默认扩展。


例如,$ yahoo $可以使用到位

a的完整锚标记 www。*。com 网站,并用一个$关闭。真正的美元符号,即大多数网页上没有出现的b $ b,可以用编码代替。


另一种方法是允许在HTML页面上设置常量:


SET $ l ="< A HREF =" http://www.yahoo.com">

SET $ f = < FONT FACE =" Arial,Helvetica,Sans-Serif" SIZE =" -2">


我猜样式表和Javascript解决了其中一些问题,但是没有

和内置它一样高效。


另一个想法是让空白显着,包括

换行。


最后,作者会不一定需要在AHTML中创作,但是

可以简单地配置web服务器来转换它的方式

out,类似于mod_gzip(我使用并认为是太棒了!)。


无论如何,只是一个想法...

I am surprised that no one has yet developed an HTML variant which
uses abbreviated tagging. Maybe they have, I dunno.

HTML is very verbose - this was important to its adoption, as reading
source from existing pages is one of the fastest ways to learn it -
and descriptive clear tagging is key to that.

However, there is an argument for a more concise tagging system as
well, one which can be very easily converted to and from regular html
easily.

The advantages are twofold: less typing and less bandwidth.

Yahoo!, for example, scrutinizes every byte used in their high-traffic
homepage, and bends rules and abbreviates URLs so that the page is
still parseable in every browser but very, very low bandwidth.

Recently they made some substantial changes in their new homepage
which reduced bandwidth even further.

Approaching this agressively, rarely used symbols could replace the
most common tags, and those symbols would be replaced with encoding.
Also, default expansion could be used.

As an example, $yahoo$ could be used in place of a full anchor tag to
a www.*.com site, and closed with a single $. Real dollar signs, which
dont appear on most web pages, could be replaced with encoding.

Another approach would allow constants to be set on an HTML page:

SET $l="<A HREF="http://www.yahoo.com">
SET $f="<FONT FACE="Arial, Helvetica, Sans-Serif" SIZE="-2">

I guess style sheets and Javascript address some of this, but neither
is as efficient as having it built in.

Another idea would be to make whitespace significant, including
newlines.

Finally, the author would not necessarily need to author in AHTML, but
could instead simply configure the web server to convert it on the way
out, similar to mod_gzip (which I use and think is great!).

Anyways, just an idea...

推荐答案

yahoo


可用于代替完整的锚标签

a www。*。com 网站,并以单个
could be used in place of a full anchor tag to
a www.*.com site, and closed with a single


结束。真正的美元符号,即大多数网页上没有出现的b $ b,可以用编码代替。


另一种方法是允许在HTML页面上设置常量:


SET
. Real dollar signs, which
dont appear on most web pages, could be replaced with encoding.

Another approach would allow constants to be set on an HTML page:

SET


这篇关于想法:缩写HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆