Have you ever wondered about the differences inextensible Markup Language (XML) and HyperText Markup Language (HTML)? Before I go into detail I wanted to give a quick explanation I found from the website Kudos-india “XML was designed to describe data and to focus on what data is. HTML was designed to display data and to focus on how data looks “ The website also states that HTML documents are predefined and you are given the codes to type in, but with XML you must create your own documents.
Many websites state that XML will be the future. XML will not replace HTML though. XML will be used to describe the data that is being entered and HTML will be used to display the data. For example, when a website is created HTML will design the page to make it an enjoyable experience for the viewer, while XML will make sure the data is being sent correctly from the site to the database.
Another main difference is that HTML is not as strict as XML. For HTML you do not have to close each tag, but will XML it is a must that all tags are closed and are in the correct order.
Below is are pictures from the website html vs. xml to show the differences. Both are code for a website that shows different book titles and authors. The website states "An HTML document rendered in a web browser is human readable. XML is aimed toward being both human and machine readable. "
HTML code for the book site:
XML code for the book site:
I hope you enjoyed and that this information helped!! Have a great day!