⏱ 5 min read
Web design is one of the practical-test topics for Computer Operator, and HTML questions also appear in Paper I and Paper II. This note covers the structure of an HTML page, common tags, lists, tables, links, images, forms and the basics of CSS.
1. Basic terms
| Term | Meaning |
|---|---|
| HTML | HyperText Markup Language: the language used to structure web pages. Created by Tim Berners-Lee. |
| Tag | A keyword inside angle brackets, e.g. <p>. Most tags have an opening and a closing tag. |
| Attribute | Extra information inside an opening tag, e.g. href, src, alt, width. |
| Web browser | Software that displays web pages (Chrome, Firefox, Edge). |
| CSS | Cascading Style Sheets: controls colour, font and layout. |
| JavaScript | A scripting language that adds interactivity to pages. |
2. Structure of an HTML page
<!DOCTYPE html> <html> <head> <title>My Page</title> </head> <body> ... </body> </html>
- <html> is the root element.
- <head> holds the title, meta information and links to CSS.
- <title> text appears on the browser tab.
- <body> holds everything visible on the page.
- HTML files are saved with the extension .html or .htm.
3. Common tags
| Tag | Use |
|---|---|
| <h1> … <h6> | Headings (h1 largest, h6 smallest) |
| <p> | Paragraph |
| <br> | Line break (empty tag) |
| <hr> | Horizontal line (empty tag) |
| <b> / <strong> | Bold text |
| <i> / <em> | Italic text |
| <u> | Underline |
| <sup> / <sub> | Superscript (x²) / subscript (H₂O) |
| <a href=””> | Hyperlink |
| <img src=”” alt=””> | Image |
| <!– –> | Comment (not shown in browser) |
4. Lists and tables
- <ul> unordered (bulleted) list; <ol> ordered (numbered) list; <li> each list item.
- <dl> description list with <dt> (term) and <dd> (description).
- <table> creates a table; <tr> row; <td> data cell; <th> header cell.
- colspan merges cells across columns; rowspan merges cells down rows.
- The border, cellpadding and cellspacing attributes control table spacing.
5. Links, images and forms
<a href="page.html" target="_blank">opens the link in a new tab.<a href="mailto:...">creates an email link.- The alt attribute of <img> gives alternate text if the image cannot load.
- <form> collects user input; action sets where data goes; method is GET or POST.
- Input types: text, password, radio, checkbox, submit, reset, email, date, file.
- <select> with <option> creates a drop-down list; <textarea> creates a multi-line text box.
6. CSS basics
| Method | Example |
|---|---|
| Inline | <p style=”color:red”> |
| Internal | <style> p {color:red;} </style> inside <head> |
| External | <link rel=”stylesheet” href=”style.css”> |
- A CSS rule has a selector and a declaration (property: value).
- #id selects one element by id; .class selects all elements with that class.
- Common properties: color, background-color, font-size, font-family, margin, padding, border, text-align.
7. Web terms often asked
- URL: address of a web page; domain name: e.g. loksewapathsala.com.
- Web server: computer that stores and serves websites.
- Static website: same content for everyone; dynamic website: content generated by programs and databases.
- Web hosting: renting server space to publish a website.
- WWW was invented by Tim Berners-Lee in 1989.
8. Common tags at a glance
| Tag | Use | |||
|---|---|---|---|---|
| Root of the page | ||||
| , | Page information and title | |||
| Visible content | ||||
to | Headings | |||
| Paragraph | ||||
| Hyperlink | ||||
| Image | ||||
9. Quick facts
10. How this topic is asked in the examComputer operator papers ask the full form of HTML, the use of tags and the difference between HTML, CSS and JavaScript. Practical tests ask candidates to make a simple page with a table, list and link. 📌 Key points to remember
📝 Quiz
Test yourself: HTML and Web Design Basics for Computer Operator50 questions check what you read about Basic terms, Lists and tables and Web terms often asked. Each attempt picks 25 at random. Loading quiz... Loksewa Pathsala is an independent educational platform. It is not affiliated with the Public Service Commission (Lok Sewa Aayog) or the Government of Nepal. · लोक सेवा आयोगको आधिकारिक साइट होइन। · Sources & disclaimer
|