Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="id">
- <head>
- <meta charset="utf-8">
- <title>Text properties pada CSS</title>
- <style>
- /* contoh internal stylesheets */
- body {
- font-family: Constantia, "Lucida Bright", "DejaVu Serif", Georgia, serif;
- }
- a {
- text-decoration: none;
- color: #FFA702;
- }
- a:hover {
- text-decoration: underline;
- color: #f00;
- background-color: #A2FF43;
- }
- .font1 {
- font-style: italic;
- font-size: 1.5em;
- text-align: center;
- }
- .tebal {
- font-weight: bold;
- }
- .judul {
- text-transform: capitalize;
- font-size: 2em;
- }
- </style>
- </head>
- <body>
- <h1>CSS Text Properties</h1>
- <p>Contoh Link dengan Pseudo-class: <a href="https://www.w3schools.com">W3Schools.com</a>. </p>
- <p class="font1">Test font style Italic dengan css, dengan text-align: center dan font size: 1.5em</p>
- <p><i>Test font style Italic dengan tag</i></p>
- <p class="judul">Teks ini seharusnya <span class="tebal">tebal</span>, karena pakai font-weight: bold</p>
- <p>Klik <a href="#">di sini</a> untuk menuju profil FB saya</p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement