別のタグに適用したい場合
<span style="color:green;border:green solid 1px;padding:2px;">
表示 1
</span>
抜き出す
color:green;border:green solid 1px;padding:2px;
任意の名前を付ける 1
.waku{color:green;border:green solid 1px;padding:2px;}
<font class="waku">
呼び出す時どのタグからも呼び出せる
下記の間に記述
<style type="text/css"><!--
--></style>
↓
<style type="text/css"><!--
.waku{color:green;border:green solid 1px;padding:2px;}
--></style>
<head></head>
の間に記述
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>タイトル</title>
<meta http-equiv="content-type" content="text/html; charset=shift_jis">
<meta http-equiv="content-style-type" content="text/css">
<meta name="author" content="製作者の名前">
<meta name="generator" content="textediter">
<style type="text/css"><!--
.waku{color:green;border:green solid 1px;padding:2px;}
--></style>
</head>
<body>
.
.
.
<span class="waku">表示 1</span>
<font class="waku">表示 2</font>
<br><br>
<div class="waku">表示 3</div>
.
.
.
表示 1
表示 2
表示 3
任意の名前を付ける 2
#waku{color:green;border:green solid 1px;padding:2px;}
<font id="waku">
呼び出す時どのタグからも呼び出せる
下記の間に記述
<style type="text/css"><!--
--></style>
↓
<style type="text/css"><!--
#waku{color:green;border:green solid 1px;padding:2px;}
--></style>
<head></head>
の間に記述
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>タイトル</title>
<meta http-equiv="content-type" content="text/html; charset=shift_jis">
<meta http-equiv="content-style-type" content="text/css">
<meta name="author" content="製作者の名前">
<meta name="generator" content="textediter">
<style type="text/css"><!--
#waku{color:green;border:green solid 1px;padding:2px;}
--></style>
</head>
<body>
.
.
.
<span id="waku">表示 1</span>
<font id="waku">表示 2</font>
<br><br>
<div id="waku">表示 3</div>
.
.
.
表示 1
表示 2
表示 3