Skip navigation.

So Easy[@]Opera

原来如此简单

Posts tagged with "html"

由<strong>的限制说XHTML</strong>

, ,

今天发现有一个Tag,即[b]有一定的限制
不过这个范围大小是多少呢?
咱们来做一个试验

We have received your registration for participating in our Market Research Surveys.
We are inviting participants to fill out the following surveys and offers.
Please follow the link to fill out these registrations.

As a participant, you will be paid 41 for full completed Surveys and Offers in your PandaResearch account.

Video Professor Survey : Get $23 to complete Surveys & Offer
http://www.pandaresearch.com/cp/cpOffers.jsp?offerid=11&pandaresearchsid=1381661&s=p&emailID=108
______________________________________________________

Hydroderm : Request a free sample of Hydroderm and Earn $15
http://www.pandaresearch.com/cp/cpOffers.jsp?offerid=107&pandaresearchsid=1381661&s=p&emailID=108
______________________________________________________

Toys R US $500 Gift Card : Enter Your Email & Complete Survey.. $1
http://www.pandaresearch.com/cp/cpOffers.jsp?offerid=233&pandaresearchsid=1381661&s=p&emailID=108
______________________________________________________

College Information Direct : College Information... $2
http://www.pandaresearch.com/cp/cpOffers.jsp?offerid=295&pandaresearchsid=1381661&s=p&emailID=108
______________________________________________________


看上去不是针对内容或内容长度做的限制
再来看看这个

Sponsors: Brinkster | PayPopup | FriendFinder | PandaResearch | We have received your registration for participating in our Market Research Surveys.
We are inviting participants to fill out the following surveys and offers.
Please follow the link to fill out these registrations.

看到差别了吗?
第二个例子中,当<b>到达PandaResearch的时候就停止运作了

在来看看这段出问题的地方的代码
<A HREF="http://friendfinder.com/go/g782284-pmem"> FriendFinder</a>

看到什么了吧,
一个是由"A"开始;一个则是由"/a"结尾
这个就是问题所在

由此可见Opera的Page使用的是XHTML技术
一个XML+HTML的网页技术
对Tag的大小写,引号,Tags的完整封闭性,
还有其他细节都很敏感的一种新的网页写法

其实炎更喜欢自由的HTML写作方法
不过XHTML有一个优点就是方便管理维护资料
Feed/RSS都是使用XML技术的,就是因为XML的严格标准性质

如果某人的Feed有Ping的问题
八成是那个人的Page上面的代码有问题
MSN Space的Entry就是用HTML来完成的
所以容易被Hack,框架也是,一不小心就散掉

空标签缩写问题

,

类似这样

<p></p> <noscript></noscript>

内容为空的标签能否缩写成下面这样呢?
<p /> <noscript /> 

Read More ...
http://blog.guoshuang.com/showlog.asp?log_id=3950

HTML Attribute: Title

, ,

这里要讨论的不是那个<Title>标题</Title>
而是作为属性的这个<Tag title="">中的Title

Code:
 <span title="HelloWorld!">把鼠标移动到这里</span>

效果:
把鼠标移动到这里

它不仅仅是配合Span使用
还可以配合<a>,<div>,<img>...
只要是Block类型的Element,它都能塞进去

FCK Editor

, ,



相当不错的即时HTML编辑器
要比MSN Space上的好多了
就是功能太多,可能没有多少人用得上吧
不过如果是我的话,嘻嘻...

总之炎很喜欢这款编辑器
什么时候稍微整理一下,弄一个标准在线版本的Editor
上面的Demo中的窗口稍微小了点

点击这里进入查看Demo

Span与Div的区别

, ,

这个是Span效果
hello
代码 Code
<span style="background-color=lightblue">hello</span>
这个则是Div效果
hello
代码 Code
<div style="background-color=lightblue">hello</div>
Over
November 2009
S M T W T F S
October 2009December 2009
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30