This is a simple HTML example demonstrating basic structure.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>HTML Example</title> </head> <body> <h1>Hello, World!</h1> <p>This is a paragraph.</p> </body> </html>
This is a CSS example demonstrating some basic styles.
/* CSS Example */ body { font-family: sans-serif; margin: 0; padding: 0; background-color: #f4f4f4; color: #333; } .container { max-width: 960px; margin: 50px auto; background-color: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); border-radius: 8px; overflow: hidden; } h1 { text-align: center; color: #444444; margin-bottom: 30px; } .example { padding: 20px; border-bottom: 1px solid #eee; } .example h2 { margin-top: 0; color: #666; } .example code { background-color: #f9f9f9; padding: 5px 10px; border-radius: 4px; font-family: monospace; } .example pre { background-color: #f9f9f9; padding: 10px; border-radius: 4px; font-family: monospace; white-space: pre-wrap; } .example strong { font-weight: bold; } a { color: #007bff; text-decoration: none; } a:hover { text-decoration: underline; }
This is a basic JavaScript example.