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)

  1. What is CSS?
  2. Name the three types of CSS.
  3. Distinguish class and id selectors.
  4. What is the box model?
  5. What is a media query?
  6. What is Bootstrap?
  7. Explain col-md-4.
  8. What is DNS?
  9. Distinguish HTTP and HTTPS.
  10. Name the types of web hosting.

Medium Answer Questions (5 marks each)

  1. Explain the types of CSS with examples.
  2. Explain CSS selectors.
  3. Explain responsive web design.
  4. Explain the Bootstrap grid system.
  5. Explain how a web page is requested and delivered.
  6. Explain the types of web hosting.

Long Answer Questions (15 marks each)

  1. Explain CSS, its types, selectors and the box model, with examples.
  2. Explain responsive web design and Bootstrap, its classes and grid system.
  3. Explain the WWW, its protocols and programs, web browsers, DNS and development tools.
  4. 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