How do you display code?

i am trying to display code on my web page but it jsut wont work do u guy know how thxs…

my code

<!DOCTYPE html>
<title>Template</title> <!--title-->
<link rel="shortcut icon" type="image/JPG" href="/images/space:stars images/aldebaran-s-uXchDIKs4qI-unsplash.jpg"> <!--logo-->
<meta name="viewport" content="width=device-width, initial-scale=1">

body {
    background: white; /*linear-gradient(to right, blue, darkblue, purple, rgb(85, 0, 85))*/

.a1 {
    color: black;

.a1:hover {
    cursor: pointer;
    color: darkblue;

.holder {
    text-align: center;

.holder1 {
    margin: 10px;


<div class="holder">
    <h1>Complete base <a class="a1" href="#">HTML</a></h1>
    <p>What to add to start your website</p>

<div class="holder1" class="margin20px">
    <h1>First Step:</h1>
    <p>Add a <strong><ins>DOCTYPE html</ins></strong> With a <strong><ins>Exclamation mark</ins></strong> at the beginning</p>

You need to use the html entitites, use &gt; and &lt; instead of > and < to display the tags

oh, ok Thanks for your help.

one thing what is the & for a slash (/)

I don’t know, you can try to google it :slight_smile:

i tryed but it wouldnt give me the answer it just came up with everything but what i wanted

what have you searched for?

what’s the & for slash code"

what it gave:
As a very common character, the slash (as “slant”) was originally encoded in ASCII with the decimal code 47 or 0x2F. The same value was used in Unicode, which calls it “solidus” and also adds some more characters: U+002F / SOLIDUS. U+2044 ⁄ FRACTION SLASH.

oh no sorry i found it:


good job in working out how to find something on google

yh i couldnt fined what i wanted before