- Element = opening tag + content + closing tag; attributes go in the opening tag (name="value").
- Empty (void) elements have no content or closing tag: <img>, <br>, <input>, <meta>.
- Semantic markup: tags describe MEANING (header, nav, article), not appearance; helps SEO, accessibility, maintenance.
- <!DOCTYPE html> tells the browser to use HTML5 standards mode.
- Nesting must be correct: close inner elements first: <p><strong>…</strong></p>.
- <a href="…">: links to pages, sections (#id), email (mailto:), files.
- Absolute URL: full address (https://…). Relative: from the current location (images/a.png, ../index.html).
🎯 How this can come up · 1 question
From /site/pages/about.html, "../images/logo.png" points to:
Correct: /site/images/logo.png.
- <img src alt>: the alt text is required for accessibility.
- Character entities: < > & ©.
- Lists: <ul> unordered, <ol> ordered, <li> items; <dl> description lists.
- HTML5 semantic elements: header, nav, main, section, article, aside, footer, figure + figcaption.
🎯 How this can come up · 1 question
Which element is meant for a site’s main navigation links?
Correct: <nav>.
- Tables: <table>, <tr> rows, <th> headers, <td> cells; <thead>, <tbody>, <tfoot>, <caption>.
- colspan merges cells across columns; rowspan merges down rows.
🎯 How this can come up · 1 question
To make a cell span two columns, use:
Correct: colspan="2".
- <form action="url" method="get|post">: where and how to send the data.
- Controls: text, password, email, number, textarea, select/option, radio (one of a group: same name), checkbox (any number), submit/reset/button.
🎯 How this can come up · 1 question
To let a user choose exactly one of several options, use:
Correct: Radio buttons with the same name.
- <label for="id"> associates text with an input (click the label to focus; better accessibility).
- Validate on the client (fast feedback: required, pattern, type) AND on the server (security: the client can be bypassed).
🎯 How this can come up · 1 question
Client-side validation is enough to protect the server.
False. Always validate on the server too.
No slides match this filter.













































![Slide 59: codes form [part B]\45_num_range_color](figures/slide-59.jpg)
![Slide 60: codes form [part B]\45_num_range_color](figures/slide-60.jpg)




