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

CSS3 to achieve menu hover effect

Result: html <nav id="nav-1"> <...

Django online deployment method of Apache

environment: 1. Windows Server 2016 Datacenter 64...

How to implement Docker container self-start

Container auto-start Docker provides a restart po...

Docker installs and runs the rabbitmq example code

Pull the image: [mall@VM_0_7_centos ~]$ sudo dock...

How to configure the Runner container in Docker

1. Create a runner container mk@mk-pc:~/Desktop$ ...

Detailed explanation of HTML style tags and related CSS references

HTML style tag style tag - Use this tag when decl...

Case analysis of several MySQL update operations

Table of contents Case Study Update account balan...

MySQL pessimistic locking and optimistic locking implementation

Table of contents Preface Actual Combat 1. No loc...

The difference between br and br/ in HTML

answer from stackflow: Simply <br> is suffic...

Detailed explanation of the configuration method of Vue request interceptor

Follow the steps below 1. request.js content: htt...

How to use crontab to add scheduled tasks in Linux

Preface The Linux system is controlled by the sys...

CSS to achieve scrolling image bar example code

On some websites, you can often see some pictures...

Web Design Experience: Efficiently Writing Web Code

Originally, this seventh chapter should be a deep ...