Dùng hoặc không dùng hàng đầu tiên làm tiêu đề
- Chọn
- Chuyển đổi
When converting an Excel table, whether the first row is treated as a "header" changes the resulting table. In Convert an Excel Table to HTML or Markdown you can switch with the "Make the first row a header" tick.
Các bước
- Choose an .xlsx with "Choose an Excel file".
- Choose the "Sheet" and "Format".
- Tick or untick "Make the first row a header".
- Check the "After conversion" content.
With the tick
When the first row holds column names (headers).
- Example: a table with "Product", "Price", "Stock" and so on in the first row.
- In HTML they become header cells, standing out in bold and so on.
- In Markdown, a header row and separator line go in.
Without the tick
When the first row is ordinary data too.
- Example: a table of only numbers, without headers.
- All rows are treated alike.
Nếu chưa chắc
If the top row explains "what each column is", tick it. If it is the data itself, whether numbers or text, untick.
Benefits of having a header
- The meaning of columns is clear at once
- Friendlier to screen readers
- The table structure is conveyed to search engines
Note for Markdown
Markdown tables require a header row. Even unticked, an empty header row may go in.
Phù hợp với
- Putting a table with headers on the web
- Handing over a header-less table of data only
Ví dụ
Converted a table with two title rows. With "Make the first row a header", only the first row became a header. The second was an ordinary row, so I tidied it in Excel first and redid it.
Common stumbling blocks
- There are two header rows: HTML headers are only the first row.
- No header row appears: check the tick.
Frequently asked questions
Does changing the tick apply immediately?
You can check it in the "After conversion" field.
Tóm tắt
Tick if the first row has column names; untick if it's data itself.
Dùng “Chuyển bảng Excel sang HTML hoặc Markdown” (miễn phí)Công cụ hay dùng cùng
- Chuyển Excel sang CSV hoặc JSON: Chuyển một trang tính Excel sang CSV, TSV hoặc JSON.
- Chuyển Word sang HTML: Chuyển văn bản Word thành HTML.
- Chuyển đổi CSV và JSON: Chuyển đổi giữa CSV và JSON ngay lập tức.
Nếu hướng dẫn này hữu ích, một khoản ủng hộ nhỏ sẽ là niềm động viên lớn.
Gửi tiền ủng hộ (¥300)Tặng quà (danh sách mong muốn Amazon)