[CSS] 일부만 CSS 적용

아래와 같이 <span> 태그 사용
<!DOCTYPE html>

<html lang="ko-KR">
	<head>
		<meta charset="utf-8">
		<title>타이틀</title>

		<style>
			.accent
			{
				font-size: 50px;
			}
		</style>
	</head>

	<body>
		<header>
		</header>

		<section>
			<article>
				<h2>샘플</h2>
				<h3>샘플 텍스트 <span class="accent">스타일 일부 적용</span> 예제</h3>
				<p>
					p 태그 내부의 샘플 텍스트
				</p>
			</article>
		</section>

		<footer>
		</footer>
	</body>
</html>

댓글

이 블로그의 인기 게시물

[NSIS] 32비트와 64비트 모듈 등록하는 법. (regsvr32)

[Visual Studio] Windows 7 에서 Visual Studio 6.0 디버그 시 프로세스 좀비되는 증상 해결 방법