style

タグの概要

このタグはページの表示を整形するためのスタイルを指定する際に使います。
例えばこのタグを使うことにより、指定したタグや範囲について、形や色を指定することができます。
(ブラウザによって解釈が異なることがありますのでご了承下さい。)

サンプル

<?xml version="1.0" encoding="Shift_JIS"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>私のこだわり</title>
<style type="text/css">
<!--
p { padding:4px; color:red; }
-->
</style>
<link rel="stylesheet" href="style.css" type="text/css" />
<script type="text/javascript" src="common.js"></script>
</head>
<body>
<p>
きんつばよりも重い携帯電話なんていやです。
</p>
</body>
</html>
Copyright © 1999-2006 Hikijishi All Rights Reserved.
[] [site][0.00225186347961426]