화면과 코드를 함께 보기 View Screen and Code Together

예시 웹페이지 살펴보기 Explore Example Webpages

살펴볼 예시를 먼저 고른 뒤, 화면의 글자와 버튼이 HTML, CSS, JavaScript 코드와 어떻게 연결되는지 확인하세요. First choose an example to explore, then check how the text and buttons on the screen connect with the HTML, CSS, and JavaScript code.

예시를 보기 전에 기초가 필요하다면 If you need the basics before exploring examples 프로젝트 폴더 구성과 index.html, style.css, script.js의 역할을 알아보세요. 시간표의 수업명, 퀴즈 점수, 날씨 값이 코드 파일, 내 브라우저, 인터넷 서비스 중 어디에서 만들어지는지도 설명합니다. Learn about the project folder structure and the roles of index.html, style.css, and script.js. It also explains whether the class names in the timetable, quiz scores, and weather values are created in the code files, your browser, or an internet service. 웹페이지 기초 보기 View Webpage Basics

예시 선택 Select Example

어떤 웹페이지를 살펴볼까요? Which webpage shall we explore?

처음이라면 우리 반 시간표부터 차례로 살펴보세요. 각 카드의 마지막 줄에는 수업명, 뽑힌 번호, 퀴즈 점수처럼 화면에 표시되는 값이 언제 만들어지고 어디에 저장되는지 적었습니다. If it is your first time, look at our class timetable first and proceed in order. The last line of each card notes when values displayed on the screen, like class names, drawn numbers, and quiz scores, are created and where they are stored.

선택한 예시 Selected Example 우리 반 시간표 자세히 살펴보기 Take a closer look at our class timetable 예시 화면의 요소를 누르고 그 요소를 만든 코드를 확인합니다. Click an element on the example screen and check the code that created that element.

기초 예시 · HTML 표와 요일 선택 Basic Example · HTML Table and Day Selection

우리 반 시간표 살펴보기 Explore Our Class Timetable

HTML이 요일과 교시를 표의 행과 열에 어떻게 놓는지 먼저 살펴보세요. 기능 실행에서 요일 버튼을 누르면 JavaScript가 선택한 요일의 열과 수업 요약을 어떻게 바꾸는지도 확인할 수 있습니다. First see how HTML places days and periods in the rows and columns of the table. In Function Execution, when you click a day button, you can check how JavaScript changes the column of the selected day and the class summary.

현재 프로젝트 구성 Current Project Structure 코드 파일 1개 1 Code File

HTML, CSS, JavaScript 코드를 index.html 안에 함께 넣습니다.

class-schedule/
index.htmlHTML + CSS + JavaScript
지금 보는 파일 File currently viewing index.html

화면에서 고른 부분이나 위 메뉴에서 선택한 원리와 직접 관련된 코드만 표시합니다. Only the code directly related to the selected part on the screen or the principle selected from the menu above is displayed.

이 코드가 하는 일 What This Code Does

index.html HTML · 웹페이지 준비 HTML · Webpage Preparation

시간표 웹페이지를 시작해요 Start the Timetable Webpage

HTML 문서임을 선언하고 한국어, 글자 인코딩, 화면 너비와 페이지 제목을 정한 뒤 시간표 내용을 시작합니다.

한 파일 방식에서는 꾸미기와 기능 코드도 index.html 안에 함께 들어갑니다.

결과 화면 Result Screen

무엇을 해 볼까요? What shall we do?코드를 찾거나, 직접 실행해 볼 수 있어요. You can find the code or run it directly.

우리 반 시간표 · class-schedule Our Class Timetable · class-schedule
코드 찾기 중 Finding Code

5학년 2반 Grade 5 Class 2

우리 반 시간표 Our Class Timetable

월요일 Monday 국어 · 수학 · 과학 · 체육 · 음악 Korean · Math · Science · PE · Music 요일 버튼을 누르면 선택한 요일의 수업을 강조합니다. Clicking a day button highlights the classes for the selected day.
월요일부터 금요일까지 1~5교시 시간표 Timetable for periods 1~5 from Monday to Friday
교시 Period Mon Tue Wed Thu Fri
1국어 Korean수학 Math영어 English과학 Science국어 Korean
2수학 Math국어 Korean체육 PE영어 English수학 Math
3과학 Science사회 Social Studies국어 Korean수학 Math음악 Music
4체육 PE미술 Art사회 Social Studies국어 Korean과학 Science
5음악 Music창체 Creative Activities수학 Math실과 Practical Arts미술 Art
화면에서 고른 부분 The Part Selected on the Screen 요일 선택 버튼 Day Selection Button

코드 찾기에서는 요일이 바뀌지 않습니다. 대신 요일 버튼을 만든 HTML, 선택한 버튼의 색을 정한 CSS, 버튼 클릭을 요일 선택 함수와 연결한 JavaScript를 보여 줍니다. In Find Code, the day does not change. Instead, it shows the HTML that created the day button, the CSS that set the color of the selected button, and the JavaScript that connected the button click to the day selection function.

확인하기 Check 기능 이해 점검 Function Understanding Check 화면에서 본 기능과 작동 원리를 세 가지 질문으로 확인합니다. Check the functions seen on the screen and their operating principles with three questions.
직접 만들기 Make It Yourself AI와 예시 웹페이지 만들어 보기 Try creating an example webpage with AI 간단한 요청문이나 자세한 요청문을 골라서 복사합니다. Choose and copy a simple or detailed request.

직접 만들어 보기 Try Making It Yourself

이해한 기능을 내 웹페이지에 하나씩 더해요 Add the understood features to my webpage one by one

예시와 똑같이 시작해도 되고, 필요한 기능만 AI에게 부탁해 내 프로젝트에 넣어도 됩니다. 코드를 붙여넣은 뒤에는 미리보기와 오류 내용을 직접 확인하세요. You can start exactly like the example, or ask the AI for only the necessary features and put them into your project. After pasting the code, directly check the preview and error contents.

새 프로젝트 시작 Start a New Project