“Misunderstanding Markup” 日本語訳


Misunderstanding Markup: XHTML 2/HTML 5 Comic Strip

Misunderstanding markup

紹介されたリンク

Misunderstanding markup

これは、Adactio: Journal—Misunderstanding markupを、許可を得て日本語に訳したものです。


W3CXHTML 2 Working GroupXHTMLZeldmanblog



JavaScriptJava

DHTMLHTMLDHTMLHTMLCSSJavaScriptHTML, CSS, JavaScriptWeb

XHTML 2XHTML 1.0XHTML 1.1

XHTML 1.0HTML 4XMLXML






pli

imgbr, meta


XHTML 1.1XML MIME

XHTML 2HTML 4XHTML 2


This was a philosophically pure specification that was so backwardly incompatible that it nearly deprecated the img element.

(訳:XHTML 2は哲学的に純粋な仕様だったけれど、後方互換性について何ら考えられていなかった。たとえば、imgを非推奨に近い扱いにしていたりね。)


XHTML 2XHTML

Henri SivonenAn Unofficial Q and A about the Discontinuation of the XHTML2 WGJohn Allsoppyour snark is showingHenri


There are two meanings to XHTML: technical and marketing. The technical kind (XHTML served using the application/xhtml+xml MIME type) is a formulation of HTML as an XML vocabulary. The marketing kind (XHTML served using the text/html MIME type) is processed just like HTML by browsers but the authors attempt to observe slightly different syntax rules in order to make it seem that they are doing something newer and shinier compared to HTML.

XHTMLXHTMLHTMLXMLapplication/xhtml+xml MIMEXHTMLtext/htmlHTMLXHTMLHTMLXHTML

フォーマットの技術的な違いを説明することと、厳しい構文が好きな製作者をけなすことは全く関係ないことだよね。

もちろん、XML構文を使うことに利点はいっぱいある。たとえば、このDrewのコメントを見てみよう。

Whenever this argument surfaces, there seems to be the assumption that loose syntax is easier for beginners. This baffles me. In my experience simple, strict rules are much easier to learn and code to than loose rules with multiple shortcuts. I like XHTML because attributes must always be quoted. Tags must always be closed. These are simple rules that require no thought, and result in uniform, predictable markup.

(訳:いつもこの手の議論で、ゆるい書き方は初心者にいいっていう人が出てくるけど、賛同できないなあ。ぼくの経験から言うと、単純で厳しいルールの方がゆるくていろんな書き方ができるものよりもずっと簡単に学べるし、書くのも楽だ。ぼくがXHTMLが好きなのは、属性値は引用符で囲む、タグはいつも閉じるっていうシンプルなルールがあるからなんだ。このルールに従っていれば他に何も考える必要はないし、一貫性のある読みやすいマークアップになるんだよ。)


XHTMLHTML

XHTML 2XHTMLXHTML 1使HTML 5使

HTML 5Bruce


I like the XHTML syntax. Its how I learned. Im used to lowercase code, quoted attributes and trailing slashes on elements like brand img. They make me feel nice and comfy, like a cup of Ovaltine and The Evil Dead on the telly.

But you might not. You might want SHOUTY UPPERCASE tags, no trailing slashes and attribute minimisation. And, in HTML 5 you can choose.

Thanks to the pave the cowpaths principle, its up to you. As you like it. What you will. Whatever you want, whatever you like.

(訳:ぼくはXHTML構文が好きだ。なぜなら、そうやって学んだから。小文字で書くこと、引用符で括ること、brやimgにスラッシュを書くことに慣れているんだ。この書き方は、とても気持ちがいい。オバルチンを飲みながら、テレビでEvil Deadを見るような感じさ。でも、君はそうじゃないかもしれない。まるで叫んでるように見える大文字のタグや、スラッシュなしのimg, br要素、属性の省略表記が好きかもしれない。HTML 5だと、これらはぼくらの好きなように書けるんだ。“pave the cowpaths”っていう原則のおかげで、書く人のおまかせになるんだ。「お気に召すまま、お好きなように、好きなだけ、どうにでも」ってね。)


application/xhtml+xmlMIMEHTML 5XHTML 5

XHTML 2XHTMLXHTMLHTML5使

HTML 5

XHTML 2HTML 5XHTML 1HTML 5

DOCTYPE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


<!DOCTYPE html>



XHTML 2XHTMLHTML 5


Bruce LawsonJeremyHTML5HTML5 Doctor Doctor Bruce has the diagnosis Bruce

yakura-masataka@mitsue.co.jp 

: