Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <html> <head> <title>Example</title> <!-- CSS --> <style> .example1 { font: 16px/22px Garamond, Georgia, serif; color: Orange; } .bold { font-weight: bold; } .italic { font-style: italic; } </style> </head> <body> <!-- HTML --> <div class="example1"> <p>This font is 16 pixels, the line height is 22 pixels, its color is orange, and the font family will be 'Garamond'.</p> <p>If the user's computer doesn't have 'Garamond', it will use 'Georgia'. Failing that it will use the default 'serif' font on the user's computer (this is often 'Times' or 'Times Roman' - just leave it as 'serif').</p> <p>You can also specify <span class="bold">bold text</span> and <span class="italic">italics</span> if you wish!</p> </div> </body> </html>
Preview