Web Development Basics · Course lab · about 150 minutes · 6 tasks · marked out of 100, pass at 60
A published page for a real business
The situation
A business you know has no website — a Facebook page at most. Build it a single page that says what it does, who it is for, how to reach it, and what it charges, publish the page on the open internet, and open it on a phone over mobile data.
One page, done properly, beats a five-page site nobody finishes.
What you'll be able to show
- Write HTML that still makes sense with the styling switched off
- Style with one font, a palette of three colours and a card class you reuse
- Make a layout that survives being narrowed to a phone
- Publish, and test on a real phone, not a resized window
What you need
- A text editor (VS Code, or Notepad if that is what you have) and a browser
- A free static host (GitHub Pages or Netlify Drop)
- One business's real details: name, what it does, opening hours, phone, three prices
Tasks
-
1Structure first, no stylingWrite index.html with one h1 (the business name and what it does), three h2 sections — What we do, Prices, Find us — a list of at least three services, a table or list of three prices, a phone number as a tel: link, and one image with real alt text.A correct result: Opened with no CSS at all, the page reads top to bottom like a sensible document.
-
2Style with restraintAdd style.css: one font for the body, one colour for headings, one accent, and a .card class with padding, background and rounded corners used on each section. No inline styles.A correct result: The page looks deliberate, and every section uses the same card class.
-
3Make it responsiveAdd the viewport meta tag, make the image scale with max-width 100%, and add one media query at 600px that stacks anything side by side. Narrow the window slowly and fix everything that breaks on the way.A correct result: No horizontal scrollbar at any width from 320px up.
-
4One piece of behaviourAdd a Show opening hours button that reveals a hidden section with classList.toggle and a CSS class. Open the browser console, cause one error on purpose, read it, fix it.A correct result: The button works; you can name the error you caused and the line it named.
-
5PublishPut the page on a free static host. Open the live address on your phone over mobile data, not Wi-Fi. Send the link to one person and ask them what the business does.A correct result: A public URL, a screenshot from your phone, and the person's answer in one line.
-
6The handover noteWrite five lines for the business: the address, how to change the phone number, how to change a price, where the image lives, and what it would take to add a second page.A correct result: Five lines a non-technical owner could follow.
What to hand in
The live URL, the two files (index.html and style.css), the phone screenshot, and the five-line handover note.
How it is marked
| Criterion | Points |
|---|---|
| HTML is well-structured and readable without CSS | 20 |
| Styling uses one font, three colours and a reused card class, no inline styles | 20 |
| Responsive: no horizontal scroll from 320px up | 20 |
| The toggle works and the deliberate error was read and fixed | 10 |
| Published and checked on a real phone | 20 |
| Handover note is complete and plain | 10 |
| Total · pass at 60 | 100 |
صورتحال
ایک کاروبار جسے آپ جانتے ہیں اس کی کوئی website نہیں — زیادہ سے زیادہ ایک Facebook page۔ اس کے لیے ایک صفحہ بنائیں جو بتائے کہ یہ کیا کرتا ہے، کس کے لیے ہے، اس تک کیسے پہنچیں، اور یہ کیا قیمت لیتا ہے؛ صفحہ کھلے internet پر شائع کریں، اور اسے mobile data پر phone میں کھولیں۔
ایک صفحہ، ٹھیک سے بنایا ہوا، اس پانچ صفحوں کی site سے بہتر ہے جو کوئی مکمل نہیں کرتا۔
آپ کیا دکھا سکیں گے
- ایسی HTML لکھنا جو styling بند ہونے پر بھی سمجھ آئے
- ایک font، تین رنگوں کے palette اور دوبارہ استعمال ہونے والی card class سے style کرنا
- ایسا layout بنانا جو phone تک تنگ ہونے پر بھی چلے
- شائع کرنا، اور حقیقی phone پر آزمانا، resize کی ہوئی window پر نہیں
آپ کو کیا چاہیے
- ایک text editor (VS Code، یا Notepad اگر یہی ہے) اور ایک browser
- ایک مفت static host (GitHub Pages یا Netlify Drop)
- ایک کاروبار کی حقیقی تفصیلات: نام، کیا کرتا ہے، کھلنے کے اوقات، phone، تین قیمتیں
کام
-
1پہلے ڈھانچہ، styling نہیںindex.html لکھیں جس میں ایک h1 ہو (کاروبار کا نام اور کیا کرتا ہے)، تین h2 sections — ہم کیا کرتے ہیں، قیمتیں، ہمیں ڈھونڈیں — کم از کم تین services کی list، تین قیمتوں کی table یا list، tel: link کے طور پر phone نمبر، اور حقیقی alt text کے ساتھ ایک تصویر۔درست نتیجہ: بغیر کسی CSS کے کھولنے پر صفحہ اوپر سے نیچے ایک سمجھ دار document کی طرح پڑھا جائے۔
-
2اعتدال سے style کریںstyle.css شامل کریں: body کے لیے ایک font، headings کے لیے ایک رنگ، ایک accent، اور padding، background اور گول کونوں والی ایک .card class جو ہر section پر استعمال ہو۔ کوئی inline styles نہیں۔درست نتیجہ: صفحہ سوچا سمجھا لگے، اور ہر section ایک ہی card class استعمال کرے۔
-
3responsive بنائیںviewport meta tag شامل کریں، تصویر کو max-width 100% سے scale ہونے دیں، اور 600px پر ایک media query شامل کریں جو ساتھ ساتھ رکھی چیزوں کو اوپر نیچے کر دے۔ window آہستہ آہستہ تنگ کریں اور راستے میں جو ٹوٹے ٹھیک کریں۔درست نتیجہ: 320px سے اوپر کسی بھی چوڑائی پر horizontal scrollbar نہ ہو۔
-
4ایک رویّہایک 'Show opening hours' button شامل کریں جو classList.toggle اور ایک CSS class سے چھپا ہوا section دکھائے۔ browser console کھولیں، جان بوجھ کر ایک error پیدا کریں، پڑھیں، ٹھیک کریں۔درست نتیجہ: button کام کرے؛ آپ اپنے پیدا کیے error اور اس کی بتائی line کا نام لے سکیں۔
-
5شائع کریںصفحہ کسی مفت static host پر رکھیں۔ live address اپنے phone پر mobile data سے کھولیں، Wi-Fi سے نہیں۔ link ایک شخص کو بھیجیں اور پوچھیں کہ کاروبار کیا کرتا ہے۔درست نتیجہ: ایک public URL، آپ کے phone کا screenshot، اور اس شخص کا جواب ایک line میں۔
-
6handover کا noteکاروبار کے لیے پانچ lines لکھیں: address، phone نمبر کیسے بدلیں، قیمت کیسے بدلیں، تصویر کہاں رہتی ہے، اور دوسرا صفحہ شامل کرنے میں کیا لگے گا۔درست نتیجہ: پانچ lines جن پر غیر تکنیکی مالک عمل کر سکے۔
کیا جمع کروانا ہے
live URL، دونوں files (index.html اور style.css)، phone کا screenshot، اور پانچ lines کا handover note۔
نمبر کیسے ملیں گے
| معیار | نمبر |
|---|---|
| HTML ٹھیک ڈھانچے میں ہے اور CSS کے بغیر پڑھی جا سکتی ہے | 20 |
| styling میں ایک font، تین رنگ اور دوبارہ استعمال ہونے والی card class، inline styles نہیں | 20 |
| responsive: 320px سے اوپر horizontal scroll نہیں | 20 |
| toggle کام کرتا ہے اور جان بوجھ کر کیا گیا error پڑھا اور ٹھیک کیا گیا | 10 |
| شائع ہوا اور حقیقی phone پر چیک ہوا | 20 |
| handover note مکمل اور سادہ ہے | 10 |
| کل · پاس 60 | 100 |
Hand in your lab
Create a free BvLogic ID to hand in your lab, get it marked, and have it on your certificate.
Create your BvLogic IDAlready have one? Sign in and this course will be added to it.