Home  >  Article  >  Backend Development  >  HTML computer code elements

HTML computer code elements

(*-*)浩
(*-*)浩Original
2019-09-07 16:20:122924browse

HTML computer code elements

Computer code

var person = {
    firstName:"Bill",
    lastName:"Gates",
    age:50,
    eyeColor:"blue"
}

HTML computer code format(Recommended learning: HTML introductory tutorial )

Normally, HTML uses variable letter sizes, as well as variable letter spacing.

This is not required when showing computer code examples.

5e4e803d53d659f332070b5d4aa430db, 162cd570ab1483e383d78dcb7f452f7c, and ffbe95d20f3893062224282accb13e8f elements all support fixed letter sizes and spacing.

HTML keyboard format

HTML 5e4e803d53d659f332070b5d4aa430db element definition keyboard input:

Example

<p>To open a file, select:</p>
<p><kbd>File | Open...</kbd></p>

HTML Sample Format

HTML 162cd570ab1483e383d78dcb7f452f7c Element Definition Computer Output Example:

Example

<samp>
demo.example.com login: Apr 12 09:10:17
Linux 2.6.10-grsec+gg3+e+fhs6b+nfs+gr0501+++p3+c4a+gr2b-reslog-v6.189
</samp>

HTML code format

HTML ffbe95d20f3893062224282accb13e8f Element definition programming code example:

Example

<code>
var person = { firstName:"Bill", lastName:"Gates", age:50, eyeColor:"blue" }
</code>

ffbe95d20f3893062224282accb13e8f Element is not retained Extra spaces and line breaks

HTML variable formatting

HTML b7f90f73cad438258bf67e62f79b2113 element defines mathematical variables:

Example

<p>Einstein wrote:</p>

<p><var>E = m c<sup>2</sup></var></p>

The above is the detailed content of HTML computer code elements. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn