Explain the concept of XML. How to create webpage using this language?
How to link it with CSS? Give an example to show it .
Share
Explain the concept of XML. How to create webpage using this language?
How to link it with CSS? Give an example to show it .
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Verified answer
Explanation:
stands for Extensible markup language .
It is an programming language which can be used to code both for web and for (android OS) apk's layouts.
It is used to to design the web document like by storing data or to transfer it in various parts of the document , while HTML is used to display that same data.
We can link the xml source code to an html document inside <style> tags or by implementing it in (java script)<javascript> using document attributes or by directly using XML tag defining the ENCODING VERSION.
That is : ENCODING VERSION like "UTF-8" , "UTF-16" ,"UTF-32" etc these are standerd encoding Like
"<?xml version="1.0" encoding="UTF-8"?>"
Using it at starting of HTmL document.
HTML is most common language to create web pages.
CSS (cascading style sheets) commands can be used to design within XML.
For example :
<?xml-stylesheet type="text/css" href="Yourfile.css"?>
here "yourfile" is CSS document that is linked in XML document which we want to design.
To create webpage Using XML :-
Open and create a new document in any Text editor like notepad etc.
First define xml package tag <?xml version="1.0" encoding="UTF-8"?>
Assign a tittle <title>Your title</title>( styling, header etc can also be added)
<body> Content goes on </body>
Insert end tag </xml>
Save the file with .xml or .xhtml