All the study material you need for CS6501 / IT6501 (Internet Programming / Web Technology) — syllabus, 2-mark questions, 16-mark questions, and lab exercises.
CS6501 / IT6501 — 5 units mapped to our free lessons
| Unit | Topics Covered | Study Here |
|---|---|---|
| Unit I — HTML & CSS | HTML5 elements, forms, tables, semantic tags, CSS selectors, box model, flexbox, media queries | HTML Course · CSS Course |
| Unit II — JavaScript | Data types, operators, control flow, functions, arrays, objects, DOM, events, form validation | JavaScript Course |
| Unit III — XML & Web Services | XML syntax, DTD, XML Schema, XSLT, XPath, SOAP, REST, JSON, AJAX | Coming soon — bookmark & check back |
| Unit IV — Server-side Scripting (PHP) | PHP syntax, arrays, strings, form handling, sessions, cookies, MySQL connectivity | Coming soon |
| Unit V — Emerging Technologies | React basics, Node.js overview, web security, HTTPS, responsive design, PWA concepts | Coming soon |
Short-answer questions that frequently appear in AU end-semester exams
<video>, <audio> — embed media without plugins<canvas> — 2D drawing via JavaScript<header>, <nav>, <section>, <article>, <footer>id and class in CSS?id is unique — only one element per page can have a given id; selected with #idname. class can be shared across multiple elements; selected with .classname. id has higher specificity than class.== and === in JavaScript.== (loose equality) compares values after type coercion — "5" == 5 is true. === (strict equality) compares both value AND type — "5" === 5 is false. Always prefer === to avoid unexpected bugs.click (user clicks a button), keydown (user presses a key), submit (form is submitted), load (page finishes loading).var, let and const?var: function-scoped, hoisted, can be re-declared (avoid in modern JS). let: block-scoped, not hoisted, can be reassigned. const: block-scoped, cannot be reassigned — use for values that don't change.p { }. (2) Class selector — .card { }. (3) ID selector — #header { }. (4) Attribute selector — input[type="text"] { }. Also: pseudo-class :hover, pseudo-element ::before.Long-answer questions — appear almost every exam. Learn these in detail.
<header> — site/section header. Contains logo, nav, title.<nav> — main navigation links.<main> — primary content area (only one per page).<section> — a thematic grouping with a heading.<article> — self-contained content (blog post, news item).<aside> — sidebar content loosely related to the main content.<footer> — copyright, links, contact info.<figure> / <figcaption> — image with caption.<time> — machine-readable date/time.<div> has no meaning — it's a generic container. Semantic elements tell browsers and assistive technologies what the content is, improving accessibility (WCAG) and SEO. Screen readers can jump directly to <main> or <nav> without reading the whole page.
display: flex — activates flexboxflex-direction: row | column | row-reverse | column-reversejustify-content: flex-start | flex-end | center | space-between | space-around | space-evenly (main axis)align-items: stretch | flex-start | flex-end | center | baseline (cross axis)flex-wrap: nowrap | wrap | wrap-reversegap: space between itemsflex-grow: how much an item grows (default 0)flex-shrink: how much it shrinks (default 1)flex-basis: initial size before growing/shrinkingflex: 1 shorthand (grow=1, shrink=1, basis=0)align-self: override align-items for one itemorder: change visual order without changing HTMLdisplay:flex; justify-content:center; align-items:center;
function greet(name) { return "Hello " + name; }
const greet = function(name) { return "Hello " + name; };
this.const greet = (name) => "Hello " + name;
let/const are block-scoped (inside { }). var is function-scoped.
function counter() {
let count = 0;
return function() { count++; return count; };
}
const inc = counter();
inc(); // 1
inc(); // 2 ← 'count' is closed over
Study these lessons: Functions · Arrow Functions · Scope & Closures
document.getElementById('id') — single element by iddocument.querySelector('.class') — first matching CSS selectordocument.querySelectorAll('p') — NodeList of all matchesel.textContent — get/set text (safe)el.innerHTML — get/set HTML markupel.getAttribute('href') / el.setAttribute('href','url')el.style.color = 'red'el.classList.add('active'), .remove(), .toggle()document.createElement('div')parent.appendChild(child)el.remove()el.addEventListener('click', function() { ... })
display: gridgrid-template-columns: 200px 1fr 1fr — defines column widthsgrid-template-rows: auto 400pxgap: 16px — space between cellsgrid-template-areas — named areasjustify-items / align-items — align content in cellsgrid-column: 1 / 3 — span from line 1 to 3grid-row: 2 / 4grid-area: header — place in named areagrid-template-columns: repeat(auto-fill, minmax(250px, 1fr))
— creates as many columns as will fit; each at least 250px wide.
Practical programs for Anna University Web Technology lab exam
Create an HTML page with headings, paragraphs, ordered/unordered lists, image, and a hyperlink.
Design a student mark sheet using HTML tables with rowspan, colspan, borders and caption.
Build a form with text, email, password, radio buttons, checkboxes, dropdown and submit button.
Apply external CSS to style the registration form — fonts, colors, borders, hover effects.
Create a navigation bar using HTML + CSS Flexbox that collapses on mobile screens.
Design a magazine-style page layout using CSS Grid with header, sidebar, main content, and footer.
Write JS to validate a registration form — check empty fields, email format, password strength before submit.
Build a to-do list where users can add, check off, and delete tasks using JavaScript DOM methods.
Create an image gallery with CSS Grid. Clicking a thumbnail shows the full image using JavaScript.
Use the Fetch API to load and display JSON data from a public API without reloading the page.
Build a multi-section personal portfolio page using HTML5 semantic tags, CSS Flexbox/Grid and smooth scroll.
Implement a loading spinner and a slide-in card animation using CSS @keyframes and transitions.
From students who scored well in Web Technology
CSS box model (content, padding, border, margin) appears in almost every exam. Draw a diagram and memorize the formula for total width.
HTML5 semantic elements are guaranteed 16-mark material. Know what each tag means and when to use it vs <div>.
Always include a code snippet in 16-mark answers. Examiners reward working examples. Even 10 lines of correct HTML/CSS adds marks.
Know the difference: Flexbox = 1D (row OR column). Grid = 2D (rows AND columns). A common question asks you to compare them.
Lab programs are given 3 hours. Practice all 12 exercises until you can write them from memory. Lab exam = guaranteed 100 if you prepare.
Our XML/PHP/Ajax lessons are coming soon. For now, W3Schools has accurate reference pages. Focus on concepts and definitions for theory.