gpt-4o-mini-2024-07-18· OpenAI
WildChat-4.8M (AI2)
send me a BASIC codes of HTML
- User
send me a BASIC codes of HTML
- Assistant
Sure! Below is a simple HTML code example that demonstrates the structure of a basic HTML document.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My First HTML Page</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; margin: 0; padding: 20px; } h1 { color: #333; } p { color: #666; } </style> </head> <body> <h1>Welcome to My First HTML Page!</h1> <p>This is a simple paragraph demonstrating how HTML works.</p> <p>HTML stands for HyperText Markup Language.</p> <h2>List of Items:</h2> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul> <h2>Links:</h2> <p> Visit <a href="https://www.example.com" target="_blank">Example</a> for more information. </p> </body> </html>