Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Markdown Headings

Markdown Headings

Markdown headings have two formats.

1. Use = and - to mark level-1 and level-2 headings

The syntax for marking with = and - is as follows:



我展示的是一级标题

=================



我展示的是二级标题

-----------------

The display effect is shown in the figure below:

Using the # symbol to mark

Markdown uses # the # symbol to create headings; this evolved from the concept of HTML's

to
tag concept.

Using the # symbol can represent headings from level 1 to 6: a level-1 heading corresponds to one #, a level-2 heading to two # symbols, and so on.



# Level 1 Title

## Secondary Title

### 三级标题

#### Level 4 Title

##### Level 5 Heading

###### 六级标题

The display effect is shown in the figure below:

Important Notes:

Space between the symbol and the text:# There must be a space between the # symbol and the heading text. This is a standard Markdown syntax requirement.

# 正确写法

#Incorrect syntax

Position at the start of the line:# The # symbol must be at the start of the line, with no other characters (spaces or tabs) before it.

The single level-1 heading: In a document, usually only one level-1 heading is used as the main title, which conforms to good document structure conventions.

Heading nesting structure

The heading hierarchy should follow a logical order and should not skip levels. A good heading structure is like a book's table of contents:

Recommended hierarchy:



# Topic: AI Overview



## Part One: Basic Concepts

### 什么是人工智能

### 发展历史

#### Early Development (1950-1980)

#### Modern Development (1980 to present)



## Part Two: Application Fields

### 自然语言处理

### 计算机视觉

### 机器学习

#### 监督学习

#### Unsupervised Learning

#### Reinforcement Learning

Hierarchies to avoid:



# 主标题

### Jump directly to the third-level heading (not recommended)

## Then comes the secondary title

Best practices for heading numbering

Automatic numbering vs. manual numbering:

Many Markdown processors and editors support automatic heading numbering, so you usually do not need to add numbering manually in the source:



# 引言

## 背景

## 目标

# 方法论

## Data Collection

## Analysis Methods

Heading anchors:

Most Markdown processors automatically create anchors for headings, facilitating in-page navigation:

[跳转到方法论部分](#方法论)

Heading length recommendations: