2014.4.17.Thu. 11:23
マークアップエンジニアによって手法は様々かと思いますが、僕は各種HTMLタグを辞書登録し、瞬時にHTMLタグを出力出来るようにしています。
利点は以下のような感じ。
マークアップエンジニアに限らず、HTMLを手打ちしているという人は、この手法を採用しない手はないかと(よっぽど特定のWebページ作成ツールに傾倒している場合はともかく)。
以下に、僕がデフォルトとしているHTML4.01 Strictにおいて有用なHTMLタグを掲載しておきますので、これをそのまま採用・あるいは自分なりにアレンジしたり等して、自分がやりやすいように辞書登録してみて下さい(*・ω・)ノ
「<ul>
の直下には<li>
しか配置しえない」等、親子関係が明確なものについては、親を出力しようとすると子も一緒に出力されるようにセットで用意しています。
※なお僕は動的コンテンツについては不得手なもので、以下のタグについては各属性の必要性・重要性等がよく分からないでいる為、紹介を差し控えさせて頂きます(´・ω・`)
<applet>
<embed>
<object>
<param>
<html lang="ja"></html>
<head></head>
<body></body>
<title></title>
<link rel="" rev="" href="" title="" type="" media="">
<meta http-equiv="" content="">
<meta name="" content="">
<h1></h1>
<h2></h2>
<h3></h3>
<h4></h4>
<h5></h5>
<h6></h6>
<a href=""></a>
<a href="" target="_blank"></a>
<map name=""><area shape="" coords="" href="" alt=""></map>
<area shape="" coords="" href="" alt="">
<form action="" method="post"></form>
<form action="" method="get"></form>
<fieldset></fieldset>
<legend></legend>
<input type="text" name="" size="" value="">
<input type="password" name="" size="" value="">
<input type="file" name="" size="">
<input type="checkbox" name="" value="">
<input type="checkbox" name="" value="" checked="checked">
<input type="radio" name="" value="">
<input type="radio" name="" value="" checked="checked">
<input type="hidden" name="" value="">
<input type="submit" value="">
<input type="reset" value="">
<input type="button" value="">
<input type="image" src="" alt="">
<textarea cols="" rows="" name=""></textarea>
<select name=""></select>
<optgroup label=""><option value=""></option></optgroup>
<option value=""></option>
<button type="submit"></button>
<button type="reset"></button>
<button type="button"></button>
<label for=""></label>
<table summary=""><tr></tr></table>
<caption></caption>
<thead></thead>
<tbody></tbody>
<tfoot></tfoot>
<colgroup span=""></colgroup>
<colgroup><col span=""></colgroup>
<col span="">
<tr></tr>
<th scope="col"></th>
<th scope="row"></th>
<td></td>
<dl><dt></dt><dd></dd></dl>
<dt></dt>
<dd></dd>
<ol><li></li></ol>
<ul><li></li></ul>
<li></li>
<style type="text/css"><!----></style>
<script type="text/javascript" src=""></script>
<script type="text/javascript"><!--//--></script>
<noscript></noscript>
<strong></strong>
<em></em>
<blockquote></blockquote>
<q></q>
<del></del>
<del datetime="2000-12-31T23:59:00+09:00"></del>
<ins></ins>
<ins datetime="2000-12-31T23:59:00+09:00"></ins>
<abbr title=""></abbr>
<acronym title=""></acronym>
<cite></cite>
<code></code>
<dfn></dfn>
<kbd></kbd>
<samp></samp>
<sub></sub>
<sup></sup>
<var></var>
<address></address>
<div></div>
<hr>
<p></p>
<pre></pre>
<br>
<img src="" width="" height="" alt="">
<span></span>
<!---->
俺はXHTML派だという人向けに、終了タグが存在しないタグに/>
を付加したバージョンも用意しておきますヽ(・ω・*|壁
<link rel="" rev="" href="" title="" type="" media="" />
<meta http-equiv="" content="" />
<meta name="" content="" />
<map name=""><area shape="" coords="" href="" alt="" /></map>
<area shape="" coords="" href="" alt="" />
<input type="text" name="" size="" value="" />
<input type="password" name="" size="" value="" />
<input type="file" name="" size="" />
<input type="checkbox" name="" value="" />
<input type="checkbox" name="" value="" checked="checked" />
<input type="radio" name="" value="" />
<input type="radio" name="" value="" checked="checked" />
<input type="hidden" name="" value="" />
<input type="submit" value="" />
<input type="reset" value="" />
<input type="button" value="" />
<input type="image" src="" alt="" />
<colgroup><col span="" /></colgroup>
<col span="" />
<hr />
<br />
<img src="" width="" height="" alt="" />