Skip to content

HTML:Tutorials:Basic

기본적인 사용방법에 대하여 설명한다.

Hello World 프로그램

<!DOCTYPE html>
<html>
  <head>
    <title>Hello HTML</title>
  </head>
  <body>
    <p>Hello World!</p>
  </body>
</html>

HTML 기초 사용방법

HTML 머리글. (머리글은 h1 ~ h6 까지 정의할 수 있다.)

<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>

HTML 단락:

<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

HTML 링크. (링크 주소는 a의 href 속성에 지정됩니다.)

<a href="http://www.w3schools.com">This is a link</a>

HTML 이미지

<img src="w3schools.jpg" width="104" height="142" />

See also