DevOps
Top 19 Ansible Interview Questions and Answers
Download PDF 1) What Is Ansible? Ansible is a configuration management system. It is used to set...
XML is a markup language which is designed to store data. It's popularly used or transfer of data. It is case sensitive. XML offers you to define markup elements and generate customized markup language. The basic unit in the XML is known as an element. Extension of XML file is .xml
In this tutorial you will learn
HTML is the markup language which helps you to create and design web content. It has a variety of tag and attributes for defining the layout and structure of the web document. It is designed to display data in a formatted manner. A HTML document has the extension .htm or .html.
You can edit HTML code is any basic code editor, even notepad. The edited code can be executed in any browser. Browsers render the tags used and present the content you want to display with or without applied formatting.
<?xml version="1.0>
<address>
<name> Krishna Rungta</name>
<contact>9898613050</contact>
<email>This email address is being protected from spambots. You need JavaScript enabled to view it. </email>
<birthdate>1985-09-27</birthdate>
</address>
<!DOCTYPE html> <html> <head> <title> Page title </title> </head> <body> <hl> First Heading</hl> <p> First paragraph.</p> </body> </html>
Parameter | XML | HTML |
Type of language | XML is a framework for specifying markup languages. | HTML is predefined markup language. |
Language type | Case sensitive | Case insensitive |
Structural details | It is provided | It is not provided. |
Purpose | Transfer of data | Presentation of the data |
Coding Errors | No coding errors are allowed. | Small errors are ignored. |
Whitespace | You can use whitespaces in your code. | You can't use white spaces in your code. |
Nesting | Should be done appropriately. | Does not have any effect on the code. |
Driven by | XML is content driven | HTML is format driven |
End of tags | The closing tag is essential in a well-formed XML document. | The closing tag is not always required. <HTML> tag needs an equivalent </HTML> tag but <br> tag does not require </br> tag |
Quotes | Quotes required around XML attribute values. | Quotes are not required for the values of attributes. |
Object support | Objects have to be expressed by conventions. Mostly using attributes and elements. | Offers native object support |
Null support | Need to use xsi:nil on elements in an XML instance document and also need to import the corresponding namespace. | Natively recognizes the null value. |
Namespaces | XML provides support for namespaces. It helps you to remove the risk of name collisions when combining with other documents. | Does not support the concept of namespaces. Naming collisions can be avoided either using a prefix in an object member name or by nesting objects. |
Formatting decisions | Require more significant effort to map application types to XML elements and attributes. | Provides direct mapping for application data. |
Size | Documents are mostly lengthy in size, especially when an element-centric approach used in formatting. | The syntax is very brief and yields formatted text. |
Parsing in Javascript | Requires an XML DOM implementation and application code to map text back into JavaScript objects. | No extra application code required to parse text. For this purpose, you can use the eval function of JavaScript. |
Learning curve | Very hard as you need to learn technologies like XPath, XML Schema, DOM, etc. | HTML is a simple technology stack that is familiar to developers. |
Here, are significant advantages of using XML:
Following are advantages of using HTML language:
Here, are few drawbacks of using XML:
Here, are few drawbacks of using HTML:
Version | Year |
HTML | 1991 |
HTML 2.0 | 1995 |
HTML 3.2 | 1997 |
HTML 4.01 | 1999 |
XHTML | 2000 |
HTML5 | 2014 |
History of XML
Version | Year |
XML 1.0 | 1998 |
XML 1.1 | 2004 |
Download PDF 1) What Is Ansible? Ansible is a configuration management system. It is used to set...
Here are Kubernetes Interview Questions for fresher as well as experienced candidates to get the...
Definition of Abstraction Abstraction is an OOP concept that focuses only on relevant data of an...
What is the VI editor? The VI editor is the most popular and classic text editor in the Linux...
What is Continuous Integration? Continuous Integration is a software development method where team...
While working on a Linux operating system, you may need to communicate with other devices . For...