4.0: Text Level Semantics
This format is heavily influenced by: Paul Robert Lloyd’s Barebones
4.1: Stressed Emphasis Markup
<p>You simply <em>must</em> try the negitoro maki!</p>
You simply must try the negitoro maki!
4.2: Strong Importance Markup
<p><strong>Don’t</strong> stick nails in the electrical outlet.</p>
Don’t stick nails in the electrical outlet.
4.3: Small Print Markup
<p><small>Copyright © 1922-2011 Acme Corporation. All Rights Reserved.</small></p>
Copyright © 1922-2011 Acme Corporation. All Rights Reserved.
4.4: Strikethrough Markup
<p><s>Recommended retail price: £3.99 per bottle</s></p>
Recommended retail price: £3.99 per bottle
4.5: Citations Markup
<p><cite>Universal Declaration of Human Rights</cite>, United Nations, December 1948. Adopted by General Assembly resolution 217 A (III).</p>
Universal Declaration of Human Rights, United Nations, December 1948. Adopted by General Assembly resolution 217 A (III).
4.6: Inline quotes Markup
<p>John said, <q>I saw Lucy at lunch, she told me <q>Mary wants you to get some ice cream on your way home</q>. I think I will get some at Ben and Jerry’s, on Gloucester Road.</q></p>
John said, I saw Lucy at lunch, she told me
Mary wants you to get some ice cream on your way home
. I think I will get some at Ben and Jerry’s, on Gloucester Road.
4.7: Definition Markup
<p>Bob’s <dfn title="Dog">canine</dfn> mother and <dfn title="Horse">equine</dfn> father sat him down and carefully explained that he was an <dfn title="A mutation that combines two or more sets of chromosomes from different species">allopolyploid</dfn> organism.</p>
Bob’s canine mother and equine father sat him down and carefully explained that he was an allopolyploid organism.
4.8: Abbreviation Markup
<p><abbr title="British Broadcasting Corportation">BBC</abbr>, <abbr title="HyperText Markup Language">HTML</abbr>, and <abbr title="Staffordshire">Staffs.</abbr></p>
BBC, HTML, and Staffs.
4.9: Code Markup
<p> When you call the <code>activate()</code> method on the <code>robotSnowman</code> object, the eyes glow. </p> <pre><code>function getJelly() { echo $aDeliciousSnack; }</code></pre>
When you call the activate()
method on the robotSnowman
object, the eyes glow.
function getJelly() {
echo $aDeliciousSnack;
}
4.10: Variable Markup
<p>If there are <var>n</var> pipes leading to the ice cream factory then I expect at <em>least</em> <var>n</var> flavours of ice cream to be available for purchase!</p>
If there are n pipes leading to the ice cream factory then I expect at least n flavours of ice cream to be available for purchase!
4.11: Sample output Markup
<p>The computer said <samp>Too much cheese in tray two</samp> but I didn’t know what that meant.</p>
The computer said Too much cheese in tray two but I didn’t know what that meant.
4.12: Keyboard entry Markup
<p>To take a screenshot on your Mac, press <kbd>⌘ Cmd</kbd> + <kbd>⇧ Shift</kbd> + <kbd>3</kbd>.</p>
To take a screenshot on your Mac, press ⌘ Cmd + ⇧ Shift + 3.
4.13: Superscript and subscript text Markup
<p>The coordinate of the <var>i</var>th point is (<var>x<sub><var>i</var></sub></var>, <var>y<sub><var>i</var></sub></var>). For example, the 10th point has coordinate (<var>x<sub>10</sub></var>, <var>y<sub>10</sub></var>).</p> <p>f(<var>x</var>, <var>n</var>) = log<sub>4</sub><var>x</var><sup><var>n</var></sup></p>
The coordinate of the ith point is (xi, yi). For example, the 10th point has coordinate (x10, y10).
f(x, n) = log4xn
4.14: Italicised Markup
<p>There is a certain <i lang="fr">je ne sais quoi</i> in the air.</p>
There is a certain je ne sais quoi in the air.
4.15: Emboldened Markup
<p>You enter a small room. Your <b>sword</b> glows brighter. A <b>rat</b> scurries past the corner wall.</p>
You enter a small room. Your sword glows brighter. A rat scurries past the corner wall.
4.16: Marked or highlighted text Markup
<p>I also have some <mark>kitten</mark>s who are visiting me these days. They’re really cute. I think they like my garden! Maybe I should adopt a <mark>kitten</mark>.</p>
I also have some kittens who are visiting me these days. They’re really cute. I think they like my garden! Maybe I should adopt a kitten.
4.17: Edits Markup
<p>She bought <del datetime="2005-05-30T13:00:00">two</del> <ins datetime="2005-05-30T13:00:00">five</ins> pairs of shoes.</p>
She bought two five pairs of shoes.
4.18: Pre-formatted text Markup
<pre> ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~</pre>
! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~
4.19: Horizontal Rule Markup
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> <hr /> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
4.20: Blockquote Markup
<blockquote cite="http://hansard.millbanksystems.com/commons/1947/nov/11/parliament-bill#column_206"> <p>Many forms of Government have been tried, and will be tried in this world of sin and woe. No one pretends that democracy is perfect or all-wise. Indeed, it has been said that democracy is the worst form of government except all those other forms that have been tried from time to time.</p> </blockquote>
Many forms of Government have been tried, and will be tried in this world of sin and woe. No one pretends that democracy is perfect or all-wise. Indeed, it has been said that democracy is the worst form of government except all those other forms that have been tried from time to time.