About the HTML document mode-venoral: I don't know if you have thought about how to write HTML code.Or this long string cannot be viewed.The code, what does it do, why does it have this sentence, what role does it play, and is it related to other
I don't know how much I think about it. Have you ever thought about DOCTYPE HTML > Or a long list of DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01//en" "HTTP://WWW.W3.ORG/TR/HTML4/STRICT.DTD" > Code, what does it do, why do you have this sentence,
Parse and traverse an HTML document
how to parse an HTML document :
Copy Code code as follows:
String html = "first parse"
+ "parsed HTML into a doc.";
Document doc = jsoup.parse (HTML);
Its parser is capable of
Web applications have developed since W3C was established in 1993, and HTML has evolved through several versions (1.0-2.0-3.0-3.2-4.0-4.01 ), now it has become the most basic for web pages or applications. It is absolutely necessary to learn how to
HTML4.01 document Transition definition types, documents defined by this type can use tags and elements in HTML to include tags that are not recommended by the user (e.g., font, b, etc.), and cannot use frames!DOCTYPEHTMLPUBLIC"-//W3C//DTD HTML 4.01
This article mainly describes the HTML Document object interpretation, as well as the use of HTML Document object parsing, then let's look at this article together
Let's start by introducing the Document object in HTML:
The Document object
HTML DOCTYPE Tags--DTDs document type declarationDOCTYPE Label--defines the type of standard document
DOCTYPEThe label appears separately
Description
Document type, which causes the browser to load the Web page with the
Servlet
How to open a document in a non-HTML format with a servletA simple way to send a non-HTML document to a WEB client
by Marla Bonar (marla.bonar@javaworld.com)
Summary
Java Servlet Programming makes it easy to send HTML files
Previous words?? After declaring the document type, the next part of the HTML document is a label that informs the browser that it should be enclosed in ... Resolves to HTML for all content within the Then there are two main parts of the HTML
At the top of each of your pages, you need a document statement. Yes, I must.
If you do not specify a document type, your HTML is not legitimate HTML, and most browsers use "quirks mode" to process the page, which means the browser thinks you don't
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.