箇条書きと見出しの扱い
- 確かめる
Wordの原稿を、HTMLにするとき、見出しと箇条書きが、きちんと変換されるかが大切です。WordをHTMLに変換する は、見出しと箇条書きを、HTMLの見出しとリストに変換します。
手順
- 「Wordファイルを選ぶ」で、.docx を選びます。
- 「HTML」の欄で、見出しとリストが変換されているか確かめます。
- 「HTMLをコピー」でコピーします。
見出しの変換
Wordの「見出し1」「見出し2」などが、HTMLの見出しになります。見出しの階層が、そのまま引き継がれます。
- 見出し1 → 大見出し
- 見出し2 → 中見出し
- 見出し3 → 小見出し
箇条書きの変換
- 「・」の箇条書き → 点つきのリスト
- 「1. 2. 3.」の番号付き → 番号付きリスト
きれいに変換するコツ
- 見出しは、フォントを大きくするのではなく、スタイルで設定する
- 箇条書きは、キーボードの「・」ではなく、Wordの箇条書き機能で作る
- 見出しの階層を、飛ばさない(見出し1の次に見出し3、など)
変換がうまくいかない例
- 文字を大きくしただけの見出し → ただの文章になる
- 「・」を手で入力した箇条書き → 文章になる
- 空白で字下げした項目 → 字下げが失われる
向いている場面
- 見出しが多い、長い記事のブログ公開
- 手順を、番号付きリストでWebページにしたい
例
手順書を、Wordで番号付きリストにして書いた。HTMLに変換すると、番号付きリストとして入り、サイトに貼り付けても番号が崩れなかった。
つまずきやすい点
- 見出しが変換されない:スタイルで設定されていない。
- 箇条書きの階層が崩れる:階層は、Wordのインデント機能で設定する。
よくある質問
見出しの文字の大きさは、HTMLに残りますか?
いいえ。サイトのデザインで決まります。
まとめ
見出しと箇条書きは、Wordの機能で作る。そうすれば、HTMLに正しく変換されます。
WordをHTMLに変換するを使う(無料)あわせて使えるツール
- Wordから文字を取り出す:Wordファイルの本文を、文字だけで取り出します。
- CSVとJSONを相互変換する:CSVとJSONを、すぐに相互変換します。
- 文字数カウント(エントリーシート・レポート用):文章の文字数・行数・原稿用紙の枚数などを数えます。
同じツールの、ほかの解説
How Lists and Headings Are Handled
- Check
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.
Steps
- Choose a .docx with "Choose a Word file".
- Check in the "HTML" field that headings and lists are converted.
- Copy with "Copy HTML".
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
Good for
- Publishing long articles with many headings on a blog
- Putting procedures on a web page as numbered lists
Example
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.
Summary
Make headings and bullet lists with Word's features. Then they convert correctly to HTML.
Use "Convert Word to HTML" (free)Tools that go well with this
- Extract Text from a Word File: Extract the plain text from a Word file.
- Convert CSV and JSON: Convert between CSV and JSON instantly.
- Character Counter (for Applications and Reports): Count characters, lines and manuscript sheets of your text.