Syntax For HTML5Shiv(구문 HTML5Shiv의 경우) > 퍼블리셔팁

퍼블리셔팁

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

Syntax For HTML5Shiv(구문 HTML5Shiv의 경우) 정보

HTML Syntax For HTML5Shiv(구문 HTML5Shiv의 경우)

본문

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>

 

추천
0

댓글 0개

전체 1,264
퍼블리셔팁 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT