Skip to content

Instantly share code, notes, and snippets.

@yuru4c
Created November 3, 2018 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuru4c/ac6cce24076f4d016ff13246cc839513 to your computer and use it in GitHub Desktop.
Save yuru4c/ac6cce24076f4d016ff13246cc839513 to your computer and use it in GitHub Desktop.
HTML 4.01 の雛型
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="ja-JP">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>#text</title>
<link rel="stylesheet" href="">
<style type="text/css">
html {
-webkit-text-size-adjust: none;
-moz-text-size-adjust: none;
-ms-text-size-adjust: none;
}
</style>
<script type="text/javascript">
(function (window, $) {
var undefined;
var global = this;
$.onreadystatechange = function () {
this.onreadystatechange = null;
};
window.onload = function () {
};
})(window, document);
</script>
</head>
<body>
<noscript><p></p></noscript>
<script type="text/javascript" src=""></script>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- (不確実) DOCTYPE 宣言で改行するべきではない -->
<html lang="ja-JP"> <!-- lang 属性は引用符や既定フォントの都合に応じて (HTML 4.01 含む) -->
<head>
<!-- 文字コードの指定は最初に -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- インラインスタイル使用時 (スクリプトからの指定含む) -->
<meta http-equiv="Content-Style-Type" content="text/css">
<!-- インラインスクリプト使用時 -->
<meta http-equiv="Content-Script-Type" content="text/javascript">
<!-- iOS などに対応するなら -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>#text</title> <!-- 必須 -->
<link rel="stylesheet" href=""> <!-- link 要素の type 属性はヒントなので不要 -->
<style type="text/css"> /* style 要素の type 属性は必須 */
html { /* フォントサイズの自動調整を無効化 */
-webkit-text-size-adjust: none; /* WebKit のバグを考慮するなら 100% */
-moz-text-size-adjust: none;
-ms-text-size-adjust: none;
}
</style>
<script type="text/javascript"> // script 要素の type 属性は必須
(function (window, $) {
var undefined;
var global = this;
$.onreadystatechange = function () { // IE6 ではタイミングが不確実
this.onreadystatechange = null;
};
window.onload = function () {
};
})(window, document);
</script>
</head>
<body>
<noscript><p><!-- スクリプトが動作しない環境用 --></p></noscript>
<script type="text/javascript" src=""></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment