TalentJR apps
Textbook: Information Technology – Class 11 (Balbharati, official free PDF) · pages 84
This skill set is one page of four lab practicals, but each one tests a different part of HTML5: colours and text formatting, images with alt text and tables, forms with radio buttons, and tables with hyperlinks to a second page. Here you get the HTML you need for each, the complete program for all four SOPs with the expected output, and the mistakes examiners look for. Tags are written in square brackets on this page: [h1] stands for the h1 tag typed with angle brackets and [/h1] for its closing tag. In your editor, type real angle brackets.
An HTML page is a plain text file saved with the .html or .htm extension and opened in a browser. It starts with the DOCTYPE declaration, then html, head (holding title) and body (holding everything visible). Use a simple text editor such as gedit, Notepad or VS Code, save, and refresh the browser after each change.
SOP 1 practises page colours and text formatting: bgcolor and text attributes of body, the h1 heading, hr for a horizontal line, b, i and sup (for the 'th' in 11th).
SOP 2 practises img with src and alt, the p paragraph tag and a table with border, th and td — showing a scientist's photograph, a short biography and a list of inventions.
SOP 3 practises forms: an h1 heading with align='center', a text box for the name, radio buttons with the same name so only one standard (11th or 12th) can be chosen, and a submit button.
SOP 4 practises a table of class strength (100 students: 50 boys, 50 girls) and an a href hyperlink to a second file Demo.html, which shows STD XI, Stream Science and Div A as a list. Both files must sit in the same folder for the link to work.
Get a ✓ Verified tutor for “Skill Set 2 – Web Designing (HTML 5)” — live online or at home. We aim to suggest up to 3 tutors within 24 hours.
Write the complete program for SOP 1.
Answer: [!DOCTYPE html] [html] [head][title]SOP 1[/title][/head] [body bgcolor='green' text='red'] [h1]My First Web Page[/h1] [hr] [b]Name: Sneha Kulkarni[/b][br] [i]Address: 21 Laxmi Road, Pune[/i][br] Standard: 11[sup]th[/sup] [/body] [/html] — Output: a green page, all text red, a big heading, a line under it, the name in bold, the address slanting, and 11th with a small raised 'th'.
Write the complete program for SOP 2 using Sir C. V. Raman.
Answer: [!DOCTYPE html] [html] [head][title]Scientist[/title][/head] [body] [h1]Sir C. V. Raman[/h1] [img src='raman.jpg' alt='Sir C. V. Raman' width='200' height='250'] [p]Chandrasekhara Venkata Raman (1888–1970) was an Indian physicist. He discovered that light changes its wavelength when it is scattered by a material — the Raman effect — and won the Nobel Prize in Physics in 1930. India celebrates National Science Day on 28 February in honour of this discovery.[/p] [table border='1'] [caption]Work and honours[/caption] [tr][th]Year[/th][th]Contribution[/th][/tr] [tr][td]1928[/td][td]Discovery of the Raman effect[/td][/tr] [tr][td]1930[/td][td]Nobel Prize in Physics[/td][/tr] [tr][td]1948[/td][td]Founded the Raman Research Institute, Bengaluru[/td][/tr] [/table] [/body] [/html]
Write the complete program for SOP 3.
Answer: [!DOCTYPE html] [html] [head][title]Application Form[/title][/head] [body] [h1 align='center']Application Form[/h1] [form method='post'] Name: [input type='text' name='sname' maxlength='30'][br][br] Standard: [input type='radio' name='std' value='11'] 11[sup]th[/sup] [input type='radio' name='std' value='12'] 12[sup]th[/sup][br][br] [input type='submit' value='Submit'] [input type='reset' value='Clear'] [/form] [/body] [/html]
Write both files for SOP 4.
Answer: class.html: [!DOCTYPE html] [html] [head][title]Class strength[/title][/head] [body] [table border='1'] [tr][th]Number of Students[/th][th]Boys[/th][th]Girls[/th][/tr] [tr][td]100[/td][td]50[/td][td]50[/td][/tr] [/table][br] [a href='Demo.html']Click here for class details[/a] [/body] [/html] Demo.html: [!DOCTYPE html] [html] [head][title]Demo[/title][/head] [body] [ul] [li]STD – XI[/li] [li]Stream – Science[/li] [li]Div – A[/li] [/ul] [a href='class.html']Back[/a] [/body] [/html]
| Tag / attribute | What it does | Example |
|---|---|---|
| [body bgcolor text] | Page background and text colour | [body bgcolor='green' text='red'] |
| [h1]…[/h1] | Largest heading | [h1 align='center']Application Form[/h1] |
| [hr] | Horizontal line (no closing tag) | [hr] |
| [b] [i] [sup] | Bold, italic, superscript | 11[sup]th[/sup] |
| [img src alt] | Shows a picture with alternate text | [img src='raman.jpg' alt='C. V. Raman'] |
| [p]…[/p] | Paragraph | [p]He won the Nobel Prize in 1930.[/p] |
| [table] [tr] [th] [td] | Table, row, heading cell, data cell | [tr][td]100[/td][td]50[/td][/tr] |
| [input type='radio'] | One choice from a group (same name) | [input type='radio' name='std' value='11'] |
| [input type='submit'] | Sends the form | [input type='submit' value='Submit'] |
| [a href] | Link to another page | [a href='Demo.html']Details[/a] |
| [ul] [li] | Bulleted list and its items | [ul][li]Div – A[/li][/ul] |
Solve each one in your notebook first. Then open the solution and compare every step.
1. SOP 1: Write a program with a green background, red text, a large heading 'My First Web Page', then a ruled line, the student's name bold, the address italic and the standard as 11th.
Answer: Sample: [!DOCTYPE html] [html] [head][title]SOP 1[/title][/head] [body bgcolor='green' text='red'] [h1]My First Web Page[/h1] [hr] [b]Rohan Deshmukh[/b][br] [i]Plot 5, Ganesh Colony, Nagpur[/i][br] Standard: 11[sup]th[/sup] [/body] [/html]. Steps: type in a text editor → save as sop1.html → open in a browser → check colours, line and formatting.
2. SOP 2: Make a page with a scientist's image (alternate text = name), a paragraph about the scientist and a table of inventions.
Answer: Sample using Dr A. P. J. Abdul Kalam: [!DOCTYPE html] [html] [head][title]Dr Kalam[/title][/head] [body] [h1]Dr A. P. J. Abdul Kalam[/h1] [img src='kalam.jpg' alt='Dr A. P. J. Abdul Kalam' width='200'] [p]Dr Kalam (1931–2015) was an aerospace scientist who led India's satellite launch vehicle and missile programmes and served as the 11th President of India (2002–2007).[/p] [table border='1'] [tr][th]Year[/th][th]Work[/th][/tr] [tr][td]1980[/td][td]SLV-III placed the Rohini satellite in orbit[/td][/tr] [tr][td]1980s–90s[/td][td]Led development of Agni and Prithvi missiles[/td][/tr] [tr][td]1998[/td][td]Key role in the Pokhran-II tests[/td][/tr] [/table] [/body] [/html]
3. SOP 3: Make a webpage with 'Application Form' in the highest heading, centred; accept name and standard (11th or 12th, one choice only); submit the form.
Answer: Sample: [!DOCTYPE html] [html] [head][title]Application[/title][/head] [body] [h1 align='center']Application Form[/h1] [form method='post'] Name: [input type='text' name='sname'][br] Standard: [input type='radio' name='std' value='11'] 11th [input type='radio' name='std' value='12'] 12th[br] [input type='submit' value='Submit'] [/form] [/body] [/html]. Test: try ticking both radios — the first is cleared when you pick the second.
4. SOP 4: Show class details (100 students, 50 boys, 50 girls) in a table and link it to Demo.html which lists STD – XI, Stream – Science, Div – A.
Answer: Sample: class.html — [table border='1'][tr][th]Number of Students[/th][th]Boys[/th][th]Girls[/th][/tr][tr][td]100[/td][td]50[/td][td]50[/td][/tr][/table] [a href='Demo.html']Class details[/a] inside the usual skeleton. Demo.html — [ul][li]STD – XI[/li][li]Stream – Science[/li][li]Div – A[/li][/ul] inside its own skeleton. Open class.html, click the link, and Demo.html opens.
5. Find and correct the errors: [body bgcolour='green'] [img scr='kalam.jpg'] [input type='radio' name='a' value='11'] [input type='radio' name='b' value='12'] [a herf='Demo.html']Next[/a]
Answer: (1) bgcolour → bgcolor (American spelling). (2) scr → src, and add alt='Dr Kalam'. (3) The two radios have different names, so both can be selected — give both name='std'. (4) herf → href.
6. Predict the output: [body text='blue'] [h1 align='center']Science Club[/h1] [hr] [p]Meeting on 5[sup]th[/sup] July[/p] [b]Venue:[/b] [i]Physics Lab[/i] [/body]
Answer: All text is blue. 'Science Club' appears as a large bold heading in the centre, followed by a horizontal line across the page. The next line reads 'Meeting on 5th July' with 'th' raised. Below it, 'Venue:' is bold and 'Physics Lab' is in italics, on the same line.
Read the question, answer it in your head, then tap the card to check. 20 cards.
15 questions. Tap an option — you will see at once if it is right and why.
1. An HTML file should be saved with the extension…
Answer: D. .htm also works.
2. To make the page background green you write…
Answer: D. text sets the text colour.
3. Which tag makes the largest heading?
Answer: A. h6 is the smallest.
4. Which tag has no closing tag?
Answer: C. hr and br are empty tags.
5. The 'th' in 11th is written using…
Answer: A. Superscript raises text.
6. Which attribute gives an image's alternate text?
Answer: B. src gives the file path.
7. If raman.jpg is missing, the browser shows…
Answer: D. That is why alt matters.
8. Heading cells of a table are made with…
Answer: D. td is for data.
9. Two radio buttons allow only one choice when they have the same…
Answer: C. Same group name.
10. Which control sends the form data?
Answer: C. reset clears instead.
11. Which code centres a heading?
Answer: A. align is the attribute.
12. A link to Demo.html is written with…
Answer: D. Anchor tag with href.
13. Which tag makes a row in a table?
Answer: B. Table Row.
14. Each item of a bulleted list goes in…
Answer: B. ul wraps the list.
15. After editing a saved HTML file, to see changes you…
Answer: B. F5 reloads.
Get a ✓ Verified tutor for “Skill Set 2 – Web Designing (HTML 5)” — live online or at home. We aim to suggest up to 3 tutors within 24 hours.
Done with the notes? Revise Skill Set 2 – Web Designing (HTML 5) the fun way: match key terms, beat the 60-second lightning round and spot true or false facts. Every game uses only this lesson, so each round is real exam revision.
⭐ 0 XP⏱ About 30 minutes (plus lab time)
Get a ✓ Verified tutor for “Skill Set 2 – Web Designing (HTML 5)” — live online or at home. We aim to suggest up to 3 tutors within 24 hours.
Sign in free to see the answers to the textbook exercise of Skill Set 2 – Web Designing (HTML 5).
Sign in to see solutionsStuck on a question? Type it, 🎤 speak it or 📷 snap a photo of it and get simple, step-by-step help with “Skill Set 2 Web Designing (HTML – 5)” — important questions, a quick quiz, revision notes — in English, मराठी or हिंदी.
Sign in with Google to ask the AI tutor. It's free — 20 questions a day, one TalentJR account.
Sign in to askPrefer a real teacher? TalentJR teachers take live online classes anywhere in India. Tell us what you need and our team will call you with timings and fees.