








메뉴 → File → Add project folder

1.html 파일을 클릭
1.html 파일을 더블클릭해도 웹 브라우저에서 오픈 가능함

file -> settings -> editor -> Soft Wrap 항목을 체크
html.html 파일에 다음 내용을 입력/저장하고, 브라우저 새로고침
See the Pen start html.html by logistex (@logistex) on CodePen.
<strong></strong> 태그를 적용<u></u> 태그를 적용See the Pen emphasize.html by logistex (@logistex) on CodePen.


chcp 명령을 실행하면 확인 가능함html.html 파일을 열어보면 한글이 깨짐chcp 65001 명령을 실행하면 됨<meta charset="utf-8"> 코드를 1.html 앞 부분에 추가


페이지 소스보기(View Page Source)
<h1>으로 시작하는 코드를 살펴보면, 여전히 복잡…
|
1 2 3 4 5 6 |
<h1 class="logo"> <a tabindex="2" accesskey="1" href="/"> <img src="/2008/site/images/logo-w3c-mobile-lg" width="90" height="53" alt="W3C" /> </a> <span class="alt-logo">W3C</span> </h1> |
cs |
<img ...> 부분은 그림을 표시하는 태그인데, 이를 제거하면 …
1 2 3 4 5 |
<h1 class="logo"> <a tabindex="2" accesskey="1" href="/"> </a> <span class="alt-logo">W3C</span> </h1> |
cs |
<a>...</a> 부분은 링크를 연결하는 역할의 태그인데, 이를 제거하면 …
1 2 3 |
<h1 class="logo"> <span class="alt-logo">W3C</span> </h1> |
cs |
<span>...</span> 부분은 줄바꿈 없이 어떤 효과를 연출하기 위한 태그인데, 이를 제거하면 …
1 2 3 |
<h1 class="logo"> W3C </h1> | cs |
class="logo" 부분은 태그에 효과를 연출하기 위한 코드인데, 이를 제거하면 …
1 2 3 |
<h1> W3C </h1> |
cs |
<h1> 태그만 남는다는 …
1 |
<h1>W3C</h1> |
cs |
h1 태그의 의미를 탐구
h1 태그가 열리고, 닫혔다는 것은 알겠네!h1 태그 내부에 ‘W3C’라는 단어가 표시되겠네!h1 태그가 어떤 역할을 하는지는 모름HTML h1 tag로 검색하면, h1 태그의 정체에 대해서는 순식간에 알아낼 수 있음

h 뒤에 숫자가 나옴h 뒤의 숫자가 커질수록, 글씨는 작아짐The
<h1>to<h6>tags are used to define HTML headings.
<h1>defines the most important heading.<h6>defines the least important heading.
<h1>부터<h6>까지의 태그는 HTML 문서에서 제목을 정의하는 데 사용합니다.
<h1>은 가장 중요한 제목을 정의합니다.<h6>은 가장 덜 중요한 제목을 정의합니다.
h 태그는 HTML 문서에서 제목을 지정하는 태그h1 태그는 제일 큰 제목을 지정하는 태그<h1>HTML</h1> 코드 추가See the Pen with h1.html by logistex (@logistex) on CodePen.
h1 태그를 도서관에 가서 찾아봐야 했던 시절도 있었음




