Karnataka II PUC Computer Science (KSEAB) study materials
Karnataka II PUC Computer Science (KSEAB) study resources

Karnataka II PUC Computer Science (KSEAB): Web Technology (HTML)

Karnataka II PUC Computer Science (KSEAB) · Work through your exam, one topic at a time.

All guide sections

Web Technology (HTML)

Web Technology (HTML)

This domain tests the structure and common tags of HTML. HTML describes web content with elements made of tags and attributes. A page has a doctype declaration, html, head and body elements. The head contains metadata such as the title; the body contains visible content. Tags are usually paired, and attributes go in the start tag as name and value.

Common elements

  • Headings h1 to h6; paragraph p; line break br; horizontal rule hr.
  • Lists: ul with li for unordered, ol for ordered, dl for description lists.
  • Links: a with href; images: img with src and alt.
  • Tables: table, tr, th, td; forms: form, input, select, textarea, button.
  • HTML5 adds semantic tags such as header, nav, main, section and footer.

Worked example

<html><head><title>Marks</title></head><body><h2>Result</h2><p>Passed</p></body></html> produces a page titled Marks with a second-level heading and a paragraph. The title appears in the browser tab, not in the page body. The heading is not a paragraph; both are separate block elements.

Traps

Forgetting closing tags for paired elements breaks nesting. Attribute values should be quoted. br is an empty element, not a container. alt text is required for accessibility when an image cannot load. The method attribute of a form chooses get or post; it does not choose the server.