<!DOCTYPE html> <html lang="ko"> <head> <meta charset="utf-8"> <title>하이퍼 링크</title> </head> <body> <div id="top"> <h1>TOP</h1> <a href="#HTML">HTML</a> <a href="#CSS">CSS</a> <a href="#JS">JavaScript</a> </div> <div id="HTML"> <h1>HTML</h1> <a href="#top">위로</a> <p>HTML은 웹문서의 내용을 구조화 합니다.</p> </div> <div id="CSS"> <h1>CSS</h1> <a href="#top">위로</a> <p>CSS는 웹문서의 멋지게 시각화할 수 있습니다</p> </div> <div id="JS"> <h1>JavaScript</h1> <a href="#top">위로</a> <p>Javascript는 웹페이지를 동적으로 프로그래밍 합니다.</p> </div> </body> </html>
html, body{height: 100%; margin:0; padding:0} div {height:80%;} #HTML {background-color: #00ffff;} #CSS {background-color: #ffccff;} #JS {background-color: #4ce600;}