<blockquote cite="https://www.huxley.net/bnw/four.html">
<p>Words can be like X-rays, if you use them properly—they’ll go through anything. You read and you’re pierced.</p>
</blockquote>
渲染效果:
Words can be like X-rays, if you use them properly—they’ll go through anything. You read and you’re pierced.
<u>这是下划线文本</u>
<ins>这是ins元素,用来标识文档中添加的内容</ins>
<p>You can use <abbr title="Cascading Style Sheets">CSS</abbr> to style your <abbr title="HyperText Markup Language">HTML</abbr>.</p>
<p>Regular text. <code>This is code.</code> Regular text.</p>
Regular text. This is code. Regular text.
语法示例:
<code>
<h1>Bigger headings are more important</h1>
<h2>This is smaller</h2>
<h3>This is smaller still</h3>
<p>this is body copy,and is most common.</p>
</code>
渲染效果
<h1>Bigger headings are more important</h1>
<h2>This is smaller</h2>
<h3>This is smaller still</h3>
<p>this is body copy,and is most common.</p>
语法示例:使用<pre>
<pre><code>
<h1>Bigger headings are more important</h1>
<h2>This is smaller</h2>
<h3>This is smaller still</h3>
<p>this is body copy,and is most common.</p>
</code></pre>
渲染效果:
Bigger headings are more important
This is smaller
This is smaller still
this is body copy,and is most common.
语法示例:使用<pre>和 < >
<h1>Bigger headings are more important</h1>
<h2>This is smaller</h2>
<h3>This is smaller still</h3>
<p>this is body copy,and is most common.</p>
渲染效果:
<h1>Bigger headings are more important</h1>
<h2>This is smaller</h2>
<h3>This is smaller still</h3>
<p>this is body copy,and is most common.</p>
<html>
<head>
<title>This is test table</title>
</head>
<body>
<header role="banner">
<h1 class="site-title">Welcome to my site</h1>
<nav>
<ul role="main">
<li><a href="home.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<div class="wrapper">
<main role="mail">
<article role="article">
<head>
<h2>HTML is to great</h2>
</head>
<div class="entry">
<p>test <b>test</b> test test</p>
</div>
<footer>
<p>Published March 5th at 16:22</p>
</footer>
</article>
</main>
<aside>
<h3>Related Article</h3>
<ul>
<li><a href="https://www.w3schools.com/css/">CSS</a></li>
</ul>
</aside>
</div>
<footer>
<p>Copyright Suns</p>
</footer>
</body>
</html>
渲染效果:
This is test table
Welcome to my site
HTML is to great
test test test test
<article>语法示例:
<html>
<head>
<style>
.all-browsers {
margin: 0;
padding: 5px;
background-color: lightgray;
}
.all-browsers > h1, .browser {
margin: 10px;
padding: 5px;
}
.browser {
background: white;
}
.browser > h2, p {
margin: 4px;
font-size: 90%;
}
</style>
</head>
<body>
<article class="all-browsers">
<h1>Most Popular Browsers</h1>
<article class="browser">
<h2>Google Chrome</h2>
<p>Google Chrome is a web browser developed by Google, released in 2008. Chrome is the world's most popular web browser today!</p>
</article>
<article class="browser">
<h2>Mozilla Firefox</h2>
<p>Mozilla Firefox is an open-source web browser developed by Mozilla. Firefox has been the second most popular web browser since January, 2018.</p>
</article>
<article class="browser">
<h2>Microsoft Edge</h2>
<p>Microsoft Edge is a web browser developed by Microsoft, released in 2015. Microsoft Edge replaced Internet Explorer.</p>
</article>
</article>
</body>
</html>
渲染效果:
Most Popular Browsers
Google Chrome
Google Chrome is a web browser developed by Google, released in 2008. Chrome is the world's most popular web browser today!
Mozilla Firefox
Mozilla Firefox is an open-source web browser developed by Mozilla. Firefox has been the second most popular web browser since January, 2018.
Microsoft Edge
Microsoft Edge is a web browser developed by Microsoft, released in 2015. Microsoft Edge replaced Internet Explorer.
<aside>语法示例:
<html>
<head>
<style>
aside {
width: 30%;
padding-left: 15px;
margin-left: 15px;
float: right;
font-style: italic;
background-color: lightgray;
}
</style>
</head>
<body>
<h1>The aside element - Styled with CSS</h1>
<p>My family and I visited The Epcot center this summer. The weather was nice, and Epcot was amazing! I had a great summer together with my family!</p>
<aside>
<p>The Epcot center is a theme park at Walt Disney World Resort featuring exciting attractions, international pavilions, award-winning fireworks and seasonal special events.</p>
</aside>
<p>My family and I visited The Epcot center this summer. The weather was nice, and Epcot was amazing! I had a great summer together with my family!</p>
<p>My family and I visited The Epcot center this summer. The weather was nice, and Epcot was amazing! I had a great summer together with my family!</p>
<p>My family and I visited The Epcot center this summer. The weather was nice, and Epcot was amazing! I had a great summer together with my family!</p>
</body>
</html>
渲染效果:
The aside element - Styled with CSS
My family and I visited The Epcot center this summer. The weather was nice, and Epcot was amazing! I had a great summer together with my family!
My family and I visited The Epcot center this summer. The weather was nice, and Epcot was amazing! I had a great summer together with my family!
My family and I visited The Epcot center this summer. The weather was nice, and Epcot was amazing! I had a great summer together with my family!
My family and I visited The Epcot center this summer. The weather was nice, and Epcot was amazing! I had a great summer together with my family!
<mail>语法示例:
<!DOCTYPE html>
<html>
<head>
<style>
main {
margin: 0;
padding: 5px;
background-color: lightgray;
}
main > h1, p, .browser {
margin: 10px;
padding: 5px;
}
.browser {
background: white;
}
.browser > h2, p {
margin: 4px;
font-size: 90%;
}
</style>
</head>
<body>
<h1>The main element - Styled with CSS</h1>
<main>
<h1>Most Popular Browsers</h1>
<p>Chrome, Firefox, and Edge are the most used browsers today.</p>
<article class="browser">
<h2>Google Chrome</h2>
<p>Google Chrome is a web browser developed by Google, released in 2008. Chrome is the world's most popular web browser today!</p>
</article>
<article class="browser">
<h2>Mozilla Firefox</h2>
<p>Mozilla Firefox is an open-source web browser developed by Mozilla. Firefox has been the second most popular web browser since January, 2018.</p>
</article>
<article class="browser">
<h2>Microsoft Edge</h2>
<p>Microsoft Edge is a web browser developed by Microsoft, released in 2015. Microsoft Edge replaced Internet Explorer.</p>
</article>
</main>
</body>
</html>
渲染效果:
The main element - Styled with CSS
Most Popular Browsers
Chrome, Firefox, and Edge are the most used browsers today.
Google Chrome
Google Chrome is a web browser developed by Google, released in 2008. Chrome is the world's most popular web browser today!
Mozilla Firefox
Mozilla Firefox is an open-source web browser developed by Mozilla. Firefox has been the second most popular web browser since January, 2018.
Microsoft Edge
Microsoft Edge is a web browser developed by Microsoft, released in 2015. Microsoft Edge replaced Internet Explorer.
<div>语法示例:
<html>
<head>
<style>
.myDiv {
border: 5px outset red;
background-color: lightblue;
text-align: center;
}
</style>
</head>
<body>
<h1>The div element</h1>
<div class="myDiv">
<h2>This is a heading in a div element</h2>
<p>This is some text in a div element.</p>
</div>
<p>This is some text outside the div element.</p>
</body>
</html>
<video width="800px" controls>
<source src="video\moon.mp4" type="video/mp4">
Your browser does not support HTML video.
</video>
渲染效果:
嵌入音频语法示例:
<audio controls>
<source src="audio\brid.mp3" type="audio/mpeg">
Your browser does not support the audio tag.
</audio>
<!-- 以下语法为版权信息 -->
<blockquote cite="https://orangefreesounds.com/forest-bird-chirping-sound/">
<p>This Audio is used for HTML demos, audio referenced in <a href="https://orangefreesounds.com/forest-bird-chirping-sound/"target="_blank">Orange Free Sounds</a>, copyrighted by <a href="https://orangefreesounds.com"target="_blank">Orange Free Sounds</a>.</p>
</blockquote>