Why my html style color not shown

This depends on what exactly you type in the cell, and what is your Notebook version. The code as you pasted it in here has two issues:

  • spaces after < (if you meant to avoid conversion to HTML please use backticks to mark it as code isntead)
  • use of curly rather than programmer’s quotation marks

When there is no spurious space and programmers quotation marks are used it renders well in Jupyter Notebook v7.0.3:

Screenshot from 2023-09-10 05-30-47
Screenshot from 2023-09-10 05-30-38

2 Likes