HTML Computer Code Elements
HTML contains several elements for defining user input and computer code.
Example
<code> x = 5; y = 6; z = x + y; </code>
HTML <kbd> For Keyboard Input
The HTML <kbd>
element is used to define keyboard input. The content inside is displayed in the browser’s default monospace font.
Example
Define some text as keyboard input in a document:
<p>Save the document by pressing <kbd>Ctrl + S</kbd></p>
Result:
HTML <samp> For Program Output
The HTML <samp>
element is used to define sample output from a computer program. The content inside is displayed in the browser’s default monospace font.
Example
Define some text as sample output from a computer program in a document:
<p>Message from my computer:</p> <p><samp>File not found.<br>Press F1 to continue</samp></p>
Result:
Press F1 to continue
HTML <code> For Computer Code
The HTML <code>
element is used to define a piece of computer code. The content inside is displayed in the browser’s default monospace font.
Example
Define some text as computer code in a document:
<code> x = 5; y = 6; z = x + y; </code>
Result:
x = 5; y = 6; z = x + y;
Notice that the <code>
element does not preserve extra whitespace and line-breaks.
To fix this, you can put the <code>
element inside a <pre>
element:
Example
<pre>
<code>
x = 5;
y = 6;
z = x + y;
</code>
</pre>
Result:
x = 5;
y = 6;
z = x + y;
HTML <var> For Variables
The HTML <var>
element is used to define a variable in programming or in a mathematical expression. The content inside is typically displayed in italic.
Example
Define some text as variables in a document:
<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>
Result:
Chapter Summary
- The
<kbd>
element defines keyboard input - The
<samp>
element defines sample output from a computer program - The
<code>
element defines a piece of computer code - The
<var>
element defines a variable in programming or in a mathematical expression - The
<pre>
element defines preformatted text
50 Responses
levofloxacin 250mg ca levaquin uk
avodart 0.5mg us order celebrex zofran usa
order spironolactone generic buy aldactone generic buy diflucan 100mg without prescription
buy ampicillin 250mg generic erythromycin medication buy erythromycin pills
order generic sildenafil 50mg oral nolvadex 10mg robaxin pills
purchase sildenafil generic oral sildenafil 50mg order estradiol 2mg online
lamictal buy online lamictal 200mg tablet retin ca
buy tadalis 20mg without prescription buy avana 100mg online cheap purchase voltaren pill
isotretinoin 20mg brand order amoxil without prescription zithromax 500mg drug
indomethacin buy online suprax 100mg cost oral amoxicillin 250mg
buy generic cialis 5mg brand name cialis sildenafil 100mg uk
anastrozole 1 mg generic Alternative for viagra sildenafil online
tadalafil 10mg en ligne acheter 20mg du tadalafil viagra 50mg generique en pharmacie
tadalafil bestellen sildenafil 100mg generika sildenafil 50mg generika
isotretinoin cheap accutane 10mg pill cost of ivermectin
modafinil online oral provigil 100mg acetazolamide 250 mg pills
order doxycycline 100mg online cheap clomid usa buy generic lasix 100mg
buy altace for sale azelastine 10ml for sale astelin price
clonidine online order minocycline 100mg generic buy tiotropium bromide 9 mcg generic
buspar 10mg ca oral amiodarone 200mg buy ditropan 5mg online cheap
terazosin online pioglitazone 15mg for sale buy azulfidine 500 mg
order fosamax 70mg online cheap motrin 400mg tablet order pepcid generic
olmesartan pills order divalproex acetazolamide 250mg oral
order tacrolimus 1mg generic buy ropinirole 2mg for sale ursodiol 300mg brand
buy zyban 150mg pills order zyban 150mg pill purchase quetiapine pills
order zoloft 100mg online cheap Buy cheap viagra internet sildenafil tablet
cialis 40mg for sale order fluoxetine sale sildenafil without prescription
tadalafil 40mg us brand cialis 20mg symmetrel over the counter
order naltrexone 50mg generic letrozole 2.5 mg price order abilify 20mg pills
buy modafinil 200mg online buy provigil online ivermectin 500mg
order fluvoxamine 50mg glipizide usa glipizide 10mg generic
isotretinoin 20mg oral buy prednisone 10mg sale buy deltasone 40mg generic
order piracetam without prescription brand nootropil 800 mg sildenafil 100mg usa
azithromycin for sale online zithromax pills gabapentin 800mg without prescription
lasix 40mg for sale doxycycline order online buy plaquenil 400mg pills
cialis 5mg generic buy tadalafil for sale buy anafranil 25mg sale
aralen for sale cenforce canada baricitinib 2mg cost
Hello bro!More info!
дом престарелых в Ростове-на-Дону
https://pansionat-rnd.ru/
Пансионат для пожилых людей – это тип жилья для престарелых, где они могут жить независимо, но получать регулярную медицинскую и социальную помощь. Пансионаты обычно оборудованы спальнями и комнатами для общения, а также обеспечивают питание, гигиену и уборку. В некоторых случаях может быть предоставлена реабилитация и развлекательные мероприятия. Пансионаты могут быть общественными или частными и обычно имеют высокую оплату за жилье и услуги.
частный пансионат
http://www.google.com.hk/url?q=https://pansionat-rnd.ru/ https://maps.google.co.kr/url?q=https://pansionat-rnd.ru/ https://www.google.es/url?q=https://pansionat-rnd.ru/ http://www.google.com.gh/url?q=https://pansionat-rnd.ru/ http://maps.google.com.bz/url?q=https://pansionat-rnd.ru/
출장마사지
ErnestEvage
https://xn—-24-7-2nfbpd5dza0bncg0a6al.xn--p1ai
https://xn—24-7-3vebahb3baz2czbsdzdf9b3a4x.xn--p1ai/
https://xn—24-7-3vebi7a0c8ajhwdyl9mh.xn--p1ai/
https://xn--24-7–3vefjh5cxa7amcku4ap.xn--p1ai
https://xn—24-7-3vebnd9cxa7amcgy4al.xn--p1ai
https://xn—24-7-4vevhge6enkbeai0a1a5dye2c.xn--p1ai
https://xn—-24-7-3nfzigf2folbfai2a2a8d2e3c.xn--p1ai
cialis 5 mg precio cialis 5 mg cialis 5 mg
cialis 5 mg cialis diario precio comprar cialis 5 mg
What type of camera was used? That is definitely a decent superior quality.
https://hankook1.online
https://michelin1.online
https://akita-kennel.ru
https://kupitshin.online
https://vash1host.ru
https://bridgestone2.ru
https://goodyear1.online
https://prodvizhenie-sait.ru
https://testcars.ru
https://o-dom2.ru
https://toyo1.online
https://seo-privat.ru
https://kormoran1.online
https://tireservice1.online
https://domodedovo2012.ru
https://nokian1.online
https://yokohama1.online
https://mytop-site.ru
https://cordiant-1.online
https://sekup.ru
https://pirelli1.online
https://seo-top-site.ru
I adore the different shades!
https://prodvizhenie-sait.ru
https://domodedovo2012.ru
https://sekup.ru
https://o-dom2.ru
https://vash1host.ru
https://testcars.ru
https://cordiant-1.online
https://mytop-site.ru
https://goodyear1.online
https://kupitshin.online
https://bridgestone2.ru
https://michelin1.online
https://toyo1.online
https://nokian1.online
https://seo-privat.ru
https://tireservice1.online
https://akita-kennel.ru
https://seo-top-site.ru
https://hankook1.online
https://pirelli1.online
https://yokohama1.online
https://kormoran1.online
https://prodvizhenie-sait.ru
sportex th201
отзывы tigar
StephenSom
https://vash1host.ru
seo сайта в москве
специалист по продвижению сайтов
https://hankook1.online
зимние шины 205 65 16
trin pl02
GregoryNuG
https://goodyear1.online
комплексное поисковое продвижение сайта
продвижение сайтов цена в москве
https://o-dom2.ru
шины 285 50 r20
continental
Davidbem
https://seo-top-site.ru
продвижение сайта в интернете стоимость
выгодное продвижение сайтов
https://hankook1.online
покрышки hakkapeliitta 9
зимние шины кумхо
Georgedrait
https://seo-privat.ru
продвижение сайтов топ 10 компаний
тлп 10
https://nokian1.online
kama
viatti brina nordico 175 65 14
Georgedrait
https://toyo1.online
seo продвижение москва
услуги поискового продвижения
ErnestEvage
https://xn—24-7-4vevhge6enkbeai0a1a5dye2c.xn--p1ai
https://xn—24-7-3vebahb3baz2czbsdzdf9b3a4x.xn--p1ai/
https://xn—24-7-3vebnd9cxa7amcgy4al.xn--p1ai
https://xn--24-7–3vefjh5cxa7amcku4ap.xn--p1ai
https://xn—24-7-3vebi7a0c8ajhwdyl9mh.xn--p1ai/
https://xn—-24-7-3nfzigf2folbfai2a2a8d2e3c.xn--p1ai
https://xn—-24-7-2nfbpd5dza0bncg0a6al.xn--p1ai