Attempt any one question out of the given two: A. Sahiba, a website designer with “International Designers Pvt. Ltd.” has written the following code. Observe the code given below and answer the following questions: AlbertComputerManishaAccounts i. Are these tags part of HTML code or XML code? ii. Identify the root element. iii. Mention any two child elements. iv. Mention any two attributes. v. An xml document can have more than one root element. Is it true or false? OR B. Vani, a class X student has recently completed her HTML course and just started learning XML. Help her in the following: i. Mention her any one main difference between HMTL and XML. ii. She has been told that “All major browsers have a built-in XML parser to access and manipulate XML”. Is this statement right or wrong? iii. Explain her the purpose of comments in XML document. iv. Tell her the syntax to put comments in XML documents. v. Explain her the meaning of well-formed XML documents.
Answers
Answered by
16
In Q 2)
1)HTML is an abbreviation for HyperText Markup Language. HTML was designed to display data with focus on how data looks.
XML was designed to be a software and hardware independent tool used to transport and store data, with focus on what data is. XML provides a framework for defining markup languages.
2)Yeah !!! this statement is correct.
3)This chapter explains how comments work in XML documents. XML comments are similar to HTML comments. The comments are added as notes or lines for understanding the purpose of an XML code.
Hope i helped u
MARK AS BRAINLIEST
1)HTML is an abbreviation for HyperText Markup Language. HTML was designed to display data with focus on how data looks.
XML was designed to be a software and hardware independent tool used to transport and store data, with focus on what data is. XML provides a framework for defining markup languages.
2)Yeah !!! this statement is correct.
3)This chapter explains how comments work in XML documents. XML comments are similar to HTML comments. The comments are added as notes or lines for understanding the purpose of an XML code.
Comments can be used to include related links, information, and terms. They are visible only in the source code; not in the XML code. Comments may appear anywhere in XML code.
SyntaxXML comment has the following syntax −
<!-------Your comment----->A comment starts with <!-- and ends with -->. You can add textual notes as comments between the characters. You must not nest one comment inside the other.
ExampleFollowing example demonstrates the use of comments in XML document −
<?xml version = "1.0" encoding = "UTF-8" ?> <!---Students grades are uploaded by months----> <class_list> <student> <name>Tanmay</name> <grade>A</grade> </student> </class_list>Any text between <!-- and --> characters is considered as a comment.
XML Comments RulesFollowing rules should be followed for XML comments −
Comments cannot appear before XML declaration.Comments may appear anywhere in a document.Comments must not appear within attribute values.Comments cannot be nested inside the other comments.Hope i helped u
MARK AS BRAINLIEST
abhisheksp:
can u mark it as brainliest
Answered by
2
Answer:
Que 1
i. These tags are part of XML code.
ii. <company>
iii. <name> and <dept>
iv. eid and deptid
v.false
Mark brainliest please
Similar questions