Results 1 to 14 of 14

Thread: What is the difference between XML and HTML?

  1. #1

    Thread Starter
    Banned
    Join Date
    Apr 2016
    Location
    Delhi
    Posts
    4

    What is the difference between XML and HTML?

    Hello friends i want to know What is the difference between XML and HTML?

  2. #2
    Frenzied Member Gruff's Avatar
    Join Date
    Jan 2014
    Location
    Scappoose Oregon USA
    Posts
    1,293

    Re: What is the difference between XML and HTML?

    Burn the land and boil the sea
    You can't take the sky from me


    ~T

  3. #3
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,698

    Re: What is the difference between XML and HTML?

    Similarities: XML and HTML are both markup languages.

    Differences: XML has much stricter rules than HTML. XML is also considered a regular language which would make it simple to parse using RegEx.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  4. #4

    Re: What is the difference between XML and HTML?

    Hi rajkumar'

    There is a huge difference between Sitemap.html and Sitemap.xml. Sitemap is basically created for human and not for the search. Sitemap are very important for your SEO .Sitemap.xml creates for Search engine spiders. It contain only links of your webpage.

  5. #5
    Superbly Moderated NeedSomeAnswers's Avatar
    Join Date
    Jun 2002
    Location
    Manchester uk
    Posts
    2,660

    Re: What is the difference between XML and HTML?

    Hello friends i want to know What is the difference between XML and HTML?
    Simply;

    HTML is a markup language used to describe and create web pages, normally in conjunction with CSS and JavaScript.

    XML is a markup language used to describe data and create data structures which are then often used in web pages to help populate them with said data.
    Please Mark your Thread "Resolved", if the query is solved & Rate those who have helped you



  6. #6
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: What is the difference between XML and HTML?

    Quote Originally Posted by NeedSomeAnswers View Post
    XML is a markup language used to describe data and create data structures which are then often used in web pages to help populate them with said data.
    Until we all realized that JSON was much easier to deal with compared to XML!

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  7. #7
    Superbly Moderated NeedSomeAnswers's Avatar
    Join Date
    Jun 2002
    Location
    Manchester uk
    Posts
    2,660

    Re: What is the difference between XML and HTML?

    Until we all realized that JSON was much easier to deal with compared to XML!
    True, but they didn't ask what is Json?
    Please Mark your Thread "Resolved", if the query is solved & Rate those who have helped you



  8. #8

    Re: What is the difference between XML and HTML?

    XML was designed to carry the data - focus to what data is, and HTML was designed to display data - focus on how data looks.

  9. #9
    Registered User
    Join Date
    Sep 2015
    Posts
    4

    Re: What is the difference between XML and HTML?

    HTML would define the format and layout (with the use of CSS) of what you want to 'layout' and XML would carry the content or 'Data' that you would use within the HTML.

  10. #10

    Re: What is the difference between XML and HTML?

    HTML stands for Hyper Text Markup Language which mainly describes the structure of web pages using markup i.e., creating web pages for your Website. These are mostly considered as building blocks of HTML pages.

    HTML elements are represented in tags and contain contents such as "heading", "paragraph", "table", etc…

    XML stands for eXtensible Markup Language which is designed to store and transport data.

    Finally the difference between XML and HTML is:

    XML was designed to carry data - with focus on what data is to be(Storage) .
    HTML was designed to display data - with focus on how data looks(creation).
    XML tags are not predefined like in HTML tags.
    Last edited by si_the_geek; Nov 10th, 2017 at 09:28 AM. Reason: removed link

  11. #11
    New Member harshch's Avatar
    Join Date
    Jan 2018
    Location
    India
    Posts
    1

    Re: What is the difference between XML and HTML?

    XML and HTML Sitemaps are designed for different purposes as XML sitemap is specially designed for the search engines as it is submitted to the webmaster tools for crawling the website. Whereas, HTML sitemap is designed for humans as they can clearly see it on the website as an extra web page and all the visitors of the website can make use of it for understanding the website

  12. #12
    New Member
    Join Date
    Apr 2018
    Posts
    2

    Re: What is the difference between XML and HTML?

    XML - Well formed XML is XML that has all tags closed in the proper order and, if it has a declaration, it has it first thing in the file with the proper attributes.
    HTML - All HTML documents must start with a document type declaration: <!DOCTYPE html>

  13. #13
    New Member
    Join Date
    Apr 2018
    Posts
    1

    Re: What is the difference between XML and HTML?

    The HTML pages are used to display data. The data are sometimes stored in the interior of HTML pages. Using XML, you can store data in a separated file. This way, you can easily concentrate on using HTML for formatting and displaying, and you can also be certain that the modifications won’t bring any modifications to any HTML code.

    XML can also store data inside the HTML documents. The XML data will store data in HTML documents as “data islands.” You can concentrate on HTML to format and display data.

  14. #14
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,698

    Re: What is the difference between XML and HTML?

    This thread is literally 2 years old. Please quit posting on this thread or I'll close it down.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width