Files
JavaWeb/01.前端Web(HTML+CSS)/05.央视新闻-标题-样式(选择器).html
2025-10-12 09:42:24 +08:00

40 lines
1.1 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>【新思想引领新征程】推进长江十年禁渔 谱写长江大保护新篇章</title>
<!-- 方式二:内部样式 -->
<style>
/* id选择器 */
#time{
color: red;
}
</style>
</head>
<body>
<!-- 定义一个标题, 标题内容:【新思想引领新征程】推进长江十年禁渔 谱写长江大保护新篇章 -->
<h1>【新思想引领新征程】推进长江十年禁渔 谱写长江大保护新篇章</h1>
<!-- 定义一个超链接,里面展示,央视网 -->
<!-- a 超链接标签:
href 属性:超链接地址
target 属性:超链接打开方式
_self当前窗口打开
_blank新窗口打开
默认为_self
-->
<a href="https://www.cctv.com/" target="_blank">央视网</a>
<!-- 方式一:行内样式 -->
<!-- <span style="color: gray;">2024年05月15日 20:07</span> -->
<span class="cls" id="time">2024年05月15日 20:07</span>
</body>
</html>