Topic: Somebody give example?

Somebody give example for this questions..

What is the relationship between SGML,HTML , XML and HTML?

Re: Somebody give example?

XML , markup languages such as standard Generalized Markup Language(SGML) and Hypertext Markup Language(HTML) are also available.

SGML allows documents to describe their grammar by specifying the tag set used in the document and the structural relationship that these tags represent. This makes it possible to define individual formats for documents, handle large and complex documents, and manage large information repositories. However, SGML is complex and difficult for developers to master.
eg :



HTML enables you to create documents and Web pages that can be read by all web browsers . It uses a set of tags in conformance with the SGML specification.

XML is a subset of SGML. It is designed to ease data exchange over the Internet.  Though HTML and XML are markup languages, they have different purposes. HTML is used for data presentation, whereas XML is used for data description and definition.

In short SGML is the parent of every one. Older HTML utilizes SGML and HTML 4.0 uses XHTML which derived from XML. (more...)

3 (edited by samanthacramer 2019-07-08 11:20:31)

Re: Somebody give example?

They are both markup languages. XML, in and of itself, is rather useless, it's a rough description of what should be in a markup language and requires the user (in most cases, programmers) to define their own language as a child-language of XML. XML is the framework which can then be built upon to do whatever it is you need to do. In fact, HTML, in some sense, is a type of XML.