어떻게

하우투 홈

메뉴

아이콘 바 메뉴 아이콘 아코디언 세로 탭 탭 헤더 전체 페이지 탭 호버 탭 상위 탐색 반응형 Topnav 아이콘이 있는 탐색 모음 검색 메뉴 검색 창 고정 사이드바 페이지 탐색 반응형 사이드바 전체 화면 탐색 캔버스 외 메뉴 호버 사이드 내비 버튼 아이콘이 있는 사이드바 가로 스크롤 메뉴 세로 메뉴 하단 탐색 반응형 하단 탐색 하단 테두리 탐색 링크 오른쪽 정렬 메뉴 링크 중앙 메뉴 링크 동일한 너비 메뉴 링크 고정 메뉴 스크롤 시 아래로 슬라이드 바 스크롤 시 Navbar 숨기기 스크롤 시 Navbar 축소 끈끈한 Navbar 이미지의 Navbar 마우스 오버 드롭다운 드롭다운 클릭 계단식 드롭다운 Topnav의 드롭다운 Sidenav의 드롭다운 Resp Navbar 드롭다운 하위 탐색 메뉴 드롭업 메가 메뉴 모바일 메뉴 커튼 메뉴 접힌 사이드바 접힌 측면 패널 쪽수 매기기 빵 부스러기 버튼 그룹 수직 버튼 그룹 스티커 소셜 바 알약 탐색 반응형 헤더

이미지

슬라이드쇼 슬라이드쇼 갤러리 모달 이미지 라이트박스 반응형 이미지 그리드 이미지 그리드 탭 갤러리 이미지 오버레이 페이드 이미지 오버레이 슬라이드 이미지 오버레이 줌 이미지 오버레이 제목 이미지 오버레이 아이콘 이미지 효과 흑백 이미지 이미지 텍스트 이미지 텍스트 블록 투명 이미지 텍스트 전체 페이지 이미지 이미지에 양식 영웅 이미지 배경 이미지 흐림 스크롤 시 Bg 변경 나란히 이미지 둥근 이미지 아바타 이미지 반응형 이미지 중앙 이미지 썸네일 이미지 주변 테두리 팀을 만나다 스티커 이미지 이미지 뒤집기 이미지 흔들기 포트폴리오 갤러리 필터링이 포함된 포트폴리오 이미지 줌 이미지 돋보기 유리 이미지 비교 슬라이더 파비콘

버튼

경고 버튼 개요 버튼 분할 버튼 애니메이션 버튼 페이딩 버튼 이미지의 버튼 소셜 미디어 버튼 더 읽기 덜 읽기 로딩 버튼 다운로드 버튼 알약 버튼 알림 버튼 아이콘 버튼 다음/이전 버튼 탐색의 추가 버튼 차단 버튼 텍스트 버튼 둥근 버튼 맨 위로 스크롤 버튼

양식

로그인 양식 가입 양식 결제 양식 문의 양식 소셜 로그인 양식 등록 양식 아이콘이 있는 양식 뉴스 레터 스택 형태 반응형 팝업 양식 인라인 양식 입력 필드 지우기 숫자 화살표 숨기기 클립보드에 텍스트 복사 애니메이션 검색 검색 버튼 전체 화면 검색 Navbar의 입력 필드 Navbar의 로그인 양식 사용자 정의 확인란/라디오 사용자 지정 선택 토글 스위치 체크박스 체크 Caps Lock 감지 입력 시 트리거 버튼 비밀번호 확인 비밀번호 가시성 전환 다단계 양식 자동 완성 자동 완성 끄기 맞춤법 검사 끄기 파일 업로드 버튼 빈 입력 유효성 검사

필터

필터 목록 필터 테이블 필터 요소 필터 드롭다운 정렬 목록 철자표

테이블

얼룩말 줄무늬 테이블 센터 테이블 전폭 테이블 나란히 놓인 테이블 반응형 테이블 비교표

