HTML 문서에서는 주석을 <!----> 사이에 입력합니다. 주석은 브라우저 화면에는 표시되지 않습니다. 따라서 실행 결과는 그림 2-34와 동일합니다.

    예제 소스 Exercise/2장/10_comment/index.html

    <!DOCTYPE html>
    <html>
    <head>……</head>
    <body>
      <!-- type="text" -->
      <input type="text" value="이름">
    
      <!-- type="submit" -->
      <input type="submit" value="제출">
          
      <p>당신의 취미는 무엇입니까?</p>   
    
      <!-- type="checkbox" -->
      <input type="checkbox">영화감상
      <input type="checkbox">사진
      <input type="checkbox">운동
    </body>
    </html>
    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.