Using Header Tags within Tables
See original GitHub issueHeader tags don’t seem to work inside tables, is there a way to get them to work?
Example code:
# Header 1
## Header 2
### Header 3
#### Header 4
##### Header 5
###### Header 6
**bold**
*italic*
| # Header 1 |
| --- |
| ## Header 2 |
| ### Header 3 |
| #### Header 4 |
| ##### Header 5 |
| ###### Header 6 |
| **bold** |
| *italic* |
Additionally, is there a way to create a table without it using the <th> for the first row which formats the data as a table header?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
HTML Table Headers - W3Schools
Table headers are defined with th elements. Each th element represents a table cell. Example. <table> <tr>
Read more >Tables with One Header | Web Accessibility Initiative (WAI)
This page covers tables that have one simple header for rows or one simple header for columns. Data in such tables is descriptive...
Read more ><th>: The Table Header element - HTML - MDN Web Docs
The <th> HTML element defines a cell as header of a group of table cells. The exact nature of this group is defined...
Read more >H1, H2, H3, H4, H5, H6 inside table TH tags? - HTML
You can put header tags inside a <td> , and you can use <td> in the same places that <th> is allowed. So...
Read more >How do you put a table heading tag inside a table? - Treehouse
I suggest that you might need to use a table row tag first, and then put your table header tag inside that.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I will be closing this issue. If you feel there’s something else you wish to add, please feel free to reopen it.
Ideally I don’t want to tell our users to use HTML, that’s the whole reason we’re using markup 😄