전체 화면 비디오 모달 박스 모달 삭제 타임라인 스크롤 표시기 진행률 표시줄 스킬 바 범위 슬라이더 툴팁 디스플레이 요소 호버 팝 업 접을 수 있는 달력 HTML 포함 할 일 목록 로더 별점 매기기 사용자 평가 오버레이 효과 연락처 칩 카드 플립 카드 프로필 카드 제품 카드 경고 호출 노트 라벨 서클 스타일 HR 쿠폰 목록 그룹 글머리 기호 없는 목록 반응형 텍스트 컷아웃 텍스트 빛나는 텍스트 고정 바닥글 끈끈한 요소 동일한 높이 클리어픽스 반응형 플로트 스낵바 전체 화면 창 스크롤 그리기 부드러운 스크롤 그라디언트 Bg 스크롤 스티커 헤더 스크롤 시 헤더 축소 가격표 시차 종횡비 반응형 Iframe 좋아요/싫어요 전환 숨기기/표시 전환 다크 모드 전환 텍스트 토글 토글 클래스 수업 추가 수업 제거 활성 클래스 트리 뷰 속성 제거 오프라인 감지 숨겨진 요소 찾기 웹페이지 리디렉션 확대/축소 호버 플립 박스 수직으로 중앙 DIV의 가운데 버튼 마우스 오버 시 전환 화살표 모양 다운로드 링크 전체 높이 요소 브라우저 창 사용자 정의 스크롤바 스크롤바 숨기기 스크롤바 표시/강제 장치 모양 콘텐츠 편집 가능한 테두리 자리 표시자 색상 텍스트 선택 색상 총알 색상 수직선 분할기 애니메이션 아이콘 카운트 다운 타이머 타이프라이터 출시 예정 페이지 채팅 메시지 팝업 채팅 창 분할 화면 사용후기 섹션 카운터 인용 슬라이드쇼 닫을 수 있는 목록 항목 일반적인 장치 중단점 드래그 가능한 HTML 요소 JS 미디어 쿼리 구문 형광펜 JS 애니메이션 JS 문자열 길이 JS 지수 JS 기본 매개변수 현재 URL 가져오기 현재 화면 크기 가져오기 Iframe 요소 가져오기

웹사이트

무료 웹사이트 만들기 웹사이트 만들기 정적 웹사이트 만들기 웹사이트 만들기(W3.CSS) 웹사이트 만들기(BS3) 웹사이트 만들기(BS4) 웹사이트 만들기(BS5) 웹사이트 생성 및 보기 링크 트리 웹 사이트 만들기 포트폴리오 만들기 이력서 작성 레스토랑 웹사이트 만들기 비즈니스 웹사이트 만들기 웹북 만들기 센터 웹사이트 연락처 섹션 페이지 정보 큰 헤더 웹사이트 예시

그리드

2열 레이아웃 3열 레이아웃 4 열 레이아웃 그리드 확장 그리드 보기 나열 혼합 열 레이아웃 기둥 카드 지그재그 레이아웃 블로그 레이아웃

Google

구글 차트 구글 폰트 Google 글꼴 페어링 구글 애널리틱스 설정

변환기

무게 변환 온도 변환 길이 변환 속도 변환

블로그

개발자 취업 프론트엔드 개발자가 되십시오.

방법 - 웹사이트 구축


모든 기기, PC, 노트북, 태블릿, 휴대폰에서 작동하는 빠르고 멋진 반응형 웹사이트를 만드는 방법을 알아보세요.


CSS 프레임워크로 웹사이트 만들기

W3Schools Spaces 에 대해 들어본 적이 있습니까? 여기에서 웹사이트를 처음부터 만들거나 템플릿을 사용하여 무료로 호스팅할 수 있습니다.

무료로 시작하세요 ❯

* 신용카드 불필요


"레이아웃 초안"

It is always wise to draw a layout draft of the page design before building a website.

Having a "Layout Draft" will make it a lot easier to create a web site:

Navigation bar

Slideshow

The Band

Description of the band

Description of the band

Description of the band


Article

Article

Article


Footer


Doctype, Meta Tags, and CSS

The doctype should define the page as an HTML5 document:

<!DOCTYPE html>

A meta tag should define the character set to be UTF-8:

<meta charset="UTF-8">

A viewport meta tag should make the web site work on all devices and screen resolutions:

<meta name="viewport" content="width=device-width, initial-scale=1">

W3.CSS should take care of all our styling needs and all device and browser differences:

<link rel="stylesheet" href="https://www.w3schools.com/w3css/3/w3.css">

To learn more about styling with W3.CSS, please visit our W3.CSS Tutorial.

Our first empty web page will look much like this:

<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/3/w3.css">
<body>

<!-- Content will go here -->

</body>
</html>

Note: If you want to create a website from scratch, without the help of a CSS framework, read our How To Make a Website Tutorial.


Creating Page Content

