Home  >  Article  >  Web Front-end  >  If you have html5, why should you learn xhtml, xml_html/css_WEB-ITnose

If you have html5, why should you learn xhtml, xml_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:55:311328browse

xml was created to replace html, but it failed and xhtml was excessive. Now w3c is pushing html5 to replace xhtml, xml, html4.0.
If this is the case, the textbooks on xml, xhtml, and html4 can be scrapped, and people can start learning from html5.
However, the html5 tutorials in bookstores and websites are all about the new features of html5, not comprehensive html tutorials.
If I am a newbie and want to learn web front-end, should I follow the old HTML tutorial or the new HTML5?
The problem comes again when I look at the old html tutorials. I have to teach a lot of xhtml and xml if I can’t run away. Since I won’t use these in the future, why should I learn them?
The new html5 tutorial is not comprehensive and I can’t understand it.


Reply to discussion (solution)

Many programs that read configuration files or save some data are stored in xml format, and you can perform data queries on xml Very convenient. . HTML5 doesn't seem to work. .


Closing rate: 0.00%

HTML5 is based on html4.0 xml xhtml and is not independent. At this stage, html5 is not yet mature, and some still need to be done with html4.0 and so on.

Friends, human evolution starts from nothing, from nothing to excellence. Does new development mean abandoning history? !
From a cognitive point of view, we can treat it more rationally. Personal opinion! For reference!

This is equivalent to having an advanced belt buckle. Why do you need a belt?

Friends, human evolution starts from nothing, from nothing to excellence. Does new development mean abandoning history? !
From a cognitive point of view, we can treat it more rationally. Personal opinion! For reference!

xml is used to transmit data, html is used to display data, xml is not used to replace html; xhtml is redefined based on xml principles, but the final form is similar to html; new features of html5 are not generally supported by browsers. Elements or attributes that have been generally supported in the old standard but are marked as obsolete in HTML5 will not be truly eliminated: because the web page is not written to conform to the "standard"; there are many factors driving HTML standardization, but none are supported Standards are nothing but a piece of paper! In addition, html is just the tip of the iceberg of web programming, JS, DOM, PHP, and ASP are the core; I recommend a website http://www.w3school.com.cn/

Correct answer upstairs! !

Came to learn!

Don’t be confused
First of all, let me correct one question. XML was not invented to replace HTML. It is actually a misunderstanding among Chinese people to say that it is to replace HTML. The emergence of XML is more for a transmission specification (communication and use between different types of programs).
As for XHTML, it came out around 2000. Network applications at that time were far less developed than they are today, so XHTML was just an attempt, similar to throwing stones to ask for directions (it was more about making HTML's syntax more rigorous).
Later, I discovered that HTML was actually not standardized and there was no big problem. Developing new functions and strengthening JS applications became the development direction, so HTML5 was born. If HTML5 is formulated prematurely, it will lead to the direction in which its development direction may not be based on current needs.

And if LZ wants to learn from scratch, HTML5 is just an extension of HTML4. Its essence lies in JS, which is not necessary for beginners to learn. For most websites or web pages, even if they transition to HTML5, because the web page For its own sake, more than 80% of the content must still be borne by the existing parts of HTML4. So, learn the existing HTML and CSS. The essence of HTML5 is not something that beginners can play with. Those so-called existing HTML5 tutorials only teach the surface. The real thing will wait until several major foreign mainstream frameworks come up with new architectures. Now, let’s talk about it.

There is definitely a need for his existence

IE does not support HTML5

First understand the meaning of HTML:
HTML was only developed to avoid the split of the World Wide Web. Only when all relevant vendors of the World Wide Web comply with and implement the interpretation and presentation of HTML, then end users can get a consistent experience. Imagine if the earliest browser software developers, Microsoft and Netscape, did not give in, then people would have to choose between the two browsers. And each website must either choose one of the two versions, or spend more manpower and material resources to create two composite versions of the web page.

Let’s take a look at the history of HTML5:
In 1996, W3C took over the development and maintenance of HTML specifications, recommended HTML4.0 as the official specification in December 1997, and launched HTML4.01 in December 1999. Version. However, the W3C subsequently disbanded the HTML working group, turned to developing XHTML, and released the XHTML1.0 and XHTML2.0 specifications. The XHTML2.0 specification is becoming more and more complex, resulting in its long-term lack of acceptance by browser manufacturers.
In 2004, a development group called the "Web Hypertext Application Technology Working Group, abbreviated as WHATWG" was established by browser manufacturers such as Opera, Mozilla Foundation and Apple. , focusing on solving these problems, they released a draft standard of HTML5, which plans to replace the existing HTML4 and XHTML standards, and was eventually recognized by W3C. W3C terminated the development of XHTML, developed HTML5 based on the work of WHATWG, and prepared to finally release the HTML5 specification.
Therefore, we have the following conclusions: 1. XML and Only when browser manufacturers gradually support HTML5 can they have a market; 3. Taking into account forward compatibility, in order to take into account the large number of existing HTML4.0 documents and XHTML1.0 documents, the HTML5 specification stipulates that two syntax formats can be used to write web pages: HTML syntax format and XML syntax format (XHTML1.0 is actually a rewritten HTML document under the requirements of XML syntax format).
If a novice is going to work now, he still needs to learn HTML4.01 and XHTML1.0 first. Introduce the download of "Web Programming Introduction Classic: HTML, XHTML and CSS (2nd Edition)" published by Tsinghua University Press in 2010. If the "novice" just wants to update his knowledge and make a knowledge reserve, he can study "HTML5+CSS3 Web Page Layout and Style Essence" published by Tsinghua University Press in 2011. This book starts from the basic structure of HTML documents, and the starting point is relatively low. Chapter 18 also introduces "Writing HTML5 web pages using XML syntax format".

If you want to popularize html5, I feel that it will take less than 5 years, or even longer

I also want to learn html5, but the teaching materials produced in China are not systematic, maybe they are new The reason is that there is not much technology accumulation

Well

xml was created to replace html...
This is really true. . . .

HTML5 is still a while away. Let’s learn all the previous ones.

It takes some time to adapt to new technologies. Nowadays, there are a lot of Internet users of IE6 and even IE5. . .

Friends, human evolution starts from scratch, from scratch to excellence; does new development mean abandoning history? !
From a cognitive point of view, we can treat it more rationally. Personal opinion! For reference!



Agree

#14th Floor

HTML5 will have to wait until 2020. . . Although it is developing rapidly, there is no standard.

At present, most of the domestic browsers are ie6. HTML5 requires ie9. Very few people in China use such a high version.

This question raised by the poster is very confusing. XML is an extensible markup language. Although it is a markup language, it can store data, such as configuration information, etc. The compatibility for cross-language development is very good. It can be said to be a data format. This has nothing to do with HTML5. The poster has never used xml with programs, right?

All configurations for Android development are xml files

Java and other programming languages ​​​​need

Let’s sum it up in one sentence
The original poster is so young and I’m looking for a sprayer

xml was created to replace html, but it didn’t work, so xhtml was too much. Now w3c is pushing html5 to replace it. xhtml,xml,html4.0.
If this is the case, the textbooks on xml, xhtml, and html4 can be scrapped, and people can start learning from html5.
However, the html5 tutorials in bookstores and websites are all about the new features of html5, not comprehensive html tutorials.
If I am a newbie and want to learn web front-end, should I watch the old html tutorial or the new html...



XML is not designed to replace HTML, and in fact it cannot be replaced. XML is used to transmit and store data. HTML is the structure of web pages
The html5 era will not come so soon, so let’s learn the basics first

xml is used to store data, html displays data
xml strives to integrate data , to achieve data standardization and general purpose in the future

The functions and uses are different

If you are a novice and have never learned XHTML, you don’t have to worry about XHTML and just learn HTML from scratch. But XML is very different from HTML. It has its own purpose and can easily store and exchange data. And files in xml format are still useful, so novices should learn XML syntax and write XML files.

Then why do you need ie6?

Haha, I agree with the explanations above about xml and html. It cannot be said that XML is used to replace html. xml is mainly used to store and transmit data, while html is used for display. The essence of the two is still very obvious.

Even after it comes out, it cannot replace XML

Could it be that with the Shenzhou 7 spacecraft, we will not make cars and drive the Shenzhou 7 to work every day?

Each has its own advantages

Liz wants to say that xhtml replaces html, right?

Actually it’s pretty much the same.
The difference is that html generally refers to all versions before 5.
xhtml is standardized html, and the symbol xml standard is the original tag like
. The standard writing must be
.
html5 has more element tags. Such as , etc.

Once you learn html, you will be able to master the other two with a little research.

IE does not support HTML5



Excuse me, didn’t IE10 already support html5? I estimate it will take another 3 years to fully popularize html5

HTML5 is not mainstream yet

Then don’t learn it~~ Please wait patiently until 2022, it will not be too late to learn it then


xml is used To transmit data, HTML is used to display data, and XML is not used to replace HTML; Elements or attributes marked as obsolete in HTML5 will not be truly eliminated: because web pages are not written to comply with "standards"; there are many factors promoting HTML standardization, but without a supported standard, it is just a piece of paper! In addition, html is just w... It's pretty good.

html css js

means I have just learned html css and I think I should learn html4.0 first. Would it be better to learn html5 again?

Correct answer upstairs! !

I am obsessing about XML here...

Alas, the old technology will gradually become unemployed

Let’s use the old one, understand this first with html5

Friend, are you here to make bricks?

If you want to advocate that XML and xhtml are useless, why are you in my forum?

IE does not support HTML5

IE9 and IE10 both support it

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn