๐Ÿค” HTML๋ฌธ์„œ ๊ตฌ์กฐ

๋ฐ•์ƒ์€ยท2021๋…„ 9์›” 8์ผ
0

๐Ÿ“ƒ HTML ๐Ÿ“ƒ

๋ชฉ๋ก ๋ณด๊ธฐ
1/3
post-thumbnail

๐Ÿ˜ DTD

์ถœ๋ ฅํ•  ์›น ํŽ˜์ด์ง€์˜ ํ˜•์‹์„ ๋ธŒ๋ผ์šฐ์ €์—๊ฒŒ ์•Œ๋ ค์คŒ

<!DOCTYPE html>
<!-- HTML5๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค๋Š” ๊ฒƒ์„ ๋ธŒ๋ผ์šฐ์ €์—๊ฒŒ ์•Œ๋ ค์ฃผ๊ธฐ ์œ„ํ•œ ๊ฒƒ -->

๐Ÿ˜ถ <html>, <head>, <body>

  1. <html>
    ๋ชจ๋“  htmlํƒœ๊ทธ์˜ ๋ถ€๋ชจ์š”์†Œ์ด๋ฉฐ, ํ•˜๋‚˜์˜ ํŽ˜์ด์ง€์— ํ•˜๋‚˜๋งŒ ์กด์žฌํ•จ
  2. <head>
    ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ๋ฅผ ํฌํ•จํ•˜๊ธฐ ์œ„ํ•œ ์š”์†Œ์ด๋ฉฐ, ํ•˜๋‚˜์˜ ์›นํŽ˜์ด์ง€์— ํ•˜๋‚˜๋งŒ ์กด์žฌํ•จ
    <title>, <style>, <link>, <script> ๋“ฑ๋“ฑ ์‚ฌ์šฉ
  3. <body>
    html๋ฌธ์„œ์˜ ์‹ค์งˆ์ ์ธ ๋‚ด์šฉ์„ ์ •์˜ํ•˜๋Š” ๋ถ€๋ถ„์ž„
<html lang="ko">
  <head>
    <!-- ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ์„ค์ • -->
    <mata charset="utf-8">
    <mata name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">
    <mata name="description" content="Web tutorials on HTML and CSS">
    <mata name="author" content="John Doe">
      
    <!-- ๋ฌธ์„œ์˜ ์ œ๋ชฉ ์„ค์ • -->
    <title>๋ฌธ์„œ์ œ๋ชฉ</title>
      
    <!-- ์™ธ๋ถ€ ๋ฆฌ์†Œ์Šค์™€ ์—ฐ๊ณ„ -->
    <link rel="stylesheet" href="./css/style.css">
      
    <!-- ๋‚ด๋ถ€ css์„ ์–ธ -->
    <style></style>
      
    <!-- ๋‚ด๋ถ€ js์„ ์–ธ -->
    <script></script>
  </head>
  
  <body>
  </body>
</html>

0๊ฐœ์˜ ๋Œ“๊ธ€