`
java-mans
  • 浏览: 11420404 次
文章分类
社区版块
存档分类
最新评论

什么是HTML5?什么是WPF/Silverlight?

 
阅读更多

W3C(World Wide Web Consortium 的缩写,中文意思是W3C理事会或万维网联盟)在 HTML 5 proposal 中为 HTML 5 赋予了这样的使命,它将弥补上一代 HTML 的不足,具体说,是实现 Flash, Silverlight, JavaFX 所能实现的功能。

HTML5
  HTML5草案的前身名为Web Applications 1.0。於2004年被WHATWG提出,於2007年被W3C接纳,并成立了新的HTML工作团队。在2008年1月22日,第一份正式草案已公布,预计将在2010年9月正式向公众推荐。WHATWG表示该规范是目前正在进行的工作,仍须多年的努力。
  HTML5提供了一些新的元素和属性,例如 <nav>(网站导航块)和 <footer>。这种标签将有利于搜索引擎的索引整理,同时更好的帮助小屏幕装置和视障人士使用,除此之外,还为其他浏览要素提供了新的功能,如 <audio>和 <video>标记。
  一些过时的HTML4标记将被取消。其中包括纯粹显示效果的标记,如 <font>和 <center>,它们已经被CSS取代。
  除了原先的DOM接口,HTML5增加了更多API,如:
  1. 用于即时2D绘图的Canvas标签
  2. 定时媒体回放
  3. 离线数据库存储
  4. 文档编辑
  5. 拖拽控制
  6. 浏览历史管理
与HTML 4的不同之处
  新的解析顺序新的元素:section, video, progress, nav, meter, time, aside, canvasinput元素的新属性:日期和时间,email, url新的通用属性:ping, charset, async全域属性:id, tabindex, repeat移除元素:center, font, strike
  HTML 5有两大特点
  首先,强化了Web网页的表现性能。除了可描绘二维图形外,还准备了用于播放视频和音频的标签。
  其次,追加了本地数据库等Web应用的功能。
  HTML5(text/html)浏览器将在错误语法的处理上更加灵活。HTML5在设计时保证旧的浏览器能够安全的忽略掉新的HTML5代码。与HTML4.01相比,HTML5给出了解析的详细规则,力图让不同的浏览器即时在发生语法错误时也能返回相同的结果。

WPF
WPF的全称是Windows Presentation Foundation,是微软新发布的Vista操作系统的三大核心开发库之一,其主要负责的是图形显示,所以叫Presentation(呈现)。

作为新的图形引擎,WPF是基于DirectX的,当然增加了很多新的功能。其2D和3D引擎的强大看看Vista的界面就明白了,再加上其对Aero图形引擎的支持,更加让你刚到神奇。顺便提一下,Aero是专门为3D桌面开发的引擎,可以让桌面实现神奇的3D翻转,这绝对是操作系统有史以来的一次神奇尝试,虽然对硬件配置的要求也是惊人的,此前已有相关报道称,Vista对显卡十分挑剔就是出于运行Aero的考虑。
XAML
XAML对WPF来说,是一种把.NET程序语言改用XML来描述的方式。换句话说,XAML用在WPF上,像是另外一种程序语言。与C#、VB、 IronPython相似。所以XAML能做的, C# 、 VB一样都可以做到。但是反过来, C#、VB 能做的,XAML不一定能做到。因为XAML是为了配合开发工具,特别设计出来的一种语言,本身有它的局限性,所以还是得配合正规的程序语言,才能完成一个真正有用的程序。但是以目前XAML所具备的能力,不靠C#、VB而做到平常简单Flash效果是可以的。
Silverlight
曾经Silverlight叫WPF/E是WPF跨平台的一个代号。WPF指的是.NET Framework3.0技术的一个新曾技术,在Vista应用中得到了支持,当然也就影响面大了!做为WPF/E为Windows Presentation Foundation/Everywhere,其中Everywhere指的是跨平台意思,使得在每个操作系统中可以运行WPF,所以使用的插件技术。当然,微软的架构师不会把这么不安全的WPF万能核心搬到浏览器插件中,然后就提取(或说重新开发)了一个精简的.NET Runtime Library到了WPF/E中来执行XAML文件!去除了文件操作、Windows API、3D控件、视频加速等等类库方法都在WPF/E中是没有的。在正式版WPF/E 1.0时,正式命名为了Silverlight(银光)。
要说跨平台,需要不受.NET Framework的依赖。微软的架构师不会把这么不安全的.NET万能核心搬到浏览器插件中,然后就提取(或说重新开发)了一个精简的.NET Runtime Library到了WPF/E中来执行XAML文件!去除了文件操作、Windows API、3D控件、视频加速等等都在WPF/E中是没有的,可叫其Silverlight Runtime Libray!所以核心从本质上分开!说其关系道不如说兄弟关系乎?
WPF和Silverlight的区别:
WPF是.NET平台最新的表示层技术框架,它基于 DirectX 和 GDI 技术,是.NET 3.0的一部份,可以独立执行或是透过网络下载执行,内建功能强悍的多媒3D与绘图技术,但需要.NET的资源协同运作。换句话说,它只能在装有.NET 的环境下执行,是一个平台相依的技术。
Silverlight是个类似Flash的多媒体播放器,Silverlight内建了4M的.NET Framework的子集,本身具有运算能力,可以跨平台在各种浏览器上面执行。
一句话概括:WPF是Windows应用程序,而Silverlight是网页中的动画应用。

===================================================================

转帖:http://topic.csdn.net/u/20100114/08/2166C944-6274-4DA7-82CC-B830EFD1C3FF.html

分享到:
评论

相关推荐

    C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial 前38节)

    C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial)目录 本系列教程目录如下: C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(一)让物体动起来① C#开发WPF/Silverlight动画及游戏系列教程...

    WPF/Silverlight超绚统计图控件

    Visifire数据可视化的图表控件—— 支持Silverlight 和 WPF。它可以用于WPF和Silverlight应用程序 visifire图表效果。使用API,可创建移动,Web和桌面应用程序的图表。Visifire 能够作为一个Silverlight App嵌入到...

    WPF-silverlight 多语言解决方案

    WPF-silverlight 多语言解决方案 具体请参考:http://www.cnblogs.com/yinpengxiang/archive/2009/05/04/1449138.html

    visifire for wpf/sl

    visifire图表控件,支持wpf和silverlight Visifire.Charts.dll Visifire.Commons.dll 另,Visifire服务器端技术,能与ASP,ASP Net, SharePoint,PHP, JSP, ColdFusion, Python, Ruby或者HTML一起使用。

    ComponentOne 2012 V2 Studio for Silverlight 2/3

    60+ powerful, yet lightweight, controls offer the latest Web UI trends and take advantage of everything Silverlight 5 has to offer. Silverlight UI Controls with Power and Style Get the controls ...

    ComponentOne Studio for Silverlight 2012 v3 1/3

    These powerful, yet lightweight, controls offer the latest Web UI trends and take advantage of everything Silverlight 5 has to offer from rich media to business application development. What's ...

    ComponentOne Studio for WPF2012 v3 1/3

    Get first-class support for HTML and PDF content in Silverlight with many of the ComponentOne controls. View your PDF documents and HTML reports using the innovative PdfViewer and ReportViewer ...

    ComponentOne Studio for WPF2012 v3 2/3

    Get first-class support for HTML and PDF content in Silverlight with many of the ComponentOne controls. View your PDF documents and HTML reports using the innovative PdfViewer and ReportViewer ...

    ComponentOne Studio for Silverlight 2012 v3 2/3

    These powerful, yet lightweight, controls offer the latest Web UI trends and take advantage of everything Silverlight 5 has to offer from rich media to business application development. What's ...

    Silverlight揭秘.pdf

    如图形、文字、音频、视频、动画和事件等,也讲述了如何使用构建块创建可重用的控件,执行普通的任务(如拖放),并解释了如何下载资源以增强用户体验,说明了如何创建混合使用Silverlight 和HTML/Flash 内容的应用...

    ComponentOne Studio for Silverlight 2013 v1 2/3

    60+ powerful, yet lightweight, controls offer the latest Web UI trends and take advantage of everything Silverlight 5 has to offer. Professional Themes and Simple Styling Professional Themes and...

    ComponentOne 2012 V2 Studio for Silverlight 3/3

    60+ powerful, yet lightweight, controls offer the latest Web UI trends and take advantage of everything Silverlight 5 has to offer. Silverlight UI Controls with Power and Style Get the controls ...

    ComponentOne Studio for Silverlight 2013 v1 3/3

    60+ powerful, yet lightweight, controls offer the latest Web UI trends and take advantage of everything Silverlight 5 has to offer. Professional Themes and Simple Styling Professional Themes and...

    ComponentOne Studio for Silverlight 2012 v3 3/3

    These powerful, yet lightweight, controls offer the latest Web UI trends and take advantage of everything Silverlight 5 has to offer from rich media to business application development. What's ...

    ComponentOne Studio for WPF2012 v3 3/3

    Get first-class support for HTML and PDF content in Silverlight with many of the ComponentOne controls. View your PDF documents and HTML reports using the innovative PdfViewer and ReportViewer ...

    ComponentOne 2012 V2 Studio for Silverlight(完整安装)

    60+ powerful, yet lightweight, controls offer the latest Web UI trends and take advantage of everything Silverlight 5 has to offer. Silverlight UI Controls with Power and Style Get the controls ...

    ComponetOne Studio for WPF 2013 v1 3/3

    Get first-class support for HTML and PDF content in Silverlight with many of the ComponentOne controls. View your PDF documents and HTML reports using the innovative PdfViewer and ReportViewer ...

    ComponetOne Studio for WPF 2013 v1 1/3

    Get first-class support for HTML and PDF content in Silverlight with many of the ComponentOne controls. View your PDF documents and HTML reports using the innovative PdfViewer and ReportViewer ...

    ComponetOne Studio for WPF 2013 v1 2/3

    Get first-class support for HTML and PDF content in Silverlight with many of the ComponentOne controls. View your PDF documents and HTML reports using the innovative PdfViewer and ReportViewer ...

    ComponentOne Studio for Silverlight 2013 v1

    60+ powerful, yet lightweight, controls offer the latest Web UI trends and take advantage of everything Silverlight 5 has to offer. Professional Themes and Simple Styling Professional Themes and...

Global site tag (gtag.js) - Google Analytics