In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "how HTML displays the content of the article on the web page". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to display the content of the HTML on the web page" can help you solve the problem.
We can see that the article is composed of three parts, namely, the title, the content, and the picture. The HTML code of these three parts is written in and. Let's see how the title is written in HTML.
There are a total of 6 title tags. H2, h3, h4, h5, h6 and h7 are first-level title, second-level title, third-level title, fourth-level title, fifth-level title and sixth-level title, respectively. And diminish according to importance. It's the highest level.
So take the article we just described as an example, the HTML code for the title can be written as follows:
Xiao Ming went out for a walk with Xiao Hong.
Here we should note that and is the HTML tag, which tells the browser that this is a title, and the content of the title is written between and.
After writing the title, what we are going to show is the content of the article. In HTML, the label that displays the content of the body is
And
Expressed in HTML code is:
The weather is fine today. Xiao Ming and Xiao Hong go for a walk together.
This is the same label as just now.
And
Is to tell the browser, here is the text paragraph, and the text content is written in
And
In between.
At this point, we have solved the title and content of an article, but the article we just listed is interspersed with a picture. How does the picture represent it in HTML?
We're going to talk about it here.
The label. In HTML
Is used to represent a picture, generally speaking, a complete
The tag contains three parts, namely: the path to the image (scr), the replacement text in the event of a failed download (alt), and the prompt text (title).
Taking the picture of the article we just described as an example, we can write the picture of that article as follows:
Note:
Here the scr after the double quotation marks is the path of the picture, that is to say, you save this picture where, fill in the saved path with the saved name and saved format, the picture in this article is saved in the I folder, the picture name is: eg_cute, the file format is: gif.
As for
As long as you understand the meaning of alt and title in the label, you will naturally understand it when you practice a lot later.
At this point, the article we just wrote is written in HTML code. Let's take a look at the overall effect in the browser.
This is the end of the introduction to "how HTML displays the content of the article on the web page". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.