CodeLab
Tutorials For Everyone
Run
Learn CSS
<!DOCTYPE html> <html> <head> <style> body>h1,h2{ font-family: 'calibri', Sans-serif; font-size: 2rem; margin: 0; background: #333; color: #fff; text-align: center; padding: 1rem; box-shadow: 0 0 3px 0 #333; } body div { background: #f8f9fa; padding: 20px; } body div:before { content: 'Font : ' attr(class); background: #333; padding: 2px 10px; display: block; font-weight: bold; margin-bottom: 10px; width: fit-content; color: #fff; font-size: 18px; font-weight: 100; font-family: 'calibri', sans-serif; border-bottom: 2px solid currentcolor; } .geneva { font-family: "Geneva", sans-serif; } </style> </head> <body> <h1>CSS Web Safe Fonts Example</h1> <h2>Sans-serif Font</h2> <div class="geneva"> <h1>Lorem ipsum dolor sit amet.</h1> <p>Sagittis nisl rhoncus mattis rhoncus urna neque.</p> <p>0 1 2 3 4 5 6 7 8 9</p> </div> </body> </html>
Editor Commands
Ctrl
F
Find
Ctrl
G
Find Next
Ctrl
⇧
G
Find Previous
Ctrl
⇧
F
Find & Replace
Ctrl
]
Indent Code Right
Ctrl
[
Indent Code Left
⇧
Tab
Auto Indent Code
Ctrl
/
Line Comment
Ctrl
Alt
/
Block Comment
TutsInsider Actions
Alt
S
Run Code
Ctrl
C
Copy Editor Code
Ctrl
A
Select All Editor Code
Ctrl
S
Save/Download
Ctrl
Alt
X
Rotate
Ctrl
Alt
T
Switch Theme
Ctrl
⇧
C
Open Console
Esc
Close Console