Hey guys, i’ve started the Technical Documentation Page project and i’m having some trouble when using the < code > tag; the code style will extend to the whole page overriding the style defined by body and do some other weird stuff. Can’t find where i’m wrong.
Right now i’m using a custom class for those codes called “dialog” insted of using code tag, but that’s not a solution i guess.
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0.
A guess could be that you forgot a closing tag for <code> </code>, then it might want to take over the page…
Also, something you might want to take a look at is this:
To represent multiple lines of code, wrap the <code> element within a <pre> element. The <code> element by itself only represents a single phrase of code or line of code. Source