插入带有影响字体的<h1>标记</h1>

时间:2013-03-26 16:08:08

标签: html-heading

<p style="margin-left: 14" class="style19"><b>
<font size="6" color="#001E5A" face="Arial">401K Rollover and 
Retirement Planning Center</font></b>

在哪里添加<h1></h1>代码而不影响字体或其他特征?

1 个答案:

答案 0 :(得分:1)

你不应该使用标记来设置样式 - 使用CSS,例如:

<强>标记:

<h1> 401K Rollover and Retirement Planning Center</h1>

<强> CSS

h1{
  font-size: 6px;
  font-family: Arial;
  font-weight: bold;
}

Here it is the result.

您可以将CSS代码嵌入<style type="text/css">标记或外部文件中,您可以将其称为:

<link rel="stylesheet" type="text/css" href="/path/to/someStyleSheet.css">

无论如何,在线搜索一些最近的网络开发指南,以便更好地了解该主题。