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)
- What is HTML?
- Write the basic structure of an HTML5 document.
- Distinguish <strong> and <b>.
- What is the use of the alt attribute?
- What is an iframe?
- Distinguish colspan and rowspan.
- Distinguish GET and POST.
- What is the difference between radio buttons and checkboxes?
- What is the div tag?
- Name four HTML5 semantic tags.
Medium Answer Questions (5 marks each)
- Explain the history and objectives of HTML.
- Explain the text formatting tags with examples.
- Explain the types of lists in HTML.
- Create a class timetable using table tags.
- Explain the form controls with an example.
- Explain how a navigation bar is designed.
Long Answer Questions (15 marks each)
- Explain HTML, its history, objectives and the structure of a document, with head, body, heading and paragraph tags.
- Explain lists, anchors, images and iframes, with examples.
- Explain tables and forms in HTML, with examples.
- 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
