기록

HTML - 학습 2차(글꼴 굵기, 기울기, 스타일 설정)

코드

<!DOCTYPE html>

<html>

<body>

<b>This text is bold</b><br>

<br><strong>This text is important!</strong><br>

<br><i>This text is italic</i><br>

<br><em>This text is emphasized</em><br>

<br><small>This is some smaller text.</small><br>

<br><p>Do not forget to buy <mark>milk</mark> today.</p><br>

<br><p>My favorite color is <del>blue</del> red.</p><br>

<br><p>My favorite color is <del>blue</del> <ins>red</ins>.</p><br>

<br><p>This is <sub>subscripted</sub> text.</p><br>

<br><p>This is <sup>superscripted</sup> text.</p><br>

</body>

</html>


코드 분석


<b>This text is bold</b> : 글씨가 굵게 표현된다.

<strong>This text is important!</strong> : 중요한 뜻을 나타낼때, 사용하는것인데, 위의 b와 동일하게 굵게 표현되는것

<br><i>This text is italic</i><br> : 기울기

<br><em>This text is emphasized</em><br> : 기울기 (정확히는 강조 텍스트 표현)

<br><small>This is some smaller text.</small><br> : 작은 글씨

<br><p>Do not forget to buy <mark>milk</mark> today.</p><br> : mark 부분을 음영

<br><p>My favorite color is <del>blue</del> red.</p><br> : del 부분을 삭제

<br><p>My favorite color is <del>blue</del> <ins>red</ins>.</p><br> : ins 부분을 밑줄

<br><p>This is <sub>subscripted</sub> text.</p><br> : sub 부분을 하단 주석으로 설정

<br><p>This is <sup>superscripted</sup> text.</p><br> : sup 부분을 상단 주석으로 설정

댓글

이름만 적고 남길 수 있어요