Skip to content

Web Technologies & .NET

DSSSB TGT CS — Section B P2 (Rank ~10). Focus: HTML/CSS/JS basics, HTTP, ASP.NET/.NET keywords, servers.


1. WWW, URL, HTTP, HTTPS

TermMeaning
WWWWorld Wide Web — hypertext system over the Internet
URLUniform Resource Locator — address of a resource
HTTPHyperText Transfer Protocol — request/response for web
HTTPSHTTP + TLS/SSL encryption

URL parts (typical): protocol://host:port/path?query#fragment

  • HTTP methods (exam): GET (retrieve), POST (submit), also PUT/DELETE.
  • Default ports: HTTP 80, HTTPS 443.
  • Trap: Internet ≠ WWW. WWW is a service on the Internet.

2. HTML Essentials

Skeleton:

html
<html>
  <head><title>Page</title></head>
  <body>...</body>
</html>
TagRole
htmlRoot
headMetadata, title, CSS/JS links
bodyVisible content
titleBrowser tab title (in head)
aHyperlink (href)
imgImage (src, alt)
table, tr, td, thTables
formInput container (action, method)
inputForm control (type: text, password, submit, checkbox…)
p, h1h6, br, div, spanStructure/text
  • Empty/void tags historically: img, br, hr, input.
  • Trap: <title> does not display in page body.

3. CSS

TypeHow
Inlinestyle="..." on element
Internal<style> in head
External.css file via <link>

Selectors (basic): element (p), class (.box), id (#main), descendant (div p).

Box model: content → padding → border → margin.

  • Cascade + specificity: inline > id > class > element (simplified exam view).
  • External CSS preferred for reuse/maintenance.

4. JavaScript Basics

  • Client-side scripting in browsers (also server via Node — awareness).
  • Variables: var (legacy), let, const.
  • Types: number, string, boolean, object, etc.
  • Can react to events (click, load, submit).

DOM (Document Object Model): tree representation of HTML; JS can read/change elements, styles, content.

js
document.getElementById("demo").innerHTML = "Hi";

5. XML vs HTML

HTMLXML
PurposeDisplay web pagesStore/transport structured data
TagsPredefinedUser-defined
CaseNot strict (HTML5)Case-sensitive
ClosingSome optional historicallyMust be well-formed
FocusPresentationData description
  • Both can look similar (tags); XML is stricter/well-formed.
  • XHTML = HTML as XML application (older exam mention).

6. Cookies vs Sessions

CookiesSessions
StoredClient (browser)Server (session id often in cookie)
SizeSmall limitsCan hold more server-side
SecurityVisible/modifiable by userSafer for sensitive data
LifetimeExpiry settableEnds on timeout/logout typically
  • Used for login state, preferences, cart.
  • Trap: Cookie alone is not secure storage for passwords.

7. ASP.NET / .NET Stack (keywords)

TermIdea
.NETMicrosoft development platform
ASP.NETWeb framework on .NET for dynamic sites/APIs
CLRCommon Language Runtime — execution engine
CTSCommon Type System — shared type rules across languages
CLSCommon Language Specification — interop subset
JITJust-In-Time compiler — IL → native code at runtime
MSIL / ILIntermediate Language from compilers
Managed codeRuns under CLR

Pipeline idea: Source → Compiler → IL → JIT → Native execution.

  • ASP.NET Web Forms / MVC / Core — names appear in exams; Core = cross-platform evolution.

8. Web Servers

ServerNotes
IISInternet Information Services — Microsoft Windows
ApachePopular open-source HTTP server
OthersNginx, Tomcat (Java servlets — awareness)

Role: listen for HTTP requests, return pages/resources, run server-side apps.


9. Client–Server & Page Types

ConceptIdea
ClientBrowser / app requesting
ServerHost providing resources/apps
Static pageSame HTML file returned (no server computation per request)
Dynamic pageGenerated/processed on server (ASP.NET, PHP, JSP…) using DB/logic
  • Thin client vs fat client (exam vocabulary).
  • 3-tier: presentation → application → data.

Quick Revision Traps

  1. HTTPS = encrypted HTTP (port 443).
  2. title in head; visible headings use h1… in body.
  3. CSS box: margin outside border; padding inside border.
  4. XML = data; HTML = display.
  5. Sessions mainly server-side; cookies client-side.
  6. CLR runs managed .NET code; JIT compiles IL.
  7. IIS ↔ Microsoft; Apache ↔ common open-source.
  8. Static = fixed file; dynamic = generated response.