Key Difference – HTML vsSGML
有多种用于网络开发的技术,例如CSS,JavaScript,PHPetc. Among all these, the base language for web development is HTML. It is a markup language that consists of tags. There are specific tags for each task. HTML can be used to change the structure of the web page. Adding paragraphs, changing headings, adding lists and tables are some tasks that can be performed using HTML. There are several versions of HTML. The latest version isHTML5。It has many additional features to build effective web applications。HTML is the standard markup language for creating web pages and web applications. SGML is a standard for defining generalized markup languages for documents。那就是key differencebetween HTML and SGML. HTML is based on SGML. This article discusses the difference between HTML and SGML.
内容
1.Overview and Key Difference
2.What is HTML
3.What is SGML
4.HTML和SGML之间的关系
5.并排比较 - html vs sgml以表格形式
6。概括
What is HTML?
HTML stands for Hyper Text Markup Language. Most web pages are connected together. A link to another web page is called a Hypertext. HTML contains tags that instruct the web browser on how to create the structure of the page. The headings, paragraphs, lists, tables come under web page structure.
每个HTML文件都有顶部的文档类型声明。它告诉浏览器文档中使用的HTML版本。网页的详细信息在
部分中。在网页中显示的内容在部分内。有很多标签可以执行各种任务。,等用于创建标题。
标签用于分开段落。大多数标签具有相应的起始标签和关闭标签。例如,
。 There are formatting tags as well. The is used to bold the text. The tag is used to underline the text. The tag is used to make the content italic. Some tags contain the starting and ending tags itself. Theis used to create a horizontal line in the page. If the programmer only writes
without the slash, it still works. But it will not work with more precise XHTML. Those are some common HTML tags.
在Web浏览器中打开上述HTML页面时,如下所示。
根据上述HTML文件,文档声明位于顶部。它指定HTML文档使用HTML5。头部和主体部分包含在启动标签中,并关闭标签。网页的详细信息包含在“头部”部分中。要显示的内容在身体部分中。
标签定义了标题。用于凸起特定的文本。页面中有两个段落。
HTML可以与其他技术结合使用。当它与CSS结合使用时,网页看起来更可观。与JavaScript连接使网页更加互动。它是用于创建网页的最常见的标记语言。
什么是SGML?
SGMLstands for Standard Generalized Markup Language. It is a standard for defining markup languages. HTML is based on SGML. It is not in itself a document language. It is a description of how to specify the document. Therefore, it is a metadata. SGML was originally designed to share machine readable large projects in government and other industries. An SGML document consists of three sections. There is a declaration. The prologue contains the DOCTYPE declaration with other markup declarations. Then the instance itself. It contains one top most element and its content.
Main advantages of SGML are it can be created by considering the document structure than thinking about the appearance characteristics. They will be more portable because an SGML compiler can interpret any document by reference to its document type definition (DTD). Documents originally intended for the print medium can easily be re-adapted for other media, such as the computer display screen.
SGML是指定数字文档类型和内容的描述的国际标准。SGML的一个缺点是它不支持样式表。由于SGML的强大设置,该软件变得未开发。除此之外,数据互换在SGML中也很复杂。
What is the Relationship Between HTML and SGML?
- HTML基于SGML。
What is the Difference Between HTML and SGML?
html vs sgml |
|
HTML is the standard markup language for creating web pages and web applications. | SGMLis a standard for defining generalized markup languages for documents. |
Stands For | |
HTML代表超文本标记语言。 | SGMLstands for Standard Generalized Markup Language. |
概括–HTML vsSGML
Every organization nowadays maintain web pages. There are various technologies used for web applications. This article discussed the difference between HTML and SGML. HTML is the standard markup language for creating web pages and web applications. SGML is a standard for defining generalized markup languages for documents. That is the difference between HTML and SGML. HTML is based on SGML.
Reference:
1.“What Is SGML (Standard Generalized Markup Language)? – Definition from WhatIs.com.” SearchMicroservices.Available here
2.“Standard Generalized Markup Language.” Wikipedia, Wikimedia Foundation, 18 Mar. 2018.Available here
3.“HTML Overview.” ,Tutorials Point, 8 Jan. 2018.Available here
Image Courtesy:
1.’SGML’ By Dreftymac at English Wikipedia – SGML.svg,(CC BY-SA 2.5)viaCommons Wikimedia
发表评论