Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="pl">
- <head>
- <meta charset="UTF-8">
- <style>
- #lewy
- {
- width: 50%;
- float: left;
- height: 300px;
- }
- #prawy
- {
- width: 50%;
- float: left;
- background-color: red;
- height: 300px;
- }
- .klasa
- {
- font-weight: bold;
- }
- </style>
- </head>
- <body>
- <div id="lewy">s</div>
- <div id="prawy">s</div>
- <script>
- document.getElementById("lewy").innerHTML = "Konrad";
- document.getElementById("lewy").className = "klasa";
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement