Unit summary

  • HTML is the markup language of the web, created by Tim Berners-Lee in 1991; HTML5 is the current standard.
  • A document has <!DOCTYPE html>, <html>, <head> and <body>; elements have tags and attributes.
  • Headings, paragraphs, line breaks and formatting tags structure the text.
  • Lists, anchors, images and iframes organise items, link pages, show pictures and embed pages.
  • Tables use table, tr, th, td and caption, with colspan and rowspan.
  • Forms use form, input, label, textarea, select, fieldset and legend to collect data.
  • div and semantic tags lay out the page, and a navbar is a styled list of links.

Glossary

Term Meaning
alt text Text describing an image.
Anchor The <a> tag that creates a hyperlink.
Attribute Extra information in a start tag.
Body The part of a page that is displayed.
colspan An attribute merging cells across columns.
div A generic block-level container.
DOCTYPE The declaration that marks an HTML5 document.
Element A start tag, content and end tag.
Entity A code for a special character, such as <.
fieldset A grouping of form controls with a border.
Form A group of controls that send data to a server.
Head The part of a page holding information about it.
HTML HyperText Markup Language.
iframe An element embedding another page.
Navbar A bar of links to the main pages.
rowspan An attribute merging cells across rows.
Semantic tag A tag that describes the meaning of its content.
Tag A marker in angle brackets that defines an element.

Question bank

Short Answer Questions (2 marks each)

  1. What is HTML?
  2. Write the basic structure of an HTML5 document.
  3. Distinguish <strong> and <b>.
  4. What is the use of the alt attribute?
  5. What is an iframe?
  6. Distinguish colspan and rowspan.
  7. Distinguish GET and POST.
  8. What is the difference between radio buttons and checkboxes?
  9. What is the div tag?
  10. Name four HTML5 semantic tags.

Medium Answer Questions (5 marks each)

  1. Explain the history and objectives of HTML.
  2. Explain the text formatting tags with examples.
  3. Explain the types of lists in HTML.
  4. Create a class timetable using table tags.
  5. Explain the form controls with an example.
  6. Explain how a navigation bar is designed.

Long Answer Questions (15 marks each)

  1. Explain HTML, its history, objectives and the structure of a document, with head, body, heading and paragraph tags.
  2. Explain lists, anchors, images and iframes, with examples.
  3. Explain tables and forms in HTML, with examples.
  4. Explain page layout with div and semantic tags, and the design of a navigation bar.

Sources

  • Official BCA syllabus Web Technologies, course code 25BCA402SEC02, Unit I