MyException - 我的异常网
当前位置:我的异常网» 人工智能 » HTML 五中又新增加main标签

HTML 五中又新增加main标签  网友分享于:2013-02-20  浏览:8次
HTML 5中又新增加main标签
HTML 5新增加的标签元素已经够多的了,在2013年2月份,又增加了<main>标签,参考:

The main element represents the main content of the body of a document or application. The main content area consists of content that is directly related to or expands upon the central topic of a document or central functionality of an application.

Authors must not include more than one main element in a document.

Authors must not include the main element as a child of an article, aside, footer, header or nav element

<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8" />
<title>Using main</title>
	<header>My page</header>
			<h1>My article</h1>

			More information

	<footer>Copyright 2013</footer>



  The skateboard is the way cool kids get around

  Longboards are a type of skateboard with a longer 
  wheelbase and larger, softer wheels.




  <h2>Electric Skateboards</h2>
  These no longer require the propelling of the skateboard
  by means of the feet; rather an electric motor propels the board, 
  fed by an electric battery.





  <!-- other content -->



软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有