html과 head 태그는 모든(100%) 웹 문서에 등장title 태그는 97.9%의 웹 문서에 등장 (title 태그가 누락된 웹 문서도 2.1%나 됨)li와 p 태그는 80.8%의 웹 문서에 등장h1 태그는 61.9%의 웹 문서에 등장strong 태그는 45.1%의 웹 문서에 등장
br 태그 예제
See the Pen no new line.html by logistex (@logistex) on CodePen.
html new line tag로 검색br 태그See the Pen with br tag.html by logistex (@logistex) on CodePen.
<br> 태그는 단독 태그라서 <br />로 쓰기도 함<br> 태그는 내용을 감싸는 태그가 아니라, 해당 위치에서 줄바꿈하라는 의미<br> 태그는 여는 태그와 닫는 태그가 쌍으로 구성되지 않고, 단독으로 쓰임<br />로 쓰기도 함p 태그 예제
html paragraph tag로 검색<p> ... </p> 태그br 태그
br 태그 예제의 결과와 p 태그 예제의 결과는 br 태그는 단락과는 전혀 무관함p 태그를 써야 단락이라는 실체로 인정됨P 태그의 불편함, br 태그의 편리함
br 태그를 쓰면 단락과 단락 사이의 여백 크기를 br 태그를 반복하여 조절 가능함P 태그에서 단락과 단락 사이의 여백 크기는 정해져 있음p 태그를 쓰되 단락과 단락 사이의 여백을 더 크게 하려면,style="margin-top:45px;"라는 CSS 코드를 추가 <p style="margin-top:45px;">
See the Pen styling with CSS by logistex (@logistex) on CodePen.
br 태그보다 p 태그가 좋다는 점을 이해하는 것p 태그를 써서 단락의 경계를 명확하게 지정하되p 태그br 태그

스타일이 본문인 상태에서) 글자 크기를 22로 키우고, 진하게 지정
스타일을 적당한 크기의 제목으로 지정
스타일이 눈에 보이지 않았을 것소스 단추를 눌러보기
<strong><span style="font-size:22px;">coding</span></strong>
<h3>coding</h3>

img 태그도 공부할 예정img 태그
img 태그를 썼지만 그림은 안 보이네…
See the Pen not shown image.html by logistex (@logistex) on CodePen.
<img>?</img>처럼 쓸 수 있을까요?? 자리에 그림을 넣을 수 있을까요?img 태그에 표시할 그림을 지정할 문법적 장치가 필요함img 태그 내부에 표시할 그림을 지정하는 속성이라는 장치를 도입
<img src="https://s3-ap-northeast-2.amazonaws.com/opentutorials-user-file/module/3135/7648.png">
"https://s3-ap-northeast-2.amazonaws.com/opentutorials-user-file/module/3135/7648.png" 부분이속성="속성값" 문법 형식
See the Pen shown image by logistex (@logistex) on CodePen.
src 속성으로 웹에 존재하는 이미지를 내 문서에 표시했음
<img src="https://s3-ap-northeast-2.amazonaws.com/opentutorials-user-file/module/3135/7648.png">
<img src=".\photo-1610146140168-eb3b4219a80f.jpg">
public domain image로 검색이미지를 다른 이름으로 저장 메뉴를 써서 내 컴으로 다운로드img 코드를 활용
src 속성이 존재한다면, …html img size attribute 검색
<img width="30%" src="./photo-1610146140168-eb3b4219a80f.jpg">



<parent>
<child></child>
</parent>
<p>
<a href="https://logistex.github.io/smart_IT/">신입생을 위한 신교수 특강</a>
</p>
p 태그 내부에 포함된 a 태그a 태그는 하이퍼 링크 역할a 태그가 항상 p 태그의 자식이어야 하는 것은 아님p 태그가 항상 a 태그의 부모이어야 하는 것은 아님고정적 부모-자식 관계인 태그도 존재함

See the Pen no list by logistex (@logistex) on CodePen.
li 태그로 작성한 수업 목록
See the Pen list.html by logistex (@logistex) on CodePen.
li 태그로 작성한 과일 목록
- 수업 목록과 과일 목록의 구분이 어려움
- 목록 간의 구분이 필요함
- 이 항목은 수업 목록이고, 이 항목은 과일 목록이라는 식으로ul을 써서 자식 항목을 소속시키는 방식
See the Pen fruits list.html by logistex (@logistex) on CodePen.
ul 태그를 사용하여 부모-자식 관계를 설정한 목록
ul 태그 내부에 자식 li 태그 항목을 두는 방식ul 태그와 과일 ul 태그 사이에 빈 줄이 없어도 웹 화면에서 빈 줄이 표시됨ul 태그와 과일 ul 태그 사이에 빈 줄을 두는 방식이 코드의 가독성을 높여줌See the Pen ul li.html by logistex (@logistex) on CodePen.
li 태그는 ul 부모 태그에 고정적으로 포함되는 방식으로 사용함
See the Pen ol.html by logistex (@logistex) on CodePen.
li 태그ol 태그로 변경하여 남긴 코드See the Pen ol final.html by logistex (@logistex) on CodePen.



