HTML의
태그는 , , 등과 같은 구문 태그이며 HTML 문서의 텍스트 형식을 지정하는 데 사용됩니다. 또한 컴퓨터 프로그램의 출력을 표시하는 데 사용됩니다.
이제
요소를 구현하는 예를 살펴보겠습니다.
예시
<!DOCTYPE html>
<html>
<body>
<h2>OS issues</h2>
<p>If the system hangs...</p>
<samp>Press CTRL + ALT + DELETE and delete the current tasks.</samp>
</body>
</html>
출력

위의 예에서 우리는
태그 안에 텍스트를 설정했습니다-
<samp>
Press CTRL + ALT + DELETE and delete the current tasks.
</samp>