Home  >  Article  >  Web Front-end  >  Code examples of important elements in html5

Code examples of important elements in html5

不言
不言Original
2018-08-18 16:27:291728browse

This article brings you code examples about the implementation of important elements in HTML5. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>一、HTML5中的重要元素</title>
<script type="text/javascript">
	function click(){
		alert(&#39;图片被点击&#39;);
	}
  </script>
------------------------------------------------
<a href="javascript:click()">
	<img src="Chrome.png">
</a>

</head>

<body>

    <section draggable="true">
        <h1>王威</h1>
        <p>性别:男 
           邮箱:wwang@gemptc.com
        </p>
    </section>
    <hr><hr>
  
	<nav draggable="true">
	<a href="index.html">首页</a>
	<a href="book.html">图书</a>
	<a href="bbs.html">论坛</a>
    </nav>
    <hr><hr>
  
    <hgroup>
       <figcaption>标题组</figcaption>
       <h1>标题1</h1>
       <h2>标题2</h2>
    </hgroup>
    <hr><hr>
  
	<address title="作者联系方式">
	Written by www.blues.com<br />
	<a href="mailto:wwang@gemptc.com">
		Email me
	</a><br />
    </address>
    <hr><hr>
    
    <ul>
        <li>数码</li>
        <li>图书
            <ul>
                <li>程序设计</li>
                <li>经典文学</li>
            </ul>
        </li>
        <li>百货</li>
    </ul>
    <hr><hr>
    
    <ol reversed="true">
        <li>Coffee</li>
        <li>Tea</li>
    </ol>
    <ol start="6">
        <li>Coffee</li>
        <li>Tea</li>
    </ol>
	<hr><hr>
    
    <dl>
	  <dt>Coffee</dt>
	  <dd>Black hot drink</dd>
	  <dt>Milk</dt>
	  <dd>White cold drink</dd>
	</dl>
    <hr><hr>
    
    <p>Do not forget to buy <mark>milk</mark> today.</p>
    <hr><hr>
    
    <em>Emphasized text</em></br>
    <strong>Strong text</strong></br>
    <dfn>Definition term</dfn></br>
    <code>Computer code text</code></br>
    <samp>SampleComputerCode</samp></br>
    <kbd>Keyboard text</kbd></br>
    <var>Variable</var></br>
    <cite>Citation</cite></br>
	<hr><hr>
    
    <iframe src="二、HTML5中常用的交互元素.html" sandbox="allow-forms">

  
</body>
</html>

Related recommendations:

Introduction to the syntax and related attributes of html tables (with code)

How to package and separate less? Introduction to methods of packaging and separating less

The above is the detailed content of Code examples of important elements in html5. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn