웹프로그래밍 HTML/태그와 멀티미디어

HTML5 문서에서 특수문자 처리 방법

별초롱언니 2025. 3. 4. 21:49

▣ 특수문자 / 키보드 입력값에 매칭되는 특수이름과 아스키코드 값

특수문자 / 키보드 특수이름 아스키코드
< &lt; &#60;
> &gt; &#62;
& &amp; &#38;
© &copy; &#169;
® &reg; &#174;
# &num; &#35;
스페이스바(spacebar) &nbsp; &#160;
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <header>
    <center>
      <h1>&lt; HTML 특수문자 &gt;</h1>
    </center>
  </header>
  <section>
    <article>
      &num; 풀스택 개발자를 위한 웹 프로그래밍 &num;
      <p></p>
      HTML5 &#38; CSS3 &#38; JavaScript &#38; JQuery
    </article>
  </section>
  <hr size="10" align="left" width="90%" noshade="noshade">
  <footer>
    <small>
      &nbsp;&nbsp; &copy; 한빛아카데미 &nbsp;&nbsp;
      &nbsp;&nbsp; &reg; 2017
    </small>
  </footer>
</body>
</html>