Untitled
unknown
plain_text
19 days ago
13 kB
4
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Learn C++ Programming</title>
<style>
/* CSS Yahan Likhi Hai Styles ke Liye */
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
}
header {
background-color: #005f99; /* C++ Blue Color */
color: white;
padding: 20px;
text-align: center;
}
nav {
background-color: #333;
overflow: hidden;
}
nav a {
float: left;
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
nav a:hover {
background-color: #ddd;
color: black;
}
.container {
max-width: 800px;
margin: 20px auto;
background: white;
padding: 20px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.code-box {
background-color: #2d2d2d;
color: #f8f8f2;
padding: 15px;
border-radius: 5px;
font-family: 'Courier New', Courier, monospace;
overflow-x: auto;
}
footer {
text-align: center;
padding: 20px;
background-color: #333;
color: white;
margin-top: 20px;
}
</style>
</head>
<body>
<header>
<h1>Welcome to C++ World</h1>
<p>Master the art of programming</p>
</header>
<nav>
<a href="#">Home</a>
<a href="#">Tutorials</a>
<a href="#">Examples</a>
<a href="#">Contact</a>
</nav>
<div class="container">
<h2>What is C++?</h2>
<p>C++ is a high-level programming language that is widely used for system programming, game development, and competitive programming. It is an extension of the C language.</p>
<h3>Basic Example: Hello World</h3>
<p>Niche ek basic C++ program ka code diya hai jo screen par "Hello World" print karta hai:</p>
<div class="code-box">
#include <iostream><br>
using namespace std;<br><br>
int main() {<br>
cout << "Hello World!";<br>
return 0;<br>
}
</div>
</div>
<footer>
<p>© 2023 My C++ Website. All rights reserved.</p>
</footer>
</body>
</html>
}
}
}
}
}
}
}
}Editor is loading...
Leave a Comment