굵은 텍스트를 위한 strong 태그 사용
이 단계에서는 텍스트를 굵게 표시하는 방법을 배웁니다. <strong> 태그는 텍스트가 강한 중요성, 심각성 또는 긴급성을 나타내도록 하는 데 사용됩니다. 브라우저는 일반적으로 <strong> 태그 안의 내용을 굵게 렌더링합니다.
이전 단계에서 추가한 단락을 수정하여 "important information" 구문을 강조 표시해 보겠습니다. 이 구문을 <strong> 및 </strong> 태그로 감싸세요.
index.html 파일의 <p> 태그를 다음과 같이 수정하세요.
<p>
This is a paragraph of text. It contains some introductory information about
this page. HTML is great for structuring content, and this paragraph is an
example of that. It also contains some <strong>important information</strong>.
</p>
이제 파일의 전체 <body>는 다음과 같아야 합니다.
<body>
<h1>Welcome to My Web Page</h1>
<p>
This is a paragraph of text. It contains some introductory information about
this page. HTML is great for structuring content, and this paragraph is an
example of that. It also contains some
<strong>important information</strong>.
</p>
</body>
파일을 저장하고 "Web 8080" 탭을 확인하세요. 이제 "important information" 텍스트가 굵게 표시되는 것을 알 수 있습니다.