컴

Syntax For HTML5Shiv(구문 HTML5Shiv의 경우)

· 2017-01-16 (월) 16:33:52 · 2332

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>

 

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

퍼블리셔팁

1,282건

퍼블리싱과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
HTML 17-01-31 조회 2,426
HTML 17-01-31 조회 2,889
HTML 17-01-27 조회 2,980
HTML 17-01-27 조회 4,109
HTML
[HTML]
17-01-27 조회 2,558
HTML
[HTML]
17-01-26 조회 2,609
HTML 17-01-26 조회 2,157
HTML 17-01-26 조회 2,538
HTML 17-01-24 조회 2,592
HTML 17-01-24 조회 2,768
HTML 17-01-24 조회 2,535
HTML 17-01-22 조회 2,702
HTML 17-01-22 조회 2,960
HTML 17-01-22 조회 2,059
HTML 17-01-19 조회 2,309
HTML 17-01-19 조회 2,297
HTML 17-01-19 조회 2,548
HTML 17-01-18 조회 2,071
HTML 17-01-18 조회 3,091
HTML 17-01-18 조회 2,930
HTML 17-01-17 조회 2,977
HTML 17-01-17 조회 3,276
HTML 17-01-17 조회 2,568
HTML 17-01-16 조회 2,970
HTML 17-01-16 조회 2,507
HTML 17-01-16 조회 2,333
HTML 17-01-14 조회 2,006
HTML 17-01-14 조회 2,270
HTML 17-01-14 조회 2,406
HTML 17-01-13 조회 1,690