Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <link rel="stylesheet"
- type="text/css" href="stil1.css" />
- </head>
- <body>
- <h1>Acest titlu are 35 pt</h1>
- <h2>Acest titlu este verde</h2>
- <p>Acest paragraf are marginea stanga de 40 pixeli</p>
- <style>
- body
- {
- background-color:yellow;
- }
- h1
- {
- font-size:35pt;
- }
- h2
- {
- color:green;
- }
- p
- {
- </style>
- <html>
- <head>
- <style type="text/css">
- #par1
- {
- text-align:left;
- color:red
- }
- </style>
- </head>
- <body>
- <p id="par1">Buna ziua!</p>
- <p>Acest paragraf nu este afectat de declaratia de stil.</p>
- </body>
- </html>
- <html>
- <head>
- <style type="text/css">
- .center
- {
- text-align:center;
- }
- </style>
- </head>
- <body>
- <h1 class="center">Acest titlu este aliniat la centru cu CSS</h1>
- <p class="center">Acest paragraf este de asemenea aliniat la centru cu CSS.</p>
- </body>
- </html>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement