Unit summary
- CSS describes the presentation of HTML, applied inline, internally or externally, with the cascade deciding priority.
- Selectors choose elements; the box model gives every element content, padding, border and margin.
- Responsive design uses the viewport tag, relative units, flexible images, Flexbox, Grid and media queries.
- Bootstrap gives ready responsive classes and a 12-column grid with breakpoints.
- The WWW runs on the internet using URLs and HTTP; DNS maps names to addresses; browsers render pages.
- Web servers such as Apache and Nginx serve sites, hosted by shared, VPS, dedicated, cloud or static hosting.
Glossary
| Term | Meaning |
|---|---|
| Bootstrap | A responsive front-end framework. |
| Box model | Content, padding, border and margin. |
| Breakpoint | A screen width at which layout changes. |
| Cascade | The rules deciding which style wins. |
| CDN | A content delivery network serving files. |
| Cloud hosting | Hosting on scalable virtual servers. |
| CSS | Cascading Style Sheets, for presentation. |
| Declaration | A property: value pair. |
| DNS | The system that maps names to IP addresses. |
| External CSS | Styles in a separate linked file. |
| Grid system | Bootstrap's 12-column layout. |
| HTTP | The protocol that transfers web pages. |
| Inline CSS | Styles in an element's style attribute. |
| Media query | Styles applied under a screen condition. |
| Responsive design | Pages that adapt to screen size. |
| Selector | The part of a rule that picks elements. |
| URL | The address of a web resource. |
| Web hosting | A service that puts websites online. |
| Web server | Software that serves web pages. |
| WWW | The World Wide Web of linked documents. |
Question bank
Short Answer Questions (2 marks each)
- What is CSS?
- Name the three types of CSS.
- Distinguish class and id selectors.
- What is the box model?
- What is a media query?
- What is Bootstrap?
- Explain col-md-4.
- What is DNS?
- Distinguish HTTP and HTTPS.
- Name the types of web hosting.
Medium Answer Questions (5 marks each)
- Explain the types of CSS with examples.
- Explain CSS selectors.
- Explain responsive web design.
- Explain the Bootstrap grid system.
- Explain how a web page is requested and delivered.
- Explain the types of web hosting.
Long Answer Questions (15 marks each)
- Explain CSS, its types, selectors and the box model, with examples.
- Explain responsive web design and Bootstrap, its classes and grid system.
- Explain the WWW, its protocols and programs, web browsers, DNS and development tools.
- Explain web servers, their setup on Windows and Linux, and the types of web hosting including cloud hosting.
Sources
- Official BCA syllabus Web Technologies, course code 25BCA402SEC02, Unit II
