In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail about HTML Chinese text tags, hyperlink tags, picture tags how to use, the editor thinks it is very practical, so share it for you to do a reference, I hope you can get something after reading this article.
1. Introduction
In the Web application, when the server sends the web page to the browser, it actually sends the HTML code of the web page to the browser for display. The transport protocol between the browser and the server is HTTP, so:
1) HTML is a kind of text that defines a web page. If you can HTML, you can write a web page.
2) HTTP is a protocol for transmitting HTML over the network, which is used for communication between browsers and servers.
2. The process of page display
When the browser reads the HTML source code on the front page of the page, it parses the HTML, displays the page, and then, according to the various links in the HTML, sends a HTTP request to the Sina server, gets the corresponding pictures, videos, Flash, JavaScript scripts, CSS and other resources, and finally shows a complete page. So we're at Network? You can see a lot of additional HTTP requests below.
3. HTTP request
After tracking the home page of Sina, let's summarize the process of HTTP request:
1) the browser first sends a HTTP request to the server, including:
Method: GET or POST,GET only request resources. POST will come with user data.
Path: / full/url/path
Domain name: specified by Host header: Host:? And other related Header
If it is a POST, the request also includes a Body that contains user data.
2) the server returns a HTTP response to the browser, including:
Response code: 200 indicates success, 3xx indicates redirection, 4xx indicates that the request sent by the client has an error, and 5xx indicates that an error occurred while processing on the server side
Response type: specified by Content-Type; and other related Header; usually the server's HTTP response will carry content, that is, there is a Body, containing the content of the response, the HTML source code of the web page is in the Body.
3) if the browser needs to continue to request other resources from the server, such as images, issue the HTTP request again and repeat steps 1 and 2.
The HTTP protocol adopted by Web adopts a very simple request-response model, which greatly simplifies development. When we write a page, we only need to send the HTML in the HTTP request, without thinking about how to attach pictures, videos, etc., if the browser needs to request pictures and videos, it will send another HTTP request, so a HTTP request only processes one resource.
HTTP protocol also has strong expansibility, one site can be linked to other sites, countless sites are linked to each other, forming a World? Wide? Web, referred to as WWW.
The web page is HTML? It's probably right to understand it that way. Because web pages contain not only text, but also pictures, videos, Flash Mini Game, and complex typesetting and animation effects, HTML defines a set of grammatical rules that tell browsers how to display a rich and colorful page.
So, to learn HTML, don't expect to start with Sina. Let's take a look at what the simplest HTML looks like:
This is the simplest welcome ceremony we've ever written.
The HTML document is composed of a series of Tag, and the outermost Tag is? The standard HTML also includes? ? And? (be careful not to be confused with HTTP's Header and Body.) because HTML is a rich document model, there is also a series of Tag to represent links, pictures, tables, forms, and so on.
HTML is a markup language used to describe web pages. It may not be difficult to learn HTML, mainly to remember some of the meaning of HTML tags and tags, here because I am writing the back end
So what is said here is not very clear and detailed; secondly, there are so many tags on the front-end pages that it is impossible for me to remember how to use each one. Let's introduce a good website here.
Here is a more complete picture of all about web
1 、
Tags define separations (division) or parts (section) in an HTML document.
Tags are often used to combine block-level elements to format them through stylesheets.
Tags can divide a document into separate, different parts. It can be used as a strict organizational tool and is not associated with it in any format. If you mark it with id or class
Then the role of the tag will become more effective
2 、
-the label defines the title. Define the largest title. Define the smallest title.
Because the h element has exact semantics, please carefully choose the appropriate tag level to build the structure of the document. Therefore, do not use the title tag to change the font size on the same line. Instead, we should use cascading stylesheet definitions to achieve a beautiful display.
3 、
Newline label
4 、
The tag defines the paragraph.
The p element automatically creates some white space before and after it. The browser automatically adds these spaces, or you can specify them in the stylesheet.
5 、
Tags can define subscript text
Superscript text can be defined.
6 、
Label horizontal line, which should define the theme changes in the content.
7 、
? Spaces, spaces in html cannot be displayed on the page. Special characters are required to replace spaces.
8 、
Define important text.
Present as emphasized text.
Define a definition project.
Define the computer code text.
Define the sample text.
Define keyboard text. It indicates that the text was typed from the keyboard. It is often used in computer-related documents or manuals.
Define variables. You can use this tag with and tags.
Define references. You can use this tag to define references to references, such as the titles of books or magazines.
9 、
The label defines underlined text. This tag is no longer supported in HTML 5.
10 、
Tags are used to combine inline elements in a document.
Span does not have a fixed format. When a style is applied to it, it changes visually.
11 、
The label definition is a block reference extracted from another source.
All text between and is separated from regular text, often indented on the left and right sides, and sometimes in italics. That is, block references have their own space.
12 、
A common use of tags is to represent the source code of a computer.
The pre element defines preformatted text. Text enclosed in pre elements usually leaves spaces and newline characters. The text will also be rendered as an equal-width font.
On "HTML Chinese text tags, hyperlink tags, picture tags how to use" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.