html title 검색

title 태그 활용
<title>WEB1 - html</title>
title 태그는 검색 엔진이 웹 페이지를 분석할 때, 중요하게 취급하는 태그See the Pen title.html by logistex (@logistex) on CodePen.
UTF-8 방식이 표준임웹 문서 작성할 때 사용한 인코딩 방식과
웹 브라우저가 해석할 때 사용하는 인코딩 방식이
서로 다르면 웹 브라우저에서 글자가 깨져서 보임

웹 문서를 작성할 때 사용한 인코딩 방식이 ‘UTF-8’임을 확인

UTF-8임을 신고
<meta charset="utf-8">
See the Pen charset.html by logistex (@logistex) on CodePen.
title과 meta 태그의 공통점
<title>WEB1 - html</title>
<meta charset="utf-8">
body 태그head 태그See the Pen head body.html by logistex (@logistex) on CodePen.
!doctype 및 html 태그
!doctype html
html 태그
html 태그의 자식 태그는 head와 body 태그html 태그는 여는 태그와 닫는 태그로 구성됨 <!doctype html>
<html>
<head>
...
</head>
<body>
...
</body>
</html>
See the Pen doctype html.html by logistex (@logistex) on CodePen.
<!doctype html>
<html>
<head>
<title>...</title>
<meta charset="utf-8">
...
</head>
<body>
...
</body>
</html>

File > Settings > Install에서Package 검색한 후,Install



a
a 태그에 대한 링크는 https://html.spec.whatwg.org/#the-a-elementhtml a tag 검색<a>...</a> 태그를 쓰면, ...으로 표시된 문구에 링크가 걸림href 속성은 HyperText Reference의 약자target="_blank는 링크를 클릭했을 때,title 속성은 이 링크가 어떤 내용을 담고 있는지를See the Pen link tag.html by logistex (@logistex) on CodePen.



index.html1_html.html2_css.html3_javascript.html

index.html
See the Pen index.html by logistex (@logistex) on CodePen.
1_html.html
See the Pen 1_html.html by logistex (@logistex) on CodePen.
1_html.html을 복사하여 적절히 수정하여 나머지 문서를 완성2_css.html
See the Pen 고 2_css.html by logistex (@logistex) on CodePen.
3_javascript.html
See the Pen 3_javascript.html by logistex (@logistex) on CodePen.

구글에서 ‘CSS 화면 레이아웃’으로 검색
CSS / 고정형 레이아웃 만들기 참고
완성된 index.html
See the Pen index_css.html by logistex (@logistex) on CodePen.
1_html.htmlSee the Pen 1_html_css.html by logistex (@logistex) on CodePen.
2_css.htmlSee the Pen 2_css_csss.html by logistex (@logistex) on CodePen.
3_javascript.htmlSee the Pen 3_javascript_css.html by logistex (@logistex) on CodePen.
css.cssSee the Pen css_final.css by logistex (@logistex) on CodePen.
index.htmlSee the Pen index_final.html by logistex (@logistex) on CodePen.
1_html.htmlSee the Pen 1_html_final.html by logistex (@logistex) on CodePen.
2_css.htmlSee the Pen 2_css_final.html by logistex (@logistex) on CodePen.
3_javascript.htmlSee the Pen 3_javascript_final.html by logistex (@logistex) on CodePen.
code를 클릭하면, 보이는 메뉴에서Download Zip 항목을 클릭하면 내 컴퓨터로 다운로드 가능함완성된 웹 사이트는 https://logistex.github.io/test0100/에서 확인할 수 있음
