Answer: How to use code blocks in HTML
⚫️ nothingness negates itself

⚫️ nothingness negates itself @dualyticalchemy

About: nobody leaves the cave before the end of a new dawn

Location:
noocation
Joined:
Apr 28, 2020

Answer: How to use code blocks in HTML

Publish Date: Jan 22 '22
0 0

why not re-style <code> with that class name instead of introducing <div>-itis 🚬😐?

You probably want to do it in cascading style sheets (CSS). Create some CSS with the look you want, and things marked as <code> should take on that appearance. For example:

<html>
<head>
<style type="text/css">
code { background-color: gray; color: blue; }
</style>
</head>
<body>
<p>Some code:</p>
<code>My

Comments 0 total

    Add comment