html5 简单实例源代码

实例教程:http://www.w3school.com.cn/jquery/


源代码下载

http://download.csdn.net/detail/wyx100/9827067


html5文件布局结构


html5文件布局结构html5语言标记


浏览器执行效果


html5文件源代码

<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
		<title>first html5 page</title>
		<!-- 
        <link rel="stylesheet" href="/css/style.css">
        <script src="/js/libs/modernizr-2.5.3.min.js">
        -->
		<style type="text/css">
			body {
				margin: 0 auto;
				width: 900px;
				background: #fff;
				font: 100%/1.4 helvetica, arial, sans-serif;
			}
			
			header {
				background: #ccc;
				padding: 20px;
			}
			
			header h1 {
				margin: 0;
			}
			
			nav {
				float: left;
				width: 900px;
				background: #333;
			}
			
			nav ul {
				margin: 0;
				padding: 0;
			}
			
			nav ul li {
				list-style-type: none;
				display: inline;
			}
			
			nav li a {
				display: block;
				float: left;
				padding: 5px 10px;
				color: #fff;
				text-decoration: none;
				border-right: 1px solid #fff;
			}
			
			article {
				clear: left;
				float: left;
				width: 560px;
				padding: 20px 0;
				margin: 0 0 0 30px;
				display: inline;
			}
			
			article h2 {
				margin: 0;
			}
			
			aside {
				float: right;
				width: 240px;
				padding: 20px 0;
				margin: 0 20px 0 0;
				display: inline;
			}
			
			aside h3 {
				margin: 0;
			}
			
			footer {
				clear: both;
				background: #ccc;
				text-align: right;
				padding: 20px;
				height: 1%;
			}
		</style>
		<script type="text/javascript">
		</script>
	</head>

	<body>
		<!-- 头部 -->
		<header>
			<h1>头部</h1>
		</header>
		<!-- 导航 -->
		<nav>
			<ul>
				<li id="home">Home</li>
				<li id="about">About</li>
				<li id="contact">Contact</li>
			</ul>
		</nav>
		<!-- 导航 -->
		<section>
			<h1>My Article</h1>
			<article>
				<p>this is first article</p>
				<div id="second_item">this is second article,I'm
					<a href="http://www.cnlbogs.com/hongten">Hongten</a>
					</p>
					<p>this is third article</p>
					<p>this is 4's article</p>
			</article>
		</section>
		<aside></aside>
		<!-- 尾部 -->
		<footer class="footer1">
			<p>
				<a href="mailto:hongtenzone@foxmail.com">hongtenzone@foxmail.com</a> ||
				<a href="http://www.cnlbogs.com/hongten">Hongten</a>
			</p>
		</footer>
	</body>

</html>



  • 13
    点赞
  • 69
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值