LN :跟着W3School学HTML 010
内容参考自w3school
HTML 教程
HTML 内部样式表
A paragraph.
HTML 外部样式表
实例解析
<html><head><link rel="stylesheet" type="text/css" href="/html/csstest1.css" ></head><body><h1>我通过外部样式表进行格式化。</h1><p>我也一样!</p><p><span>立即学习</span>“<a href="https://pan.quark.cn/s/cb6835dc7db1" style="text-decoration: underline !important; color: blue; font-weight: bolder;" rel="nofollow" target="_blank">前端免费学习笔记(深入)</a>”;</p><div class="aritcle_card flexRow">
<div class="artcardd flexRow">
<a class="aritcle_card_img" href="/ai/2222" title="易标AI"><img
src="https://img.php.cn/upload/ai_manual/000/000/000/175680146668735.png" alt="易标AI" onerror="this.onerror='';this.src='/static/lhimages/moren/morentu.png'" ></a>
<div class="aritcle_card_info flexColumn">
<a href="/ai/2222" title="易标AI">易标AI</a>
<p>告别低效手工,迎接AI标书新时代!3分钟智能生成,行业唯一具备查重功能,自动避雷废标项</p>
</div>
<a href="/ai/2222" title="易标AI" class="aritcle_card_btn flexRow flexcenter"><b></b><span>下载</span> </a>
</div>
</div></body></html>效果展示
我通过外部样式表进行格式化。
我也一样!
立即学习“前端免费学习笔记(深入)”;
HTML 内联样式
实例解析
<p style="color: red; margin-left: 20px">This is a paragraph</p>
效果展示
This is a paragraph
HTML 没有下划线的链接
实例解析
<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><meta http-equiv="Content-Language" content="zh-cn" /></head><body><a href="/example/html/lastpage.html" style="text-decoration:none">这是一个链接!</a></body></html>
效果展示
这是一个链接!
HTML tips
| 定义样式定义 | |
| 定义资源引用 | |
| 定义文档中的节或区域(块级) | |
| 定义文档中的行内的小块或区域 | |
| 定义基准字体。不赞成使用。请使用样式 | |
| 对文本进行水平居中。不赞成使用。请使用样式 | |
| 规定文本的字体、字体尺寸、字体颜色。不赞成使用。请使用样式 |










