In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article describes HTML.
with
What is the difference between labels?"In the operation process of actual cases, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations. I hope you can read carefully and learn something!
First of all, the similarities are that br and p both have newline attributes and meanings.
Second, the difference is that only one is needed for separate use, while
and
is a pair of uses
Again, br labels are small newline references, p labels are large newline (segmented) line effects.
BR example, especially note that BR's web standard is, and if used
No "/" although the effect is the same, but does not meet the w3c standard.
this is
Tag example, you can see that the use of html p tag is replaced by a large line, there is a blank line style.
When css styles are not set for p, a
The paragraph tag effect is equivalent to using two newline tags.
Description as shown in the following schematic diagram:
The diagram above shows exactly two br labels equal to one p instance
What you need to pay attention to when using p tags is what you need to pay attention to
and
Is a pair of use, see the above legend can understand and understand.
Of course, you can make p label newlines the same as br newlines without blanks. You can use css to set the corresponding p label margin:0; padding:0; to achieve this. Example p{ margin:0; padding:0;}, you can achieve this.
Equal to one.
"HTML
with
What is the difference between labels?"The content is introduced here. Thank you for reading it. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
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.