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

Detailed explanation of the use of Vue3 state management

Table of contents background Provide / Inject Ext...

Linux super detailed gcc upgrade process

Table of contents Preface 1. Current gcc version ...

About MYSQL, you need to know the data types and operation tables

Data Types and Operations Data Table 1.1 MySQL ty...

The three new indexes added in MySQL 8 are hidden, descending, and functions

Table of contents Hidden, descending, and functio...

How to get the width and height of the image in WeChat applet

origin Recently, I am working on requirement A, i...

CSS makes tips boxes, bubble boxes, and triangles

Sometimes our pages will need some prompt boxes o...

Detailed explanation of the basic usage of the Linux debugger GDB

Table of contents 1. Overview 2. gdb debugging 2....

Vue uses the Element el-upload component to step on the pit

Table of contents 1. Basic Use 2. Image quantity ...

A brief discussion on the solution of Tomcat garbled code and port occupation

Tomcat server is a free and open source Web appli...

HTML 5 Preview

<br />Original: http://www.alistapart.com/ar...