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

What are the commonly used text tags in web front-end development?

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

Share

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

This article is a detailed introduction to "what are the text labels commonly used in web front-end development". The content is detailed, the steps are clear, and the details are properly handled. I hope this article "what are the text labels commonly used in web front-end development" can help you solve your doubts. The following is a detailed introduction to the ideas of Xiaobian. Let's learn new knowledge together.

em label and strong label

i label and b label

small label

cite label

q tags and blockquote tags

em mainly indicates emphasis on tone, em is displayed in italics by default in browsers

strong means emphasized content, stronger than em, displayed in bold by default

The i tag appears in italics and the b tag appears in bold

H6 specification stipulates that for content that does not need to be emphasized but simply bolded or italicized,

You can use b and i tags

Use the small tag in h6 to indicate something like details

For example: small print in the contract, the copyright statement of the website can be placed in small

All content with a book title in the web page can use cite tags to indicate reference content,

For example, the title of the book, the name of the song, the name of the play, the name of the movie…

The q tag indicates a short reference (inline reference)

The blockquote tag indicates a long reference (block-level reference)

sup label

sub tag

del tag

ins tags

pre label and code label

Set a superscript

indicates a subscript

del tag, strikethrough will be added automatically

The contents of ins will be underlined automatically.

pre is a preformat tag that saves formatting in code and does not ignore multiple spaces

Code is used to express code.

We usually use pre and code together to represent a piece of code

List Tags:

unordered list

ordered list

definition list

Create an unordered list using the ul tag

Use li to create a list item in ul,

A li is a list item

Ordered lists are similar to unordered lists except that they use ol instead of ul.

Ordered lists use ordered serial numbers as bullets

ol is also a block element

type attribute, you can specify the type of serial number

Optional value: 1, default value, use Arabic numerals

2, a/A use lowercase or capital letters as serial numbers

3, i/I use lowercase or capital Roman numerals as serial numbers

Definition lists are used to define words or content

Use dl to create a definition list

There are two child tags in dl

dt: defined content

dd: Description of the definition

Also dl and ul and ol can be nested with each other

Lists can be nested within each other. List bullets can be deleted.

Read here, this article "What are the text tags commonly used in web front-end development" has been introduced, want to master the knowledge points of this article also need to be used by yourself to understand, if you want to know more about the relevant content of the article, welcome to pay attention to the industry information channel.

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