세종대학교 웹프로그래밍 강의를 듣고 요약한 글
user > Router > ISP(Internet service Providers) >>backbone connection>> 연결
모든기기는 IP주소를 가지고 있다.
IP 주소는 static(permanent) 할 수도 있고 dynamic(temporary)할 수도 있다.
database를 이용하여 IP주소와 computer name을 map해준다.
DNS 서버에 subset of databse가 저장되어있다.
Application -> http, email, FTP 등등
TCP(Transmission Control Protocol) -> packet+ port number
IP(Internet Protocol) -> packet + IP주소
Hardware -> binary packet data
만약에 computer A가 B에게 전할 message가 길면, manageble한 chunk단위로 쪼개서 보낸다. 우리는 이를 packet이라고 부르며 port number와 IP주소가 포함되어있다.
= webpage의 합
"static" 변하지 않는다!
1.URL이 domain name을 포함할 경우, broweser은 DNS에 연결하고 응답하는 IP주소를 가져옴
2.web browser는 web server와 연결하고 protocol stack을 통과하여 HTTP 요청을 보낸다.
3. web server는 요청을 받고 우너하는 page를 확인한다. 그 page가 존재하면, web server는 그것을 다시 보내준다. 못찾으면 404 error 메시지를 보낸다.
4. web browser가 page를 받으면 그 connection은 closed된다.
5. 그 후에, 브라우저가 웹 페이지 구문을 분석하고 페이지를 완성시킬 때 필요한 다른 요소들을 찾는다.(^ 다른 요소: 이미지,applet)
-> Tree
- 사용예시: <p style="color:red"> contents </p>
Better accessibility
Easier to read the code
Helps CSS work correctly
Search Engines & assistive tools like it
<ul> <li>@</li> </ul>
<ol> <li>@</li> </ol>
<dl> <dt>제목</dt><dd>내용</dd> </dl>
<acronym title="American Type Founders"> ATF </acronym>
<abbr title="Points">pts.</abbr>
<p>This is an inline span <span style="border: 1px solid black">Hello World</span> element inside a paragraph.</p>
<div style="border: 1px solid black">Hello World</div>
<p>The DIV element is a block element, and will always start on a new line and take up the full width available (stretches out to the left and right as far as it can).</p>
#id vs .class
id
unique id for an HTML element.
class
grouping similar elements
다른 element랑 class share가능
HTML Validatioin
<a href="UR">llink</a>
1. Absolute URL
<a href="http://www.asdasd.com">your domain</a>
2. Relative URL
<a href="about.html">your domain</a>
your own site 에서 왔다갔다하면 relative URL쓴다.
id->#