- Introduction To HTML
- HTML Elements And Tags
- Text Formatting And Styling
- HTML Elements
- HTML Attributes
- HTML Headings
- HTML Paragraphs
- HTML Styles
- HTML Formatting Elements
- HTML Quotation
- HTML Comments
- HTML Colors
- HTML Styles - CSS
- HTML Links
- HTML Images
- HTML Tables
- HTML Lists
- HTML Block And Inline
- HTML Class
- HTML Id
- HTML Iframes
- HTML JavaScript
- HTML File Paths
- HTML Head
- HTML Layout
- HTML Responsive
- HTML Computer Code
- HTML Semantic
- HTML Forms
- HTML Form Attributes
- HTML Form Elements
- HTML Input Types
- HTML Input Attributes
- HTML Input Form Attributes
- HTML Canvas
- HTML SVG
- HTML Media
- HTML Video
- HTML Audio
- HTML YouTube
HTML Computer Code
HTML Computer Code Elements
HTML includes a number of elements that define user input and computer code.
<html>
<body>
<h2>Computer Code</h2>
<p>Some programming code:</p>
<code>
x = 5;
y = 6;
z = x + y;
</code>
</body>
</html>
HTML Kbd For Keyboard Input
The <kbd>
element defines keyboard input in HTML. The content is displayed using the default monospace font of the user's browser.
<html>
<body>
<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>
</body>
</html>
HTML Samp For Program Output
The HTML <samp>
element is used to define examples of a computer program's output. The content is displayed using the default monospace font of the user's browser.
<html>
<body>
<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>
</body>
</html>
HTML Code For Computer Code
The HTML <code>
element is utilised to define computer code. The content is displayed using the default monospace font of the user's browser.
<html>
<body>
<h2>The code Element</h2>
<p>Programming code example:</p>
<code>
x = 5;
y = 6;
z = x + y;
</code>
</body>
</html>
HTML Var For Variables
In programming and mathematical expressions, the HTML <var>
element is utilised to define a variable. Typically, the content within is displayed in italics.
<html>
<body>
<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>
Products
Partner
Copyright © RVR Innovations LLP 2024 | All rights reserved - Mytat.co is the venture of RVR Innovations LLP