CS506 Midterm Important Topics Ayesha
CS506 Midterm Important Topics Ayesha
HTML Tags:
- `<a>` tag: Link banane ke liye use hota hai. Example: <a href='page.html'>Click Here</a>
- `<img>` tag: Image show karne ke liye use hota hai. Example: <img src='image.jpg' alt='image'>
- `<form>` tag: Form banane ke liye jisme user input deta hai. Example: <form action='submit.php'
method='post'>
- `<input>` tag: Form ke andar data lene ke liye hota hai jaise text, radio, checkbox. Example: <input
type='text' name='username'>
CSS Properties:
JavaScript Basics:
- Variable: Data ko store karne ka naam hai. Example: let name = 'Ayesha';
- Loop: Repeat karne ke liye use hota hai. Example: for(let i=0; i<5; i++) { console.log(i); }
PHP Basics:
- echo: Screen pe output show karta hai. Example: echo 'Hello Ayesha';
- Array: Multiple values store karne ka tareeqa. Example: $fruits = array('Apple', 'Banana', 'Mango');
MySQL Queries:
- SELECT: Database se data nikalne ke liye hota hai. Example: SELECT * FROM users;
- INSERT: Database me naya data add karne ke liye hota hai. Example: INSERT INTO users(name,
- GET: Data URL me dikhta hai, secure nahi hota. Example: form method='get'
- POST: Data hidden hota hai, zyada secure. Example: form method='post'
Cookies vs Sessions: