소스 파일 : /base_utils/html_head.php (2021-07-25)     소스 설명 : (공통) html 헤더부 선언
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
<?php // (2024.12.15, 차재복, Cha Jae Bok, http://www.ktword.co.kr) 

# html 헤더부 (html 선언, utf-8 선언, title, 반응형 웹 셋팅)

	// html 선언부
	echo "<!DOCTYPE html>" ."\n";
	echo "<html lang='ko'>" ."\n";
	
    // head 시작
    echo "<head>" ."\n";

    	// utf-8 선언 ([참고] https://developer.mozilla.org/ko/docs/Web/HTML/Element/meta)
   	    echo "<meta charset='utf-8'>" ."\n";

        // title 선언
        if (!isset($html_title)) echo "<title>[정보통신기술용어해설]</title>" ."\n";
        else echo "<title>$html_title</title>" ."\n";

		// 반응형 웹 설정
		echo "<meta name='viewport' content='width=device-width, initial-scale=1.0' />" ."\n";
            // user-scalable=yes, 

        // http header 설정 : 캐시 최대 1일 만 유효
        header('Cache-Control: max-age=86400');

    // head 끝
    echo "</head>" ."\n";
?>


"본 웹사이트 내 모든 저작물은 원출처를 밝히는 한 자유롭게 사용(상업화포함) 가능합니다"