공부한 것 복습겸 정리.
style css사용 선언. a href="2.html" style="color:red" a{}는 선택자(selector) color:red는 효과(declaration)다. text-decoration: none; 장식(밑줄, 강조)을 없애는 css font-size:60px; 글자 크기 조정 text-align: center; 글자 위치 ...
자바스크립트는 사용자와 상호작용을 하는 언어이다. script_ html한테 javascript가 시작된다고 알려줘야 한다. input type="버튼" value="안녕" onclick="alert('안녕')"onclick은 이벤트, 클릭시 alert 실행. input type="버튼" onkeydown="alert('키입력')" 키가 입력이벤트 ...
문자를 쓸때는 ""이나 ''으로 세트를 맞춤, 중간에 있으면 \\' 역슬래쉬를 써서 탈출 시켜 사용한다.typeof를 쓰면 정보의 타입을 알 수 있다."길이는?".length변수(variable) Var 값을 저장.대입 연산자 = a=1 우항 값 1을 좌항a에게 대입.
모던자바스크립트(https://ko.javascript.info/function-basicsshowMessage("Ann"); // Ann: no text given함수 선언(Function Declaration),function sayHi() { alert
try catch문 + async awaitwindow.addEventListener('scroll', () => { if (window.innerHeight + window.scrollY >= document.body.offsetHeight - 1000 && re