آپ کی مہربانی!
یہ کوڈ آپ جیسے پیارے صارفین کی وجہ سے ہی تو چمکتا ہے ✨
🌹 شکریہ کہ آپ نے ہمیں اپنا ساتھی بنایا 🌹
"علم بانٹنے سے بڑھتا ہے"
🤲 ہمارا مشترکہ عہد:
"سیکھنے کے اس سفر میں
ہر مشکل کو موقع سمجھیں گے،
ہر غلطی سے سبق لیں گے!"
🌟 بس ایک میسج کی دوری پر! 🌟
HTML
<!DOCTYPE html>
<html lang="ur">
<head>
<meta charset="UTF-8">
<title>مثال</title>
<style>
body {
font-family: 'Nastaleeq', sans-serif;
direction: rtl;
}
</style>
</head>
<body>
<h1>سلام دنیا!</h1>
<script>
function greet() {
alert('خوش آمدید');
}
</script>
</body>
</html>
CSS
/* بڑی فائل کی مثال - اسکرول بار ظاہر ہوگا */
body {
font-family: 'Nastaleeq', 'Jameel Noori Nastaleeq', sans-serif;
background-color: #f5f5f5;
color: #333;
line-height: 1.6;
margin: 0;
padding: 0;
direction: rtl;
text-align: right;
}
.header {
background: linear-gradient(135deg, #6e48aa 0%, #9d50bb 100%);
color: white;
padding: 20px;
text-align: center;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.navbar {
display: flex;
justify-content: space-between;
padding: 15px;
background-color: #fff;
border-bottom: 1px solid #eee;
}
.footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px;
position: fixed;
bottom: 0;
width: 100%;
}
HTML
<!DOCTYPE html>
<html lang="ur">
<head>
<meta charset="UTF-8">
<title>مثال</title>
<style>
body {
font-family: 'Nastaleeq', sans-serif;
direction: rtl;
}
</style>
</head>
<body>
<h1>سلام دنیا!</h1>
<script>
function greet() {
alert('خوش آمدید');
}
</script>
</body>
</html>
CSS
/* بڑی فائل کی مثال - اسکرول بار ظاہر ہوگا */
body {
font-family: 'Nastaleeq', 'Jameel Noori Nastaleeq', sans-serif;
background-color: #f5f5f5;
color: #333;
line-height: 1.6;
margin: 0;
padding: 0;
direction: rtl;
text-align: right;
}
.header {
background: linear-gradient(135deg, #6e48aa 0%, #9d50bb 100%);
color: white;
padding: 20px;
text-align: center;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.navbar {
display: flex;
justify-content: space-between;
padding: 15px;
background-color: #fff;
border-bottom: 1px solid #eee;
}
.footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px;
position: fixed;
bottom: 0;
width: 100%;
}
PHP
<?php
function calculateSum($a, $b) {
$sum = $a + $b;
return $sum;
}
// تبصرے کا رنگ مختلف ہوگا
$result = calculateSum(5, 10);
echo "نتیجہ: $result";
?>
JavaScript
// مثال: ٹاسک شامل کرنا
function addTask() {
const taskInput = document.getElementById("taskInput");
const taskList = document.getElementById("taskList");
if (taskInput.value === "") return;
const li = document.createElement("li");
li.innerHTML = `
${taskInput.value}
<button onclick="removeTask(this)">Delete</button>
`;
taskList.appendChild(li);
taskInput.value = "";
}
زمرے
تجربات