본문 바로가기

HTML

Computercode

Computercode

<!DOCTYPE html>
<html>
  <body>
    <!-- ex1 -->
    <!-- <h2>The kbd Element</h2>
    <p>The kbd element is used to define keyboard input:</p>
    <p>Save the document by pressing <kbd>Ctrl + S</kbd></p>

    <h2>The samp Element</h2>
    <p>
      The samp element is used to define sample output from a computer program.
    </p>
    <p>Message from my computer:</p>
    <p>
      <samp>File not found.<br />Press F1 to continue</samp>
    </p> -->

    <!-- ex2 -->
    <!-- <h2>The code Element</h2>
    <p>The code element does not preserve whitespace and line-breaks.</p>
    <pre>
        <code>
        x = 5;
        y = 6;
        z = x + y;
        </code>
    </pre>

    <h2>The var Element</h2>
    <p>
      The area of a triangle is: 1/2 x <var>b</var> x <var>h</var>, where
      <var>b</var> is the base, and <var>h</var> is the vertical height.
    </p> -->
  </body>
</html>

ex1

 

ex2

'HTML' 카테고리의 다른 글

URL Encode  (0) 2023.02.01
Entities&Symbol&Emojis  (0) 2023.02.01
Layout  (0) 2023.02.01
HTML <head>  (0) 2023.02.01
FilePath  (0) 2023.02.01