Get the App
SLTechnology News&Howtos  ›  Development  › 

Introduction to the usage of commonly used CSS elements div, ul, dl, dt and ol

Shulou Source: shulou.com Published: 2022-06-03 17:53:12 11月13日 Update

This article mainly explains "introduction to the usage of commonly used CSS elements div, ul, dl, dt and ol". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor introduce you to the usage of the commonly used CSS elements div, ul, dl, dt and ol.

Simple explanation of commonly used CSS elements div, ul, dl, dt and ol

Simple explanations of several css elements div, ul, dl, dt, ol, this is very common, block-level elements, div as little as possible, like table, nesting as little as possible.

◆ ol ordered list.

……

……

……

It is shown as follows:

1.

2.

3.

◆ ul unordered list, showing that li is preceded by large dots instead of 123s

……

……

Many people tend to overlook the use of dldtdd

◆ dl content block

Title of the dt content block

Dd content

It can be written as follows:

Title

Content 1

Content 2

Olulli and p can be added to dt and dd

After understanding this, it will be much more convenient when using div layouts, and W3C provides a lot of elements to assist in layout.

At this point, I believe you have a deeper understanding of the "introduction to the usage of commonly used CSS elements div, ul, dl, dt, ol". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Elements content common use layout title learning interpretation practicality deeper order interest dots practicality practicality common simple operation method time more friends Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Xiaomi Linux Huawei macOS