Unit summary

  • The web is a service on the internet in which browsers request pages from web servers.
  • HTML marks up the structure of a page with tags, and HTML5 is its current major version.
  • Every page needs a DOCTYPE, an html element, a head with a title and a body with the content.
  • Headings, paragraphs and formatting tags give text structure and meaning.
  • Lists, tables, forms, images, frames and links build the content of a page.
  • Rowspan and colspan merge table cells, and form controls need names to send data.
  • Semantic elements name the parts of a page, and div and span are the plain containers.
  • A navbar is a list of links in a nav element, and accessibility makes pages usable by everyone.

Glossary

Term Meaning
Accessibility Designing pages so that people with disabilities can perceive and use them.
Alt text A short text description of an image, used when the image cannot be seen.
Attribute Extra information written inside an opening tag, as a name and a value.
Block element An element that starts on a new line and takes the full available width.
Checkbox A control that lets the user switch one option on or off.
Div A generic block element used to group content when no semantic element fits.
DOCTYPE The first line of a page, which tells the browser to use HTML5 rules.
Element An opening tag, its content and the closing tag, taken together.
Form A section of a page that collects user data and sends it to a server.
HTML A markup language that describes the structure and content of a web page.
Hyperlink Text or an image that takes the user to another page or place when clicked.
Inline element An element that stays within a line of text and takes only the width it needs.
Input control A form element, such as a text box or button, that lets the user enter or choose data.
List A group of related items written with list tags, such as ol, ul or dl.
Navbar A set of links, usually inside a nav element, that lets users move between pages.
Nested list A list placed inside an item of another list to show sub-levels.
Radio button A control that lets the user pick exactly one option from a group.
Rowspan and colspan Attributes that let one table cell cover several rows or several columns.
Semantic element An HTML5 element whose name describes the meaning of its content, such as nav or footer.
Tag A keyword inside angle brackets that tells the browser how to treat the content.
Web browser Software that requests web pages from servers and displays them to the user.

Question bank

Short Answer Questions (2 marks each)

  1. Differentiate between the web and the internet.
  2. What is HTML? Why is it called a markup language?
  3. Name the two main parts of an HTML document.
  4. What is the purpose of the DOCTYPE declaration?
  5. What is an attribute? Give one example.
  6. Differentiate between a block element and an inline element.
  7. Name the three kinds of list in HTML.
  8. What do rowspan and colspan do?
  9. Differentiate between GET and POST.
  10. Why is alt text important for images?

Medium Answer Questions (5 marks each)

  1. Describe how a web browser and a web server work together to show a page.
  2. Explain the history of HTML from the first version to HTML5.
  3. Explain the structure of an HTML5 document with a suitable example.
  4. Explain the heading, paragraph and text formatting tags with examples.
  5. Explain ordered, unordered and definition lists with examples.
  6. Explain how rowspan and colspan are used to merge cells in a table.

Long Answer Questions (15 marks each)

  1. Create an HTML page for a college admission form using text boxes, radio buttons, checkboxes, a select list, a textarea and buttons, and explain every control used.
  2. Explain table creation in HTML with all the related tags. Design a weekly timetable that uses rowspan and colspan.
  3. Explain semantic HTML5 elements. Convert a page built from div elements into a semantic page and state the benefits.
  4. Explain the img, a and iframe elements. Describe relative and absolute paths with examples.

Sources

  • Official BCA syllabus (NEP 2025 scheme), Web Application Development, course code 25BCA405DS04, Unit I