HTML basic summary recommendation (text format)

HTML basic summary recommendation (text format)

HTML text formatting tags

標簽 描述
<b> 定義粗體文本
<em> 呈現為被強調的文本
<i> 定義斜體字
<small> 定義小號字
<strong> 定義重要文本
<sub> 定義下標字
<sup> 定義上標字
<ins> 定義插入字
<del> 定義刪除字

Usually the tag <strong> is used to replace the bold tag <b>, and <em> is used to replace the <i> tag. However, the meanings of these tags are different: <b> and <i> define bold or italic text. <strong> or <em> means that the text you are presenting is important, so it should be highlighted. All major browsers today are capable of rendering fonts in a variety of styles. However, future browsers may support better rendering. Text code example:

XML/HTML CodeCopy content to clipboard
  1. < html >   
  2.   
  3. < body >   
  4.   
  5. < b > This text is bold </ b >   
  6.   
  7. < br   />   
  8.   
  9. < strong > This text is strong </ strong >   
  10.   
  11. < br   />   
  12.   
  13. < big > This text is big </ big >   
  14.   
  15. < br   />   
  16.   
  17. < em > This text is emphasized </ em >   
  18.   
  19. < br   />   
  20.   
  21. < i > This text is italic </ i >   
  22.   
  23. < br   />   
  24.   
  25. < small > This text is small </ small >   
  26.   
  27. < br   />   
  28.   
  29. This text contains
  30. < sub > subscript </ sub >   
  31.   
  32. < br   />   
  33.   
  34. This text contains
  35. < sup > superscript </ sup >   
  36.   
  37. </ body >   
  38. </ html >   
Preset text <pre> This example demonstrates how to use the pre tag to control blank lines and spaces
XML/HTML CodeCopy content to clipboard
  1. <!DOCTYPE html >   
  2. < html >   
  3. < body >   
  4.   
  5. < pre >   
  6. Text in a pre element
  7. is displayed in a fixed-width
  8. font, and it preserves
  9. both spaces and
  10. line breaks
  11. </ pre >   
  12.   
  13. </ body >   
  14. </ html >   
Note: According to the HTML 5 specification, the <b> tag should be used as a last resort and only when no other markup is appropriate. The HTML 5 specification states: Headings should be represented by <h1> - <h6> tags, emphasized text should be represented by the <em> tag, important text should be represented by the <strong> tag, and marked or highlighted text should be represented by the <mark> tag. Tip: You can also use the CSS "font-weight" property to make text bold. css temporary HTML "computer output" tag
標簽 描述
<code> 定義計算機代碼
<kbd> 定義鍵盤碼
<samp> 定義計算機代碼樣本
<var> 定義變量
<pre> 定義預格式文本

HTML citations, references, and tag definitions

標簽 描述
<abbr> 定義縮寫
<address> 定義地址
<bdo> 定義文字方向
<blockquote> 定義長的引用
<q> 定義短的引用語
<cite> 定義引用、引證
<dfn> 定義一個定義項目。

The above HTML basic summary recommendation (text format) is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM.

Original URL: http://www.cnblogs.com/sxtywjx/p/5665569.html

<<:  A brief analysis of the issues that should be paid attention to when making 404 error pages

>>:  How to use display:olck/none to create a menu bar

Recommend

Enabling and configuring MySQL slow query log

Introduction MySQL slow query log is an important...

Apache Calcite code for dialect conversion

definition Calcite can unify Sql by parsing Sql i...

Basic syntax of MySQL index

An index is a sorted data structure! The fields t...

3 Tips You Must Know When Learning JavaScript

Table of contents 1. The magical extension operat...

Use standard dl, dt, dd tags to discard table lists

Now, more and more front-end developers are starti...

Do you know what are the ways to jump routes in Vue?

Table of contents The first method: router-link (...

Solution to mysql prompt "got timeout reading communication packets"

Error message: user: 'root' host: `localh...

A little-known JS problem: [] == ![] is true, but {} == !{} is false

console.log( [] == ![] ) // true console.log( {} ...

Example code for text origami effect using CSS3

Preface This article mainly shares with you an ex...

Implementation of effective user groups and initial user groups in Linux

First check the /etc/group file: [root@localhost ...

Using Docker run options to override settings in the Dockerfile

Usually, we first define the Dockerfile file, and...