Xhtml | SoloLearn: Learn to code for FREE!

+4

Xhtml

I heard about HTML and HTML5 but not about XHTML.Can someone explain me in short lines or provide me some education link about it.

7/14/2018 8:12:07 PM

Kalaba

10 Answers

New Answer

+3

XHTML (which stands for eXtensible HyperText Markup Language) is a combination of both XML and HTML to create a single language that works on all browsers. The syntax is quite similar to HTML, except it is more strict when it comes to things such as closing tags, capitalization, etc. in the code. I would recommend checking out W3SCHOOL's tutorial on it as they cover most things about XHTML - https://www.w3schools.com/htmL/html_xhtml.asp

+2

Faisal what is XML then?

+2

Kalaba Oh, sorry about that! HTML5 is the newest version of HTML and would probably be the best version to use. XHTML works as a combination of XML 1.0 and HTML4, so it is a little outdated in terms of the HTML version. XHTML5 is still in development, and will combine XML with HTML5, so I would just recommend sticking to HTML5 for now as it is the newest and most efficient version of HTML to use.

+2

Ok thank you.U helped me very much.

+1

So XHTML is mix of HTML and HTML5 and it's supported on all browsers?

+1

Kalaba Almost, but not exactly. As it does work with every browser, XHTML combines XML, a markup language typically used for storing data, and HTML, a markup language used for displaying data.

+1

Kalaba XML is a markup language with similar syntax to HTML. While HTML is used to display data visually in what we know as a website, XML is rather used for storing and collecting data within its tags. There are no predefined tags for XML, so every program that uses it will have their own 'version' of it. I created a small code that shows what XML looks like, if you want to check it out d: https://code.sololearn.com/ctBFIe1Exy0Q/?ref=app

+1

Faisal so XML is collecting data about people, etc. what they search, when they visit website... So out there is many versions and modifications of HTML so what type is beat to use?

+1

Kalaba XML doesn't exactly take in data from the user, as that is more the job of PHP, SQL, and Cookies as they are designed to take in information from the user. It is primarily for storing and organizing data which can be extracted via JavaScript into your website to allow for certain things to be displayed (this website explains it better - https://www.w3schools.com/xml/xml_usedfor.asp ). Assuming you were referring to XML in your question, there is no best variation of it to use as every single program that uses it will use it differently. The 'best' version would really only be the variation that you would need to use in whatever scenario you use it in.

+1

Faisal maybe i didn't explain my question very well.What type of HTML is best for web developers to use?HTML or HTML5 or some other type i don't know....