meta태그, location 객체

삼전·2023년 5월 25일
0

Javascript 문법

목록 보기
9/15

1.meta태그

⭐해당 문서에 대한 정보인 메타데이터를 정의한다.

이게 무슨 소리? 아래의 예시를 보쟈!

2.location 내장객체

⭐URL 주소 정보가 담겨져있다.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!--***-->
<!-- 홈페이지 설명 -->
<meta name="description" content="현재 페이지에 대한 설정을 기술할 수 있다." />
<!-- 홈페이지의 저자를 정의 -->
<meta name="author" content="osm" />
<!-- 검색 엔진을 위한 키워드를 정의 -->
<meta name="keyword" content="java, 자바, 인터넷 " />
<!-- 10초 뒤에 재실행 해-->
<meta http-equiv="refresh" content="10 " /> 
<!-- 5초 뒤에 네이버로 이동 -->
<meta http-equiv="Refresh" content="5; https://www.naver.com " /> 
<!-- 모든 장치에서 웹 사이트가 잘 보이도록 뷰포트를 설정 -->
<meta name="viewport" content="width=device-width, initial-scale=1.0 " />

<title>Insert title here</title>
</head>
<body>
	<h1>meta태그를 이용한 예제</h1>
	<h1>location 내장객체를 이용하여 forward</h1>
		
	<script>
		//location.href = "js08_calendar_02.html";
		console.log(location);
	</script>
</body>
</html>
profile
풀스택eDot

0개의 댓글