테스트 사이트 - 개발 중인 베타 버전입니다

Syntax For HTML5Shiv(구문 HTML5Shiv의 경우)

· 8년 전 · 1913

Syntax For HTML5Shiv(구문 HTML5Shiv의 경우)

구문 HTML5Shiv의 경우

HTML5Shiv는 <head> 태그 내에 있습니다.

HTML5Shiv는 <script> 태그에서 참조되는 javascript 파일입니다.

<article>, <section>, <aside>, <nav>, <footer>와 같은 새 HTML5 요소를 사용하는 경우 HTML5Shiv를 사용해야합니다.

github에서 HTML5shiv의 최신 버전을 다운로드하거나 https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js에서 CDN 버전을 참조 할 수 있습니다.

Syntax
<head>
  <!--[if lt IE 9]>
    <script src="/js/html5shiv.js"></script>
  <![endif]-->
</head>

 

 

 

 

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->

</head>
<body>

<section>

<h1>Famous Cities</h1>

<article>
<h2>London</h2>
<p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p>
</article>

<article>
<h2>Paris</h2>
<p>Paris is the capital and most populous city of France.</p>
</article>

<article>
<h2>Tokyo</h2>
<p>Tokyo is the capital of Japan, the center of the Greater Tokyo Area, and the most populous metropolitan area in the world.</p>
</article>

</section>

</body>
</html>

 

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
2982
2981
2980
2979
2978
2977
2976
2975
2974
2973
2972
2971
2970
2969
2968
2967
2966
2965
2964
2963
2962
2961
2960
2959
2958
2957
2956
2955
2954
2953