html 강조 텍스트
For HTML5: (with 'mark' tag)
<p>Do not forget to buy <mark>milk</mark> today.</p>
In CSS file: (To customize highlight)
mark {
background-color: yellow;
color: black;
}
html 에서 텍스트를 강조 표시하는 방법
<mark>text</mark>
css 마크 색상
<style>
mark {
background-color: yellow;
color: black;
}
</style>
<mark>Highlighted text!!</mark>
html 마크
<!-- Highlight parts of a text: -->
<p>Do not forget to buy <mark>milk</mark> today.</p>
<!-- Default CSS: -->
<head><style>
mark {
background-color: yellow;
color: black;
}
</style></head>
html 에 태그 표시
mark {
display: inline-block;
line-height: 0em;
padding-bottom: 0.5em;
}