HTML Computer Code Elements

in #computercode7 years ago (edited)

unnamed (1).png
source


HTML Computer Code Elements


Computer Code


x = 5; y = 6; z = x + y; HTML for keyboard input The HTML  element represent users input, like keyboard input or voice command. Text surrounded by  tags is typically displayed in the browser's default monospace font: Example Save the document by pressing Ctrl + s Result: Save the document by pressing Ctrl + s HTML For Computer Code The HTML  element defines a fragment of computer code Example x = 5; y = 6; z = x + y; Result: x = 5; y = 6; z = x + y; Notice: that the  element does not preserves extra whitespace and line-break. To fix this, you can put the  element inside a  elements: Example x = 5; y = 6; z = x + y; Result: x = 5; y = 6; z = x + y; HTML For Program Output The HTML  element represent outputs from a program or computing systems. Example If you input wrong value, the program will return Error! Result: If you input wrong value, the program will return Error! HTML For Variables The HTML  elements define a variables. The variable could be a variable in a mathematicals expression or a variable in programmings context: Example Einstein wrote: E = mc2. Result: Einstein wrote: E = mc2

Sort:  

This post has received a 0.34 % upvote from @drotto thanks to: @rabiul21.

tomar post guli serial onujai hoai khub valo lage