Semantic XHTML Format Reference
This page is intended to provide all XHTML codes used on this Unessential Weblog. Based on World Wide Web Consortium (W3C) standards, semantics, Web accessibility, and Web usability recommendation. All codes may be customized using cascading stylesheet (CSS). So, no inline CSS here.
unessential Headings elements
Would be useful for fast reading and scanning. Some screen readers have a capability to jump from heading to heading. This page using heading level one. The subheading using heading level two. More rational and usable to keep the level heading 1-3 on common Web document types. For academic purposes, we may put these:
heading level three, in the long sentence formats, to check the line height, set it properly to make it legible
heading level four
heading level five
heading level six
Use CSS to style the size and font properly.
Special texts
Semantically, it will be useful for screen reader and voice browser users. Emphasized text:
- <strong>, strong emphasize, just like bold style,
- <em>, emphasize, similar to italic,
has a special visualization. May help fast reading and scanning on the page. But furthermore, it also has a meaning for difabled–differently-abled people, not only for common users. It will have emphasizing effect in sounds.
This is English language in span. And This is English language in em.
This is deleted texts. This is inserted texts.
Image content

Figure 1. Arch Linux official logo 1.
While on disable images, users should know easily that there are images in content. One of the suggestion is to put border outside the image. Remember to use width or height attributes in <img> tags. Use proper alt attribute if necessary.

Figure 2. Arch Linux official logo 2.
Do not use redundant information on alternative text (alt), title (if needed), and the caption. The alt should be empty (alt=”empty here”) if it only a decorative image. The caption may not be needed if there is a descriptive text beside it. Sample are available in figure 1, 2, and 3.
You may find a problem while images are turned off in browser’s side. Image’s placement is terrible. This block of text is in place to fill in the gap between images overlapping.

Figure 3. Arch Linux official logo 3.
Quotation and citation texts
Subheading here
<blockquote>…Some long quotation sentences–from somewhere–should be placed in this tags or elements. Not intented to put indent block texts in this way. That is the meaning, not just visualization. Some citation will look like this (Dani Iswara).…</blockquote>
For the short citation, 1 sentence, use <q>…this code inside, not the above one…</q>
. But this q element has a low compatibility in some browsers.
Remember to put the source reference in an accessible way, easy to click and descriptive anchor texts inside <cite>this element</cite>.
Listing
It will help scanning and fast reading also. The examples are navigation menu and more than 2 items listing. Using unordered list:
- First line
- Second line
- Second line has a subline
- Another subline
- Third line.
In ordered list:
- Number one
- Number two
- Unordered number
- Unordered number
- Number three.
With the help of CSS:
- Lower a latin
- Lower b latin
- Subline one
- Subline two
- Lower c latin
Another customization:
- Lower i roman
- Lower ii roman
- Lower iii roman
Definition, Definition list, terms, and its definition
For simple defining, use <code>dfn</code>. Better to combine with the use of abbreviation. For example: CSS or Cascading Style Sheets is a stylesheet language used to describe the presentation of a X/HTML document.
For the list, just like in FAQ model. It has these structure:
- Terminology 1
- Defining terminology 1 here. Make it long sentences to view the and set proper line height. Line break then.
Some new sentences here. How do I look? - Terminology 2
- Defining terminology 2 here.
Here is the source code:
<dl> <dt>Terminology 1</dt> <dd>Defining terminology 1 here.</dd> <dt>Terminology 2</dt> <dd>Defining terminology 2 here.</dd> </dl>
This is some texts below the pre to check the margin.
Computer codes
This kind of computer text codes, <code>uname -a</code>, usually be used or pasted on GNU/Linux terminal to show your kernel and computer machine version. Sometimes, has a similar function with <pre>, preformatted tags. The <pre> element has a disable word-wrapping capability for the long codes.
Table for tabular data
Sample of simple accessible tabular data:
| Name here | Column title 1 | Column title 2 |
|---|---|---|
| Sample 1 | Red item | Green item |
| Sample 2 | Unessential Weblog second line here |
pacman -Syu |
|
This is unordered list inside the table:
|
This is ordered list inside the table:
|
This is more complex list inside the table:
|
Use something like ctrl+u (in Firefox) to view the source code.

dani on March 29, 2010 at 10:53:17 using Namoroka 3.6 on Arch Linux:
This page is intended as a format testing. Almost all styles used on this weblog are available here.
Sample:
strong, em,
code,Suggestions are welcome. And I probably have my own reason. :)
Thanks.
dani on March 29, 2010 at 11:23:57 using Midori 0.2 on GNU/Linux:
Testing as a common users.
Using Midori on Arch Linux.
dani iswara on March 29, 2010 at 11:27:45 using Midori 0.2 on GNU/Linux:
using another email.
dani on March 30, 2010 at 21:01:45 using Namoroka 3.6.2 on Arch Linux:
replying from dashboard.
dani on March 31, 2010 at 01:26:46 using Opera 10.20 on GNU/Linux:
Test using Opera 10.20 Alpha 1 on Linux.
dani on April 3, 2010 at 21:57:02 using Namoroka 3.6.2 on Arch Linux:
this is first line
this is second line
third
dani on April 5, 2010 at 20:01:35
Warning: preg_match() [function.preg-match]: Compilation failed: missing ) at offset 30 in /home/daniiswa/public_html/wp-content/plugins/wp-useragent/wp-useragent.php on line 81
using Links on Arch Linux:
test using links browser..without wp-spamfree
dani on April 5, 2010 at 23:22:51 using Safari on GNU/Linux:
using epiphany web browser
dani on April 7, 2010 at 01:29:38 using Flock Sulfur 2.5.6 on GNU/Linux:
using flock 2.5.6 on arch linux
dani on April 13, 2010 at 05:15:42 using SRWare Iron 4.0.275.2 on GNU/Linux:
using SRWare Iron 4.0.275.2 based on Google Chrome
dani on April 17, 2010 at 10:37:07 using IceWeasel 3.5.8 on GNU/Linux:
using Iceweasel 3.5.8 on Debian stable GNU/Linux
dani on April 17, 2010 at 16:27:11 using Elinks 0.11.4 on Arch Linux:
using Elinks on Arch (chroot to Debian)
Pemakaian Unordered List pada Menu - Unessential Weblog on May 12, 2010 at 05:49:55 via WordPress abc:
[...] mengunakan tag dl, dt, dan dd. Beberapa pemakaian elemen tersebut sempat saya coba di halaman Semantic XHTML Format Reference (Dani Iswara [...]
Belajar Web Accessibility - Unessential Weblog on June 23, 2010 at 20:12:13 via WordPress abc:
[...] sekadar untuk membuat teks terlihat nampak lebih menjorok ke dalam. Elemen lain saya rangkum di Semantic XHTML Format Reference (Dani Iswara [...]
dani on July 6, 2010 at 23:14:27 using Firefox 3.6.6 on Arch Linux:
Testing the same style as code:
codeusing var: 1+2=3
using samp
using kbd
dani on July 7, 2010 at 15:20:20 using Firefox 3.6.6 on Arch Linux:
semantic–emphasis+language in English.
Meninjau Aksesibilitas Situs Web – Unessential Weblog on July 9, 2010 at 13:32:19 via WordPress abc:
[...] Untuk semua elemen presentasi–sekaligus menguji CSS, saya konsisten menerapkan sesuai Semantic XHTML Format Reference (Dani Iswara [...]
dani on July 15, 2010 at 11:41:12 using Firefox 3.6.6 on Arch Linux:
Server problem (after upgrading server packages?):
source: log files.
dani on July 18, 2010 at 13:25:50 using Firefox 3.6.6 on Arch Linux:
” = quote
… = ellipses (3 dots convertion)
& = and
– = en dash (double hyphen convertion)
— = em dash (triple hyphen convertion)
dani on July 21, 2010 at 01:48:01 using Firefox 3.6.6 on Arch Linux:
Ini English style in span.
Ini English style in em.
dani on July 25, 2010 at 14:55:49 using Firefox 3.6.8 on Arch Linux:
Terang, banyak ★ di langit.
Penulisan entitas diberi ukuran huruf lebih besar dari standarnya.
Mendung, siap-siap pakai ☂.
Awas, blog ini mengandung bahan ☢.
Yang daniiswara.net lebih mengarah ke konten ☤.
Di dunia ini selalu ada ☯.
Rasio/bintang saya ♈.
Accessibility review of Odiogo podiocasts - Unessential Side - Tidak Penting on August 30, 2010 at 11:11:13 via WordPress abc:
[...] of Cahya Legawa (cahya.legawa.com), using one of my blog post, we did a test page. My post titled Semantic XHTML Format Reference reposted with my permission on his blog post using the same post title. Odiogo’s [...]
dani on August 30, 2010 at 11:51:11 using GNU IceCat 3.6.8 on Arch Linux:
reopen comment test
dani on April 6, 2011 at 08:07:36 using Firefox 4.0 on GNU/Linux:
comment test
dani on April 6, 2011 at 08:10:15 using Firefox 4.0 on GNU/Linux:
test
dani on April 6, 2011 at 08:21:13 using Firefox 4.0 on Arch Linux:
test again
dani on April 6, 2011 at 08:22:22 using Google Chrome 12.0.716.0 on GNU/Linux:
another test