Inside the <body> element of our web site we will use our "Layout Picture" and create:

  • A navigation bar
  • A slide show
  • A header
  • Some sections and articles
  • A footer

Semantic Elements

HTML5 introduced several new semantic elements. Semantic elements are important to use because they define the structure of web pages and helps screen readers and search engines to read the page correctly.

These are some of the most common semantic HTML elements:

The <section> element can be used to define a part of a website with related content.

The <article> element can be used to define an individual piece of content.

The <header> element can be used to define a header (in a document, a section, or an article).

The <footer> element can be used to define a footer (in a document, a section, or an article).

The <nav> element can be used to define a container of navigation links.

In this tutorial we will use semantic elements.

However, it is up to you if you want to use <div> elements instead.


The Navigation Bar

On our "Layout Draft" we have a "Navigation bar".

<!-- Navigation -->
<nav class="w3-bar w3-black">
  <a href="#home" class="w3-button w3-bar-item">Home</a>
  <a href="#band" class="w3-button w3-bar-item">Band</a>
  <a href="#tour" class="w3-button w3-bar-item">Tour</a>
  <a href="#contact" class="w3-button w3-bar-item">Contact</a>
</nav>

We can use a <nav> or <div> element as a container for the navigation links.

The w3-bar class is a container for navigation links.

The w3-black class defines the color of the navigation bar.

The w3-bar-item and w3-button class styles the navigation links inside the bar.



Slide Show

On the "Layout Draft" we have a "Slide show".

For the slide show we can use a <section> or <div> element as a picture container:

<!-- Slide Show -->
<section>
  <img class="mySlides" src="img_la.jpg" style="width:100%">
  <img class="mySlides" src="img_ny.jpg" style="width:100%">
  <img class="mySlides" src="img_chicago.jpg" style="width:100%">
</section>

We need to add a little JavaScript to change the images every 3 seconds:

// Automatic Slideshow - change image every 3 seconds
var myIndex = 0;
carousel();

function carousel() {
  var i;
  var x = document.getElementsByClassName("mySlides");
  for (i = 0; i < x.length; i++) {
    x[i].style.display = "none";
  }
  myIndex++;
  if (myIndex > x.length) {myIndex = 1}
  x[myIndex-1].style.display = "block";
  setTimeout(carousel, 3000);
}


Sections and Articles

Looking at the "Layout Draft" we can see that the next step is to create articles.

First we will create a <section> or <div> element containing band information:

<section class="w3-container w3-center" style="max-width:600px">
  <h2 class="w3-wide">THE BAND</h2>
  <p class="w3-opacity"><i>We love music</i></p>
</section>

The w3-container class takes care of standard padding.

The w3-center class centers the content.

The w3-wide class provides a wider heading.

The w3-opacity class provides text transparency.

The max-width style sets a maximum with of the band description section.

Then we will add a paragraph describing the band:

<section class="w3-container w3-content w3-center" style="max-width:600px">
<p class="w3-justify">
We have created a fictional band website. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</section>

The w3-justify class justifies the text's right and left margins.

Then create a <section> or <div> with an <article> or <div> about each band-member:

<section class="w3-row-padding w3-center w3-light-grey">
  <article class="w3-third">
    <p>John</p>
    <img src="img_bandmember.jpg" alt="Random Name" style="width:100%">
  </article>
  <article class="w3-third">
    <p>Paul</p>
    <img src="img_bandmember.jpg" alt="Random Name" style="width:100%">
  </article>
  <article class="w3-third">
    <p>Ringo</p>
    <img src="img_bandmember.jpg" alt="Random Name" style="width:100%">
  </article>
</section>


Footer

Finally we will use a <footer> or <div> to create a footer:

<!-- Footer -->
<footer class="w3-container w3-padding-64 w3-center w3-black w3-xlarge">
  <a href="#"><i class="fa fa-facebook-official"></i></a>
  <a href="#"><i class="fa fa-pinterest-p"></i></a>
  <a href="#"><i class="fa fa-twitter"></i></a>
  <a href="#"><i class="fa fa-flickr"></i></a>
  <a href="#"><i class="fa fa-linkedin"></i></a>
  <p class="w3-medium">
    Powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank">w3.css</a>
  </p>
</footer>

The fa fa classes are Font Awesome Icon classes.

To use these classes you must link to a Font Awesome library:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">

To learn more about using icons, please visit our Icons Tutorial.