Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use ordered list, unordered list and definition list in HTML

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how ordered lists, unordered lists, and defining lists are used in HTML. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Overview of CSS

CSS refers to cascading style sheets (Cascading Style Sheets)

Style defines how HTML elements are displayed

Styles are usually stored in stylesheets

Styles are added to HTML 4.0to solve the problem of separation of content and presentation.

External stylesheets can greatly improve productivity

External stylesheets are usually stored in CSS files

Multiple style definitions can be cascaded into one

Style solves a common problem.

HTML tags were originally designed to define the content of a document. By using,

The original intention of HTML is to express information such as "this is the title", "this is the paragraph", "this is the table" and so on. At the same time, the layout of the document is done by the browser without using any formatting tags.

As the two major browsers (Netscape and Internet Explorer) continue to add new HTML tags and attributes (such as font tags and color attributes) to the HTML specification, it becomes more and more difficult to create sites where document content is clearly independent of the document presentation layer.

To solve this problem, the World wide Web Consortium (W3C), a not-for-profit standardization consortium, has taken on the mission of HTML standardization and created styles (Style) outside of HTML 4.0.

All major browsers support cascading style sheets.

Stylesheets greatly improve productivity

The stylesheet defines how HTML elements are displayed, just as the font tags and color attributes of HTML 3.2 do. Styles are usually saved in an external .css file. By simply editing a simple CSS document, external stylesheets give you the ability to change the layout and appearance of all pages in your site at the same time.

CSS is a breakthrough in WEB design because it allows you to control the style and layout of multiple pages at the same time. As a web developer, you can define styles for each HTML element and apply it to as many pages as you want. To update globally, simply change the style, and all elements in the site are automatically updated.

Multiple styles are cascaded into a

Style sheets allow you to specify style information in a variety of ways. Styles can be specified in a single HTML element, in the header element of the HTML page, or in an external CSS file. You can even reference multiple external stylesheets within the same HTML document.

Cascading order

Which style is used when the same HTML element is defined by more than one style?

In general, all styles are cascaded in a new virtual stylesheet according to the following rules, with inline styles having the highest priority.

The browser defaults to < external style sheet < internal style sheet (inside the tag) < inline style (inside the HTML element)

Therefore, inline styles (within the HTML element) have the highest priority, which means that they take precedence over style declarations in tags, external stylesheets, or browsers (default values).

Thank you for reading! This is the end of the article on "how to use ordered lists, unordered lists and definition lists in HTML". 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, 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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report