HTML5 介紹
自W3C於1999年發佈HTML4後,Web世界快速發展,一片繁榮。
人們一度認為HTML標準不需要升級了。
一些致力於發展Web App的公司另行成立了WHATWG組織,直到2007年,W3C從WHATWG接手相關工作,重新開始發展HTML5。
和電腦性能的增強,人們不再滿足於單純的通過網路看新聞、收發郵件、串流影音和網頁遊戲。
HTML標準沒有把握住產業的變化及時演進,瀏覽器產品也未升級,這塊新需求被瀏覽器插件滿足了,那就是Flash。這個部署在億萬瀏覽器裡的商業插件儼然成為事實標準。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<link rel="stylesheet" href="">
</head>
<body>
<header>
<nav></nav>
</header>
<main>
<article>
<section></section>
<section></section>
<section></section>
</article>
<aside></aside>
</main>
<footer></footer>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Where Am I</title>
<link rel="stylesheet" href="">
</head>
<body>
<header>
<nav></nav>
</header>
<main>
<p id="geo"></p>
</main>
<footer></footer>
<script>
navigator.geolocation.getCurrentPosition(function (pos){
geo.textContent = "經度:" + pos.coords.latitude
+ " 緯度:" + pos.coords.longitude;
});
</script>
</body>
</html>