In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces how to call DIV elements and SPAN elements to group multi-elements, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Are you familiar with the method of grouping elements using DIV elements and SPAN elements? here we share that DIV elements or SPAN elements can be used to group multiple elements to create certain parts or subsections of the page.
Using DIV elements and SPAN elements to group elements
Using the DIV element or SPAN element, you can group multiple elements to create parts or subsections of the page. These elements themselves do not affect the appearance of the page, but they are usually used with CSS to allow users to add styles to a part of the page (see Chapter 7 for details). For example, you can place all the footnotes in a page into a DIV element to indicate that all elements in the DIV element are related to that footnote. You can then attach a style to the DIV element to display footwork using a special set of style rules.
The following code demonstrates the DIV element used to group block-level elements:
Footnotes
1 The World Wide Web was inventedby Tim Berners-Lee
2 The W3C is the World Wide Web Consortium who maintain many Web standards
On the other hand, you can use the SPAN element to group only inline elements. Therefore, if a part of a sentence or paragraph needs to be grouped, you can use the SPAN element. A SPAN element is added to the following code to indicate what is relevant to an inventor. The SPAN element contains a bold element and some text:
Footnotes
1 The World Wide Web was invented by Tim Berners Lee
2 The W3C is the World Wide WebConsortium who maintain many Web standards
The element itself has no effect on the appearance of the document in the browser, but it adds additional meaning to the tag, grouping related elements together. This grouping can also be used by other processing applications, or to use CSS rules to assign special styles to elements in a group (see Chapter 7).
DIV and SPAN elements can come with all the generic attributes and UI event attributes, or even the phased align attribute (which has been removed from StrictXHTML1.0).
On how to call the DIV element and SPAN element grouping multi-element sharing here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it 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.