Jump to content

can someone tell me how XML and HTML are connected? HTML = Hyper Text Markup Language which shortly means that everything what we see on the websites is a HTML. Also we can create websites with HTML(I think it's programming language for websites).HTML is designed to show the data,meanwhile XML is designed to carry the data.How does it carry the data? I can't create a picture in my mind to imagine how it works. I saw some screenshot examples from Microsoft forum,but it's so complicated and confusing -_- ,I have no idea how it carries the data.

This is example of a XML code: https://imgur.com/a/LMqde

ok....all I see here is a text and markups,right?what does it have to do with carrying data? -.-

Link to comment
https://linustechtips.com/topic/909554-xml-and-html-explanation/
Share on other sites

Link to post
Share on other sites

21 minutes ago, sample text said:

can someone tell me how XML and HTML are connected? HTML = Hyper Text Markup Language which shortly means that everything what we see on the websites is a HTML. Also we can create websites with HTML(I think it's programming language for websites).HTML is designed to show the data,meanwhile XML is designed to carry the data.How does it carry the data? I can't create a picture in my mind to imagine how it works. I saw some screenshot examples from Microsoft forum,but it's so complicated and confusing -_- ,I have no idea how it carries the data.

This is example of a XML code: https://imgur.com/a/LMqde

ok....all I see here is a text and markups,right?what does it have to do with carrying data? -.-

Because that's what they are. They are not programming languages, but as their names say markup languages.  What they do is describe components in that document, what a document will look like,  for example, e.g. by designating this is a paragraph of text, this is a table or this is a link to another page, in case of HTML (<p>, <table> and <a> tags).

HTML has become the standard markup language for the internet. It tells you the various components on the page. Websites nowadays have evolved though, using often combinations of HTML, CSS, JS etc. to form the webpages we all know and love today.

XML is usually used to store data. As you can see from the picture you linked, it provides a simple and easy way to store an object (a cat) with associated attributes. So in those files you are literally describing what a certain element in that document is/does and that is then interpreted by e.g. your webbrowser or other programs to do whatever they do.

Crystal: CPU: i7 7700K | Motherboard: Asus ROG Strix Z270F | RAM: GSkill 16 GB@3200MHz | GPU: Nvidia GTX 1080 Ti FE | Case: Corsair Crystal 570X (black) | PSU: EVGA Supernova G2 1000W | Monitor: Asus VG248QE 24"

Laptop: Dell XPS 13 9370 | CPU: i5 10510U | RAM: 16 GB

Server: CPU: i5 4690k | RAM: 16 GB | Case: Corsair Graphite 760T White | Storage: 19 TB

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×