Skip to content

Does anyone know why only SOME HTML tags work on your README? #144854

Discussion options

You must be logged in to vote

GitHub READMEs are rendered using GitHub Flavored Markdown (GFM), which supports a limited subset of HTML tags and CSS properties for security and simplicity.
However, basic inline styles like text-align often work because they're less intrusive. Unfortunately, there's no way to enable unsupported tags or styles in a GitHub README directly.
Use Markdown formatting wherever possible.
If you need complex layouts or styles, consider hosting your documentation elsewhere (e.g., GitHub Pages) where you have full control over HTML and CSS.

Here are some supported HTML Tags in GitHub READMEs:

  • Headings:

<h1>, <h2>, <h3>, <h4>, <h5>, <h6>

  • Text Formatting:

<b>, <strong>, <i>, <em>,<u>, <s>, <str…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by nikoniko78
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@abdelillahCoder
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Programming Help Programming languages, open source, and software development.
4 participants