Тег <code></code>



Этот тег определяет программный код.




index.html
  • <!DOCTYPE html>
  • <html>
  • <head>
  •  <meta charset="utf-8" />
  •  <title>New Page</title>
  • </head>
  • <body>
  •  <p>This is a program code at a language C#.</p>
  •  <p>
  •    <code>
  •     using System;<br />
  •     class Program {<br />
  •     &nbsp;public static int Main() {<br />
  •     &nbsp;&nbsp;Console.WriteLine("Hello World!");<br />
  •     &nbsp;&nbsp;Console.ReadKey();<br />
  •     &nbsp;&nbsp;return 0;<br />
  •      &nbsp;}<br />
  •     }<br />
  •    </code>
  •  </p>
  • </body>
  • </html>
  • <!DOCTYPE html>
  • <html>
  • <head>
  •  <meta charset="utf-8" />
  •  <title>New Page</title>
  • </head>
  • <body>
  •  <p>This is a program code at a language C#.</p>
  •  <p>
  •    <code>
  •     using System;<br />
  •     class Program {<br />
  •     &nbsp;public static int Main() {<br />
  •     &nbsp;&nbsp;Console.WriteLine("Hello World!");<br />
  •     &nbsp;&nbsp;Console.ReadKey();<br />
  •     &nbsp;&nbsp;return 0;<br />
  •      &nbsp;}<br />
  •     }<br />
  •    </code>
  •  </p>
  • </body>
  • </html>