1. HTML 개발 환경 세팅

김해준's avatar
Jan 06, 2026
1. HTML 개발 환경 세팅

1. 커서 설치 및 세팅

저장 시 자동 줄바꿈 설정
notion image
notion image
 
 

2. Extensions 필요 툴 설치

live server
  • 코드에서 웹 브라우저를 바로 띄울 수 있도록 도와주는 툴
notion image
prettier
  • html 자동 정렬을 도와주는 툴
notion image
CursorAI 자동정렬 단축키 : Shift + Alt + F
notion image
 

3. DEMO 테스트

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> </head> <body> Hello World </body> </html>
notion image
notion image
핫 리로드 테스트
notion image
커서 자동완성 비활성화
notion image
notion image
커서의 ai 탭 켜기/끄기 : Ctrl + L
notion image
커서의 왼쪽 탭 켜기/끄기 : Ctrl + B
notion image

테스트 코드

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> </head> <body> <h1>HTML</h1> Hypertext Markup Language (HTML) is the standard markup language for <strong>creating <u>web</u> pages</strong> and web applications. <h1>W3C</h1> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> <h4>This is heading 4</h4> <h5>This is heading 5</h5> <h6>This is heading 6</h6> </body> </html>
notion image
 
notion image
갑 - 웹 서버 / 을 - 브라우저 (자원을 가지고 있는 웹 서버가 갑이다)
브라우저에서 웹 서버로 소켓(Socket) 연결 한 후 스트림(Stream)을 통해 URL을 전달하며 html파일을 요청(request)한다
웹 서버에선 브라우저에게 받은 URL을 파싱 하여 웹 서버 내 해당 html 파일을 찾아 스트림을 연결하고 Buffered Reader를 통해 해당 html을 문자열로 읽는다
읽은 내용(문자열)을 클라이언트와 연결된 소켓 스트림을 통해 반환(response)한다
브라우저에선 전달 받은 문자열을 파싱 하여 화면에 표출한다
웹 서버는 반 이중 프로토콜로 되어있다
웹 서버는 무상태(stateless) 서버 이다
(상태 - 클라이언트)
(클라이언트 상태를 기억하지 않음 → 기억할 필요가 없음 / 메모리를 적게 사용함)
Share article