北漂IT民工 的博客

W3C对HTML & CSS的解释

HTML和CSS是两个网页制作的核心技术。对于各种不同的设备,HTML给出的是页面的结构,而CSS给出的是布局。HTML和CSS再加上图片和脚本组成了网页制作与网站应用的基础。以下将进一步的说明:


什么是HTML?



HTML是用于描述页面结构的语言。HTML给网页制作者以下几个功能:



  • 发现包括标题,文本,表格,列表,照片等在内的在线的文档。

  • 通过超链接或者按钮的点击得到在线的信息。

  • 设计表单用于引导远程服务上的事务,比如用于搜索信息,预订服务,订购产品等。

  • 将电子表格,视频片段,声音片段和其它应用直接放在他们的文档里。




使用HTML,网页制作者用标记来描述页面的结构。多种语言元素用来标记内容里的多个部分,象段落,列表,表格等。


什么是XHTML



XHTML是HTML的一个变体,它使用了XML的语法。XHTML包含所有的HTML元素,但是语法有一点不同。由于XHTML是一个XML应用,你可以对它使用其它的XML工具。


什么是CSS?



CSS是用于描述网页展现的语言,包括颜色,布局,字体。它允许调节不同类型设备上的展现,比如大屏幕,小屏幕或者打印机。CSS是独立于HTML的,它还可以用于任何的基于XML的标记语言。HTML和CSS的分离让网站的维护,页面风格表的分享,和不同环境下页面的裁剪变的更加容易。这点经常被称为结构(内容)与展现的分离。


什么是WebFonts?



WebFonts是一种在网络上根据需要使用字体的技术,它并不需要操作系统安装该字体。W3C具有通过HTML,CSS2和SVG使用可下载字体的经验。由于缺少互操作的字体格式,到目前为止,可下载字体还没有在网页上普遍使用。WebFonts的计划表达了通过创建一个工业支持的网页开放字体格式努力。


原文:


HTML (the Hypertext Markup Language) and CSS (Cascading Style Sheets) are two of the core technologies for building Web pages. HTML provides the structure of the page, CSS the (visual and aural) layout, for a variety of devices. Along with graphics and scripting, HTML and CSS are the basis of building Web pages and Web Applications. Learn more below about:


What is HTML?



HTML is the language for describing the structure of Web pages. HTML gives authors the means to:



  • Publish online documents with headings, text, tables, lists, photos, etc.

  • Retrieve online information via hypertext links, at the click of a button.

  • Design forms for conducting transactions with remote services, for use in searching for information, making reservations, ordering products, etc.

  • Include spread-sheets, video clips, sound clips, and other applications directly in their documents.




With HTML, authors describe the structure of pages using markup. The elements of the language label pieces of content such as “paragraph,” “list,” “table,” and so on.


What is XHTML?



XHTML is a variant of HTML that uses the syntax of XML, the Extensible Markup Language. XHTML has all the same elements (for paragraphs, etc.) as the HTML variant, but the syntax is slightly different. Because XHTML is an XML application, you can use other XML tools with it (such as XSLT, a language for transforming XML content).


What is CSS?



CSS is the language for describing the presentation of Web pages, including colors, layout, and fonts. It allows to adapt the presentation to different types of devices, such as large screens, small screens, or printers. CSS is independent of HTML and can be used with any XML-based markup language. The separation of HTML from CSS makes it easier to maintain sites, share style sheets across pages, and tailor pages to different environments. This is referred to as the separation of structure (or: content) from presentation.


What is WebFonts?



WebFonts is a technology use fonts on demand over the Web without requiring installation in the operating system. W3C has experience in downloadable fonts through HTML, CSS2, and SVG. Until recently, downloadable fonts have not been common on the Web due to the lack of an interoperable font format. The WebFonts effort plans to address that through the creation of an industry-supported, open font format for the Web (called “WOFF”).