ERPNext V15 custom Code in doctype

Can I add Code html and CSS in doctype ?

Can you explain it in detail? what is the use case?

I want to import HTML and CSS code to make a Chart donut within Doctype.

I want to display it within the Job Card page.

It’s tricky to develop but check the example in the reference: