ยซ   2025/02   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
Archives
Recent Posts
02-02 00:31

Today
Total

Recent Comments
๊ด€๋ฆฌ ๋ฉ”๋‰ด

์—ฐ์˜ ๊ธฐ๋ก ๐Ÿช

HTML ๊ธฐ์ดˆ ๋‚ด์šฉ ์ •๋ฆฌ -2 ๋ณธ๋ฌธ

WEB/HTML+CSS+JS

HTML ๊ธฐ์ดˆ ๋‚ด์šฉ ์ •๋ฆฌ -2

kite707 2020. 12. 4. 11:22

์ €๋ฒˆ์— ํ•˜๋˜ ๋‚ด์šฉ์— ์ด์–ด์„œ HTML๊ณต๋ถ€๋ฅผ ์ด์–ด์„œ ํ•˜๋„๋ก ํ•˜์ž!

์›๋ž˜ ํ•œ๊ตญ์–ด๋ฅผ ๋„ฃ์œผ๋ฉด ๊นจ์ง€๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค๋Š”๋ฐ ์–˜๋Š” ์•ˆ๊นจ์ง„๋‹ค..?

์ด๊ฑด ์ง€๋‚œ๋‚ด์šฉ ๋ณต์Šต..... 

๋ฌธ์ž๊ฐ€ ๊นจ์ง€๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค๋Š”๋ฐ ๊ทธ ์ด์œ ๋Š” ์›นํŽ˜์ด์ง€๊ฐ€ ์ €์žฅํ•œ ๋ฌธ์ž ํ‘œํ˜„๋ฐฉ์‹๊ณผ ์›น ๋ธŒ๋ผ์šฐ์ €๊ฐ€ ์›นํŽ˜์ด์ง€๋ฅผ ํ•ด์„ํ•˜๋Š” ๋ฐฉ์‹์ด ์ผ์น˜ํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค. 

์œ„ ์‚ฌ์ง„์—์„œ ์˜ค๋ฅธ์ชฝ ์•„๋ž˜๋ฅผ ๋ณด๋ฉด UTF-8์ด๋ผ๊ณ  ์“ฐ์—ฌ์žˆ๋Š”๋ฐ ์ด๋Š” ์ด ์›นํŽ˜์ด์ง€๊ฐ€ UTF-8๋กœ ์ €์žฅ๋˜์—ˆ๋‹ค๋Š” ๋œป์ด๋‹ค. ์ฆ‰ ์›น๋ธŒ๋ผ์šฐ์ €์— UTF-8๋กœ ์—ด๋ผ๋Š” ์ง€์‹œ๋ฅผ ๋‚ด๋ ค ์ฃผ์–ด์•ผ ํ•œ๋‹ค. ์ด๊ฒƒ์ด ๋‘๋ฒˆ์งธ ์ค„์— ์žˆ๋Š” <meta charset="utf-8"> ๊ฐ€ ์˜๋ฏธํ•˜๋Š” ๊ฒƒ์ด๋‹ค.

๋˜ ๊ณต๋ถ€ํ–ˆ๋˜๋Œ€๋กœ <!doctype html>๋ฅผ ์ฒซ์ค„์— ์จ์ฃผ๊ณ  <html></html>๋กœ head์™€ bodyํƒœ๊ทธ๋ฅผ ๊ฐ์‹ธ์ฃผ๋„๋ก ํ•˜์ž.

 

 

์ด๋ฒˆ์—๋Š” ๋งํฌ๋ฅผ ํ•œ๋ฒˆ ๋„ฃ์–ด๋ณด์ž!

๋งํฌ๋ฅผ ๋„ฃ์„ ๋•Œ๋Š” <a></a>๋กœ ๊ฐ์‹ธ์ค€๋‹ค. a๋Š” anchor์˜ ์•ฝ์ž์ด๋‹ค. anchor์€ ๋‹ป์„ ์˜๋ฏธํ•˜๋Š”๋ฐ ์ •๋ณด์˜ ๋ฐ”๋‹ค์— ์ •๋ฐ•ํ•œ๋‹ค๋Š” ์˜๋ฏธ๋ผ๊ณ  ํ•œ๋‹ค. ์•„๋ž˜ ๊ทธ๋ฆผ์„ ๋ณด์ž.

์šฐ์„  ๋งํฌ๋ฅผ ๋„ฃ์„ ๋•Œ๋Š” ๋งํฌ๋ฅผ ๊ฑธ ๋Œ€์ƒ(๊ธ€์ž, ๊ทธ๋ฆผ ๋“ฑ...)์„ <a></a>๋กœ ๊ฐ์‹ธ๊ณ  <a href="~~~">์ด๋Ÿฐ ํ˜•์‹์œผ๋กœ ์“ฐ๋ฉด ๋œ๋‹ค. ์—ฌ๊ธฐ์„œ href๋Š” Hypertext REFerence๋ฅผ ์˜๋ฏธํ•œ๋‹ค. ์—ฌ๊ธฐ์— ์—ฐ๊ฒฐ๋˜๋„๋ก ํ•˜๊ณ ์‹ถ์€ ๋งํฌ๋ฅผ ๋„ฃ์–ด์ฃผ๋ฉด ๋œ๋‹ค. 

์œ„ ๋นจ๊ฐ„์ƒ‰์œผ๋กœ ํ‘œ์‹œ๋œ ๋ถ€๋ถ„์—์„œ target="_blank"์ด๋ถ€๋ถ„์€ ๋งํฌ๋ฅผ ์ƒˆ๋กœ์šด ์ฐฝ์œผ๋กœ ์—ฐ๋‹ค๋Š” ๊ฒƒ์„ ์˜๋ฏธํ•œ๋‹ค. ๊ทธ๋ฆฌ๊ณ  title๋ถ€๋ถ„์€ ์œ„ ์‚ฌ์ง„์ฒ˜๋Ÿผ ๋งํฌ๊ฐ€ ๊ฑธ๋ฆฐ ๊ณณ์— ๋งˆ์šฐ์Šค๋ฅผ ๊ฐ€์ ธ๊ฐ€๋ฉด ๋ถ€์—ฐ์„ค๋ช…์„ ๋ณด์—ฌ์ค€๋‹ค.

 

์ด ๋‚ด์šฉ์„ ํ™œ์šฉํ•ด์„œ ์‚ฝ์ž…ํ•œ ์ด๋ฏธ์ง€์— ๋งํฌ๋ฅผ ๊ฑธ์–ด๋ณด์ž, ์ด๋ฒˆ์—๋Š” ์ƒˆ๋กœ์šด ์ฐฝ์ด ์•„๋‹Œ ํ˜„์žฌ ์ฐฝ์— ํ™”๋ฉด์„ ๋„์šธ ๊ฒƒ์ด๋‹ค.

<!DOCTYPE html>
<html>
  <head>
    <title>WEB1 - HTML</title>
    <meta charset=utf-8">
  </head>

  <body>
  <ol>
    <li>html</li>
    <li>css</li>
    <li>javascript</li>
  </ol>
  <h1>HTMLํ•œ๊ตญ์–ดํ•œ๊ตญ์–ดํ•œ๊ตญ์–ด</h1>
    <p><a
      href="https://www.w3.org/TR/html5/" target="_blank" title="๋งํฌ ๋ถ€์—ฐ์„ค๋ช…">
  Hypertext Markup Language (HTML)</a> is the standard markup language
  for <strong>creating <u>web</u> pages</strong> and web applications.Web browsers receive
  HTML documents from a web server or from local storage and render
  them into multimedia web pages. HTML describes the structure of a web
  page semantically and originally included cues for the appearance of the document.</p>
  <a href="https://html.spec.whatwg.org/dev/" title = "๊ฐœ๋ฐœ์ž๋ฒ„์ „"><img src="๊ทธ๋ฆผ.jpg" width=100%</img></a>
  <p>HTML elements are the building blocks of HTML pages.
   With HTML constructs, images and other objects, such as interactive forms,
   may be embedded into the rendered page. It provides a means to create structured
   documents by denoting structural semantics for text such as headings, paragraphs,
   lists, links, quotes and other items. HTML elements are delineated by tags, written
    using angle brackets.</p>
  </body>
</html>

์ด๋ ‡๊ฒŒ ํ•˜๋ฉด ๋  ๋“ฏํ•˜๋‹ค.

์˜๋„๋Œ€๋กœ ์ž˜ ์ž‘๋™ํ•œ๋‹ค!


์ด์ œ ์—ฌํƒœ ๋ฐฐ์šด ๋‚ด์šฉ๋“ค์„ ๋ชจ๋‘ ๋ชจ์•„ ํ•˜๋‚˜์˜ ์›น ์‚ฌ์ดํŠธ๋ฅผ ๋งŒ๋“ค์–ด๋ณด์ž!

์ด๋ ‡๊ฒŒ ์œ„์™€ ๊ฐ™์€ ์›นํŽ˜์ด์ง€๋ฅผ ๋งŒ๋“ค์–ด ๋ณด๋„๋ก ํ•˜์ž. ๋‹ค๋งŒ ๋‚˜๋Š” ๋‚ด์šฉ์„ ์ž„์˜๋กœ ์กฐ๊ธˆ์”ฉ ๋ฐ”๊ฟ€ ๊ฒƒ์ด๋‹ค. 

์ตœ์ข…์ ์œผ๋กœ ์™„์„ฑ๋œ ํŽ˜์ด์ง€!

๋‚˜๋Š” ๋ชฉ์ฐจ๋ฅผ ๋ˆ„๋ฅด๋ฉด ํ•ด๋‹น ๊ฒŒ์ž„์˜ ๋‚˜๋ฌด์œ„ํ‚ค ์„ค๋ช…๊ธ€๋กœ ๋„˜์–ด๊ฐ€๋„๋ก ๋งํฌ๋ฅผ ๊ฑธ๊ณ  ์•„๋ž˜์— ์‚ฌ์ง„์„ ์‚ฝ์ž…ํ–ˆ๋‹ค!

<!DOCTYPE html>
<html>
<head>
<title>First page</title>
<meta charset="utf-8">
</head>

<body>
<h1>GAME</h1>
  <ol>
    <a href="https://namu.wiki/w/%EB%A6%AC%EA%B7%B8%20%EC%98%A4%EB%B8%8C%20%EB%A0%88%EC%A0%84%EB%93%9C" target="_blank" title = "๋กค ๋‚˜๋ฌด์œ„ํ‚ค">
<li>League of Legend</li></a>

<img src="๋กค.png" width = 300</img>
<a href="https://namu.wiki/w/%EB%A9%94%EC%9D%B4%ED%94%8C%EC%8A%A4%ED%86%A0%EB%A6%AC" target="_blank" title = "๋ฉ”์ดํ”Œ ๋‚˜๋ฌด์œ„ํ‚ค">
<li>MapleStory</li></a>
<img src="๋ฉ”์ดํ”Œ.png" width = 300</img>
<a href="https://namu.wiki/w/%EC%97%98%EC%86%8C%EB%93%9C" target="_blank" title = "์—˜์†Œ๋“œ ๋‚˜๋ฌด์œ„ํ‚ค">
<li>Elsword</li></a>
<img src="์—˜์†Œ๋“œ.png" width = 300</img>
  </ol>
</body>
</html>

์œ„๋Š” ์ตœ์ข… ์ฝ”๋“œ์ด๋‹ค.


https://opentutorials.org/course/3084/18889

 

์›์‹œ์›น - ์ƒํ™œ์ฝ”๋”ฉ

--- ์šฐ๋ฆฌ ์ˆ˜์—…์€ ๋‘ ๊ฐœ์˜ ์‚ฐ์œผ๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ์Šต๋‹ˆ๋‹ค. ํ•˜๋‚˜์˜ ์‚ฐ์€ ์›นํŽ˜์ด์ง€๋ฅผ ๋งŒ๋“œ๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์—ฌ๋Ÿฌ๋ถ„์€ ๋ฐฉ๊ธˆ ์ด ์‚ฐ์„ ๋ฉ‹์ง€๊ฒŒ ๋„˜์—ˆ์Šต๋‹ˆ๋‹ค. ๋˜ ํ•˜๋‚˜๋Š” ๋‚ด๊ฐ€ ๋งŒ๋“  ์›นํŽ˜์ด์ง€๋ฅผ ์ธํ„ฐ๋„ท์„ ํ†ตํ•ด์„œ ๋ˆ„

opentutorials.org

https://opentutorials.org/course/3084/18890

 

์ธํ„ฐ๋„ท์„ ์—ฌ๋Š” ์—ด์‡  : ์„œ๋ฒ„์™€ ํด๋ผ์ด์–ธํŠธ - ์ƒํ™œ์ฝ”๋”ฉ

--- ์ง€๊ธˆ๋ถ€ํ„ฐ ์ธํ„ฐ๋„ท์ด ๋™์ž‘ํ•˜๋Š” ๊ธฐ๋ณธ์ ์ธ ์›๋ฆฌ๋ฅผ ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ์งˆ๋ฌธ์ž…๋‹ˆ๋‹ค ์ธํ„ฐ๋„ท์ด ๋™์ž‘ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ์ปดํ“จํ„ฐ๊ฐ€ ์ตœ์†Œ ๋ช‡ ๋Œ€๊ฐ€ ์žˆ์–ด์•ผ ํ• ๊นŒ์š”? 2๋Œ€์ž…๋‹ˆ๋‹ค 1๋Œ€๋Š” ์ธํ„ฐ๋„ท์ด ์•„๋‹ˆ๊ณ  3๋Œ€๋Š” ๋ณธ์งˆ

opentutorials.org

์ด๋ถ€๋ถ„์€ ์‹ค์Šต์ด ์—†์–ด์„œ ํ•œ๋ฒˆ ์ญ‰ ์ฝ๊ณ  ๋„˜์–ด๊ฐ€๋ฉด ๋ ๊ฒƒ๊ฐ™๋‹ค.