列表和標題如何處理
要點
- 確認
When turning a Word manuscript into HTML, it matters that headings and bullet lists convert properly. Convert Word to HTML converts headings and bullet lists into HTML headings and lists.
步驟
- Choose a .docx with "Choose a Word file".
- Check in the "HTML" field that headings and lists are converted.
- Copy with "Copy HTML".
Parts made with Word's "Heading" styles and list features are converted.
Heading conversion
Word's "Heading 1", "Heading 2" and so on become HTML headings. The heading hierarchy carries over as it is.
- Heading 1 → major heading
- Heading 2 → medium heading
- Heading 3 → minor heading
Bullet list conversion
- "•" bullet lists → dotted lists
- "1. 2. 3." numbered lists → numbered lists
Tips for clean conversion
- Set headings with styles, not by enlarging the font
- Make bullet lists with Word's list feature, not by typing "•" on the keyboard
- Don't skip heading levels (Heading 3 right after Heading 1, etc.)
Examples of poor conversion
- Headings made by just enlarging text → become plain text
- Bullets typed by hand → become text
- Items indented with spaces → indentation is lost
適合
- Publishing long articles with many headings on a blog
- Putting procedures on a web page as numbered lists
示例
Wrote a procedure document in Word as a numbered list. Converting to HTML put it in as a numbered list, and the numbers didn't break when pasted into the site.
Common stumbling blocks
- Headings aren't converted: they weren't set with styles.
- List levels break: set levels with Word's indent feature.
Frequently asked questions
Does the heading text size remain in the HTML?
No. It is decided by the site's design.
小結
Make headings and bullet lists with Word's features. Then they convert correctly to HTML.
使用「把 Word 轉換成 HTML」(免費)搭配使用的工具
- 提取 Word 檔案中的文字:提取 Word 檔案中的純文字。
- CSV 與 JSON 互相轉換:立即在 CSV 和 JSON 之間互相轉換。
- 文字數統計(用於求職申請表和報告):統計文字的字數、行數和稿紙張數。