Div mania is not Semantic XHTML
Posted: January 31, 2009 at 14:25:27 by Dani Iswara. Words count: 248.
Last updated: August 9, 2009 at 03:54:15.
More and more web documents are appearing that consist of nothing more than a collection of div elements. In most cases, better use of CSS selectors could be used to avoid overusing the div element.Please read more on div mania (Juicystudio dot com). On my previous note about web standard vs semantic markup (Dani Iswara .Net), valid XHTML (Extensible HyperText Markup Language) is not the same as semantically correct markup.
Semantic markup test
[Updated February 14, 2009] W3C (World Wide Web Consortium) has just released its new feature, a detection of non-semantic markup. [Updated July 9, 2009] Since July 8, 2009, by the creator, Dominique Hazaël-Massieux, the tool has been modified. The detection of semantic markup is disappear. Raven SEO (Search Engine Optimization) tool can only test the semantic structure ofh1 - h6. Check the semantic data extraction for Dani Iswara .Net. At the bottom of the result, I saw the warning:
Non-semantic markup The following suspiciously non-semantic markup has been detected: * 20 <div> with no additional content to their unique child.There are some opinions from web standard gurus that sometimes we need
divs and its hacks.
At least, try to put
properly for the purpose of semantic (meaningful) markup code. Then, it would make web maintenance easier. :) Dani Iswara, mail me: [myfirstnamelastname]@gmail.com.title,h1-h6,p,ul,ol,li,alt,blockquote,quote,em,strong,del, etc.
Comment by hisman on February 16, 2009 at 10:52:45
using Firefox 2.0.0.1 on Windows XP
Setuju,... tag div emang penting dalam pembuatan suatu situs, terutama dalam pembuatan layout. Tapi gak semuanya bagus pake div.
Saya pernah baca di suatu situs, lupa alamatnya dimana, hehe... bahwa salah satu kesalahan para web designer adalah kebanyakan menggunakan tag div di dalam webnya.
Yah... intinya gunakanlah tag-tag XHTML itu sesuai fungsinya, jangan semuanya pake div. contohnya untuk judul bisa pake heading, untuk tabel bisa pake table dll...
Comment by dani on February 16, 2009 at 12:21:42
using Firefox 3.0.6 on Gentoo
hisman,
iya mas hisman, saya blm bs ngurangin make div-nya :lol:
yg title, heading, list, blockquote, table utk data, masi sanggup lah..tp utk layout itu yg ngga kuat utk ngga terlalu div mania :D
Comment by Origami on February 17, 2009 at 09:28:25
using Firefox 3.0.3 on Ubuntu 8.10
wah, bener banget... gak semua div itu baek, setuju ama pendapatnya Om hisman, hehehehe.. pak Dokter aja bisa ngerti yang ginian, aku malah gak ngerti sama sekali, template blog aja masih pake yang standar, hahahaha...
salam kenal buat pak Dokter yah yang punya blog ini, tukeran link yook...
*numpang iklan*
*garuk-garuk jidat*
Comment by Dani Iswara on February 17, 2009 at 09:53:24
using Firefox 3.0.6 on Gentoo
Origami,
ini jg belajarnya dari temen2nya mas hisman, bli
salam kenal bli komang :)
ngga sekalian gabung Bali Blogger Community?
jd link-nya saya gabung di sana..
Comment by balita on March 6, 2009 at 13:09:09
using Firefox 3.0.3 on Windows XP
si mr.div mank top atuh...
salam kenal
Comment by nomercy on June 21, 2009 at 01:44:28
using Firefox 3.0.11 on Linux Mint 7
mas ... yang mana lebih didahulukan, (x)HTML Standard ataukah Semantic Markup? ... secara kebanyakan web dev yang lebih mementingkan hal pertama daripada yang kedua ...
Comment by nomercy on June 21, 2009 at 01:47:08
using Firefox 3.0.11 on Linux Mint 7
oya sekalian mau tanya (OOT nih) ... blog mas Dani pakai DB Cache tetapi kalau melihat dari hasil counternya kok gak ada database yang ngambil dari cache ...