Web Technologies and HTML
What this domain tests
Web Technologies and HTML tests client-server basics, URL structure, HTML document structure, common tags, forms, tables, links and basic CSS. Expect code correction and output.
Core rules
- A web page is requested by a browser (client) from a web server using HTTP/HTTPS. Static pages are served as stored; dynamic pages are generated by server-side code.
- HTML structure:
<!DOCTYPE html>,<html>,<head>(metadata, title),<body>(visible content). - Tags: headings
<h1>–<h6>, paragraph<p>, line break<br>, list<ul>/<ol>/<li>, link<a href='...'>, image<img src='...' alt='...'>, table<table>/<tr>/<th>/<td>. - Forms:
<form action='...' method='get|post'>with<input>,<select>,<textarea>,<button>.nameis the key sent to the server. - CSS can be inline, internal (
<style>) or external (.css); selectors target elements, classes (.x) and IDs (#x).
Worked example
<a href='page2.html'><img src='logo.png' alt='Site logo'></a>
This makes the image a link to page2.html. The href is the destination; src is the image file; alt is alternative text shown if the image fails and read by screen readers. Reasoning: the anchor wraps the image, so clicking the image follows the link.
Traps
<br> is a line break, not a paragraph. alt is not a tooltip replacement for title. GET puts data in the URL; POST puts it in the request body. IDs must be unique; classes may repeat. Unclosed tags can change nesting.