Skip to content · ⁨본문 바로가기⁩

Showing and hiding (display) · ⁨보이기 및 숨기기 (display)⁩

English

How boxes flow

  • Some elements are block: they stack on top of each other and fill the width — <div>, <p>, <h1>.
  • Some are inline: they sit side by side, taking only as much room as they need — <span>, <a>, <strong>.
  • display lets you change which way an element behaves.

한국어

박스의 흐름

  • 일부 요소는 블록: 서로 쌓여 전체 너비를 차지합니다 — <div>, <p>, <h1>.
  • 일부는 인라인: 나란히 배치되어 필요한 만큼만 공간을 사용합니다 — <span>, <a>, <strong>.
  • display는 요소의 동작 방향을 변경할 수 있게 해줍니다.

블록 요소는 자체 줄에 쌓이고, 인라인 요소는 나란히 배치되며, 숨김은 없습니다

Handout · ⁨교재 자료⁩

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP