HTML CSS ϴ 3 ֽϴ.
- ܺ Ÿ Ʈ(External Style Sheet)
- Ÿ Ʈ(Internal Style Sheet)
- HTML±׳ Ÿ (Inline Styles)
ܺ Ÿ Ʈ(External Style Sheet)
css Ȯڸ Ÿ Ʈ HTML Ͽ ϴ Դϴ.
<head> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head> |
Ȩ ü Ÿ ϰְ ϸ鼭 ÿ ϰ ǹǷ Ȩ ȿ شȭ ֽϴ.
ݸ ܺ Ÿ Ʈ ָ鼭 HTML ϱ 찡 ֽϴ. ܺ Ÿ Ʈ ġ ϹǷ css ϴ Ͽ찡 ʿմϴ.
ұϰ Ȩ ܺ Ÿ Ʈ Ȱؾ մϴ.
Ÿ Ʈ(Internal Style Sheet)
HTML <head> </head>̿ Ÿ ϴ Դϴ.
<head> <style type="text/css"> <!-- body {font-size:9pt;} //--> </style> </head> |
HTML Ÿ Ź ־ , شǴ Ÿ Ҷ ϸ ˴ϴ.
HTML±׳ Ÿ (Inline Styles)
鿡 ؼ Դϴ. Ÿ ϰ HTML±ȿ ϴ Դϴ.
<p style="color:gray;"> ȸ ˴ϴ.</p> |
Ÿ и ̷ Ÿ ϰ ȿ ٶ ʴ Դϴ.