私はHTML/CSS/JavaScriptを初めて使用しており、現在テーブル内のテキストで苦労しています。HTMLテーブルのテキストの相違点(太字/太字ではない)
具体的には、私のコラムヘッダーとテーブルセル内で使用する「サブラベル」を太字にしても問題ありませんが、残りのテキスト(「基本」テキスト)を太字にしないことをお勧めします。これをどのように達成するのですか?
ここに私の説明に付随するいくつかのサンプルHTMLがあります。
<table align="center" style="width: 90%;">
<tbody>
<tr><th style="background-color: #032046;" width="45%">
<p style="font-family: helvetica; color: white; font-size: 11;">Column Label 1</p>
</th><th style="background-color: #032046;" width="15%">
<p style="font-family: helvetica; color: white; font-size: 11;">Column Label 2</p>
</th><th style="background-color: #032046;" width="15%">
<p style="font-family: helvetica; color: white; font-size: 11;">Column Label 3</p>
</th></tr>
<tr><th border="0" style="background-color: #d4e6fd;">
<p style="font-family: helvetica; font-size: 11;"><strong><span style="text-decoration: underline;">Sublabel here.</span></strong></p>
<p align="left" style="font-family: helvetica; font-size: 11;">"Basic" text here.</p>
</th><th border="0" style="background-color: #d4e6fd;">
<p align="center" style="font-family: helvetica; font-size: 11;">"Basic" text here.</p>
</th><th border="0" style="background-color: #d4e6fd;">
<p align="center" style="font-family: helvetica; font-size: 11;">"Basic" text here.</p>
</th></tr>
</tbody>
</table>
thは必須です'thead'の最初の行にあるように....基本的なテキストの代わりに' td'タグを使います – DaniP