Skip to Main Content
University of Kerala • BCA Semester 1 • UK1DSCCAP105

Web Designing Using HTML Notes

DSC course under University of Kerala (UoK FYUGP Regulations). Credits: 4 | 60 Hours (4 Hrs/Week).

Curated by Anoop (Thiruvananthapuram) (BCA Academic Contributor)•Last updated: November 2026•Based on University of Kerala FYUGP Regulations

Chapter-Wise Module Notes & PDF Downloads

Short Notes

All Modules Included

Complete syllabus revision notes covering all modules in one single PDF

Module 1

Basic HTML5 Commands

Module 2

Advanced Features in HTML5

Module 3

Introduction to CSS3

Module 4

Stylesheets for High Level Visual Designs

Module 5

Modern HTML5/CSS3, Static Website Design and Web Tools

Interactive Reading Experience

Read Module Notes Online

Module I: Basic HTML5 Commands

HTML5 Foundations, DOCTYPE, Charset, Basic Tags, Lists, Tables, Links, Images, ImageMaps, Audio and Video

Chapter 1: HTML5 Foundations, Document Structure, DOCTYPE, and Character Encoding

1.1 Web Design Foundations and Client-Server Architecture

Modern web design combines information architecture, visual hierarchy, interface clarity, and semantic markup to deliver structured content across interconnected networks. At the core of the World Wide Web lies HyperText Markup Language (HTML), a declarative language used to define the structural meaning and logical hierarchy of documents transmitted over the Hypertext Transfer Protocol (HTTP/HTTPS). Unlike procedural programming languages that execute sequential instructions, HTML describes the semantic purpose of content—identifying headings, paragraphs, tabular datasets, hyperlinks, and embedded media—so that user agents such as desktop browsers, mobile browsers, search engine crawlers, and assistive screen readers can interpret and render the document accurately.

When a user enters a web address into a browser, the client dispatches an HTTP request to a remote web server or local filesystem. The server responds with a raw byte stream containing the HTML document alongside response headers such as Content-Type: text/html; charset=UTF-8. Upon receiving these bytes, the browser rendering engine executes a multi-stage parsing pipeline: byte decoding into characters, lexical tokenization into start tags and end tags, construction of the in-memory Document Object Model (DOM) tree, resolution of external stylesheets into the CSS Object Model (CSSOM), layout geometry computation, and final pixel painting on the screen.

Effective site organization and information architecture begin at the document level. Before writing a single markup tag, a web designer plans how visitors locate primary tasks, how navigational pathways remain consistent across documents, and how content flows logically from broad thematic headings down to granular factual paragraphs. Clean HTML5 markup establishes this structural backbone without entangling presentation rules inside content tags.

1.2 Evolution from SGML and HTML 4.01 to the HTML5 Standard

Tim Berners-Lee introduced the earliest specification of HTML at CERN in 1991 as an accessible SGML-derived format for sharing scientific papers via hyperlinks. Through the late 1990s, HTML 4.01 (standardized by the World Wide Web Consortium, W3C) introduced frames, richer form controls, and stylesheets, while XHTML 1.0 attempted to reformulate HTML under strict XML syntax rules. In 2004, browser vendors formed the Web Hypertext Application Technology Working Group (WHATWG) to evolve HTML for interactive web applications while preserving backward compatibility with existing websites. This effort culminated in HTML5, which unified error-handling rules, native multimedia playback, semantic sectioning elements, and form validation directly into the browser platform.

1.3 The Role and Syntax of <!DOCTYPE html>

Every standards-compliant HTML5 document must begin on its very first line with the Document Type Declaration: <!DOCTYPE html>. Historically, HTML 4.01 and XHTML 1.0 required verbose declarations referencing external Document Type Definition (DTD) URLs for Strict, Transitional, or Frameset variants. Because HTML5 is not formally defined as an SGML application, it requires no DTD URL. Instead, the compact declaration serves a critical engineering trigger inside modern web browsers known as mode switching.

  • Standards Mode (No-Quirks Mode): When <!DOCTYPE html> appears at the top of a document without preceding non-whitespace content, browsers render CSS box dimensions, table inheritance, and font metrics strictly according to W3C and WHATWG specifications.
  • Quirks Mode: When the DOCTYPE declaration is omitted or preceded by malformed comments or text, browsers revert to legacy late-1990s rendering heuristics (such as non-standard box-sizing calculations and erratic vertical line heights) to avoid breaking outdated websites.
  • Case Insensitivity and Placement: Although <!DOCTYPE html> is case-insensitive in HTML5 parsing, lowercase html paired with uppercase DOCTYPE is the universal convention. It is a preamble directive rather than an HTML element and has no closing tag.

1.4 Root Document Anatomy and Character Encoding (<meta charset="UTF-8">)

Immediately below the DOCTYPE declaration sits the root <html> container element, which encloses the entire document tree. Attaching the lang attribute (for example, <html lang="en">) explicitly declares the primary human language of the document. Screen readers rely on lang to select appropriate pronunciation dictionaries, search engines use it for regional indexing, and CSS hyphenation engines require it for accurate word breaking.

Inside <html> reside exactly two direct child containers: <head> and <body>. The <head> element holds machine-readable metadata about the document that is not rendered directly inside the viewport canvas, whereas <body> houses all visible text, imagery, interactive controls, and media displayed to the reader.

Within <head>, the character encoding declaration <meta charset="UTF-8"> must appear within the first 1,024 bytes of the file so the parser knows how to interpret multi-byte sequences before encountering non-ASCII text in the <title> or body. A character set (charset) maps numeric code points to human glyphs and symbols:

  • ASCII (7-bit): Represents only 128 English letters, numerals, and control characters, failing completely for accented European scripts, Indian scripts such as Malayalam or Devanagari, mathematical operators, and currency symbols.
  • ISO-8859-1 (Latin-1): An 8-bit single-byte encoding supporting 256 characters primarily for Western European languages, still unable to mix multilingual scripts in one document.
  • UTF-8 (Unicode Transformation Format – 8-bit): A variable-length character encoding (1 to 4 bytes per code point) capable of representing every character in the Unicode standard—over 1.1 million code points—while remaining 100 percent backward-compatible with 7-bit ASCII. UTF-8 prevents "mojibake" (garbled text symbols) and is mandated as the default encoding for HTML5.

Alongside character encoding, well-engineered HTML5 documents include <meta name="viewport" content="width=device-width, initial-scale=1.0"> to prevent mobile browsers from shrinking desktop-width layouts onto miniature screens, a descriptive <title> shown in browser tabs and search results, and <meta name="description"> summarizing the document for search snippets. When reserved markup characters (such as <, >, or &) must appear as literal text rather than tag delimiters, authors use HTML Character Entities: &lt; for less-than, &gt; for greater-than, &amp; for ampersand, &quot; for double quotation mark, &nbsp; for a non-breaking space, and &copy; for the copyright symbol.

Document Construct Syntax Example Technical Function Placement Rule
Document Type Preamble <!DOCTYPE html> Activates HTML5 Standards Mode in layout engines Very first line before root element
Root Element & Language <html lang="en"> Encloses entire DOM and declares primary natural language Immediately after DOCTYPE
Character Encoding Meta <meta charset="UTF-8"> Declares variable-width Unicode byte decoding Inside head within initial 1,024 bytes
Responsive Viewport Meta <meta name="viewport" ...> Synchronizes CSS layout width with physical device width Inside head section
Document Title <title>Course Portal</title> Sets browser tab label, bookmark name, and SERP title Required inside head container
Listing 1.1: Complete Minimal Standards-Compliant HTML5 Boilerplate
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="Foundational HTML5 document structure demonstration">
  <title>HTML5 Foundations | Web Designing</title>
</head>
<body>
  <h1>Welcome to Standards-Compliant HTML5</h1>
  <p>This document validates UTF-8 characters such as &copy; 2026 and &amp; symbols.</p>
</body>
</html>

Chapter 2: Basic HTML5 Tags — Empty vs. Container Elements, Headings, Paragraphs, and Text Formats

2.1 Anatomy of an HTML5 Element and Attributes

An HTML element consists of a start tag enclosed in angle brackets, optional attributes inside the start tag, inner content (text or nested child elements), and a matching end tag prefixed by a forward slash. Attributes refine element behavior or attach metadata using name="value" pairs separated by spaces. Global attributes such as id (unique identifier within the document), class (reusable grouping identifier for styling), title (advisory tooltip text), and lang apply across nearly all visible elements, whereas element-specific attributes such as href or src apply only to designated tags. Quoting attribute values in double quotes ensures reliable parsing whenever values contain spaces, punctuation, or URL query strings.

2.2 Container Tags vs. Empty (Void) Tags

HTML5 partitions all markup elements into two structural categories based on whether they encapsulate inner content and permit nested children:

  • Container Tags (Paired Elements): Require both an opening tag and an explicit closing tag (for example, <p>...</p>, <h1>...</h1>, <strong>...</strong>, <table>...</table>, <ul>...</ul>). Container tags create a bounding scope in the DOM tree. Improperly overlapping container tags (such as opening <strong> inside <p> and closing </p> before </strong>) violates nesting hierarchy; child elements must always close in reverse order of opening (Last-In, First-Out).
  • Empty Tags (Void Elements): Cannot wrap inner text or child nodes and therefore have no closing tag. In HTML5 syntax, writing a separate end tag for a void element is invalid. The core void elements used across web design include <br> (line break), <hr> (thematic horizontal rule), <img> (embedded image), <meta> (metadata), <link> (external resource link), <input> (form control), <source> (media alternative), <track> (timed subtitles), <area> (image map hotspot), <base> (base URL), and <col> (table column definition). While XHTML permitted trailing slashes such as <br />, native HTML5 prefers concise tags without trailing slashes.

2.3 Semantic Headings, Paragraphs, Line Breaks, and Whitespace Collapsing

HTML provides six tiered heading elements from <h1> (highest topical importance) down to <h6> (lowest sub-topic heading). Headings construct a navigable outline of the document. Screen reader users frequently jump directly between heading levels to skim a document; consequently, web designers must never select heading levels purely for font size (visual sizing belongs to CSS) and must avoid skipping levels abruptly (such as jumping from <h1> directly to <h4>).

Prose blocks reside inside paragraph tags (<p>...</p>). By default, browsers enforce whitespace collapsing: consecutive spaces, tabs, and source-code newlines inside normal flow elements collapse into a single rendered space character. To force an explicit line break within a contiguous block—such as formatting lines of a postal address or stanza of poetry—authors insert the empty <br> tag rather than creating separate paragraphs. When source spacing and line breaks must be preserved verbatim (such as displaying ASCII art or formatted program listings), the <pre> (preformatted text) container renders characters in a monospace typeface with every space and newline intact. A thematic shift between topical sections inside a narrative is marked using the empty <hr> element, which renders as a horizontal rule.

2.4 Physical vs. Semantic Inline Text Formatting

HTML5 distinguishes strictly between purely visual formatting tags and semantic inline elements that convey linguistic or technical intent to machines and assistive software:

  • Strong Importance vs. Boldface: <strong> indicates serious urgency, high importance, or critical warning (typically rendered bold by browsers), whereas <b> draws stylistic attention to keywords or product names without asserting extra semantic urgency.
  • Stress Emphasis vs. Italic Voice: <em> expresses verbal stress emphasis that alters the tone or meaning of a sentence, whereas <i> marks idiomatic phrases, foreign words, technical taxonomic names, or ship names in an alternate voice.
  • Editorial Revisions and Highlighting: <mark> highlights text for contextual relevance (such as search term matches), <small> denotes fine print or copyright disclaimers, <del> strikes through deleted historical text, and <ins> underlines newly inserted editorial text.
  • Scientific and Technical Inline Semantics: <sub> formats chemical subscripts (H2O) and mathematical indices, <sup> formats exponents (x2) and ordinal suffixes, <code> identifies computer code fragments, <kbd> marks user keyboard input (such as Ctrl + S), <samp> designates sample program output, <abbr title="..."> expands abbreviations on hover, <blockquote> indents multi-line external quotations (with optional cite URL), and <q> wraps short inline quotations with automatic quotation marks.
Element Category Semantic Purpose Default Rendering
<h1> to <h6> Block Container Six-level hierarchical document outline headings Bold, descending font scale
<p>, <pre> Block Container Standard prose paragraph vs. literal-whitespace block Vertical margins; monospace for pre
<br>, <hr> Empty / Void Intra-block line break vs. thematic section break New line; horizontal divider
<strong>, <em> Semantic Inline Strong structural urgency; verbal stress emphasis Bold weight; italic slant
<del>, <ins>, <mark> Semantic Inline Removed text, inserted revision, highlighted excerpt Strikethrough, underline, yellow fill
<sub>, <sup>, <code> Technical Inline Subscript, superscript, inline computer code fragment Lowered/raised small text; monospace
Listing 1.2: Headings, Paragraphs, Void Elements, and Semantic Text Formatting
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Semantic Text Formatting</title>
</head>
<body>
  <h1>Web Typography and Semantic Markup</h1>
  <h2>1. Chemical &amp; Mathematical Notation</h2>
  <p>Water is denoted as H<sub>2</sub>O, while Einstein's mass-energy relation is E = mc<sup>2</sup>.</p>
  <hr>
  <h2>2. Editorial &amp; Keyboard Semantics</h2>
  <p><strong>Warning:</strong> Always save drafts using <kbd>Ctrl</kbd> + <kbd>S</kbd> before closing.<br>
  The <abbr title="World Wide Web Consortium">W3C</abbr> <del>deprecated</del> <ins>standardized</ins> HTML5 tags with <mark>clear semantics</mark>.</p>
  <blockquote cite="https://www.w3.org">
    <p><em>Good markup</em> separates document meaning from visual presentation.</p>
  </blockquote>
</body>
</html>

Chapter 3: Managing Information with Lists and Designing Data Tables

3.1 Unordered, Ordered, and Description Lists

Structured lists organize discrete items, sequential instructions, navigation menus, and term-definition glossaries into scannable groups. HTML5 supplies three list constructs:

  • Unordered Lists (<ul>): Represent collections where item sequence does not change meaning (such as feature bullets or navigation links). Every item must be wrapped inside an <li> (list item) container. Browsers render filled disc bullets by default, which CSS later customizes.
  • Ordered Lists (<ol>): Represent numbered sequences where order is essential (such as procedural algorithms, recipe steps, or ranked standings). HTML5 supports three practical attributes on <ol>: type ("1" for decimals, "A" or "a" for uppercase/lowercase letters, "I" or "i" for Roman numerals), start (integer starting counter such as start="5"), and the boolean reversed attribute for descending countdowns.
  • Description Lists (<dl>): Pair terms with explanations using <dt> (description term) and <dd> (description details). A single <dt> may precede multiple <dd> definitions, or multiple synonymous terms may share one <dd>, making <dl> ideal for technical glossaries and metadata key-value pairs.

Nested lists express multi-level hierarchies—such as a syllabus outline with topics and sub-topics—by placing a complete inner <ul> or <ol> strictly inside a parent <li> container, never directly as a sibling between <li> elements.

3.2 Designing Accessible Semantic Data Tables

HTML tables present two-dimensional tabular datasets arranged in rows and columns (such as academic timetables, financial ledgers, or specification matrices). Modern web design strictly prohibits using tables for visual webpage layout because CSS handles multi-column layouts cleanly while layout tables confuse screen readers. A well-structured HTML5 table separates metadata, column headers, data rows, and summary totals using dedicated semantic containers:

  • <table> and <caption>: The outer <table> wrapper begins with an optional <caption> as its first child, supplying an accessible title summarizing the table's dataset.
  • Row Groups (<thead>, <tbody>, <tfoot>): Partition the table vertically into header rows, one or more scrollable data bodies, and footer summary rows. During multi-page printing, browsers repeat <thead> headers automatically across page boundaries.
  • Rows and Cells (<tr>, <th>, <td>): Each horizontal row is enclosed in <tr>. Header cells use <th> (bold and centered by default) with the scope attribute (scope="col" for column headers, scope="row" for row headers) so assistive technologies announce the corresponding column/row labels as a blind user navigates cells. Standard data cells use <td>.
  • Column Grouping (<colgroup> and <col>): Allow applying structural classes or widths across entire vertical columns without duplicating attributes on every individual cell; <col> supports a span integer attribute and is an empty tag.

3.3 Merging Cells with colspan and rowspan

Complex tabular reports frequently span headers across multiple adjacent columns or merge repeated category labels across consecutive vertical rows. Applying colspan="n" on a <th> or <td> stretches that cell horizontally across n columns, requiring n - 1 fewer cells in that row. Similarly, rowspan="m" stretches a cell vertically down through m rows; each of the subsequent m - 1 rows must omit the cell occupying that spanned column slot. Careful row-by-row grid counting prevents jagged, misaligned columns.

Element / Attribute Context Permitted Values / Syntax Structural Impact
type, start, reversed <ol> 1|a|A|i|I, integer, boolean Customizes numbering format, start index, and countdown
<dl>, <dt>, <dd> Description List Containers inside <dl> Associates dictionary terms with indented definitions
scope <th> col, row, colgroup, rowgroup Binds header labels programmatically to data cells
colspan / rowspan <th>, <td> Positive integer (≥ 1) Merges adjacent horizontal columns or vertical rows
Listing 1.3: Nested Syllabus List and Semester Schedule Table with Rowspan and Colspan
<section>
  <h2>BCA Semester I Course Outline</h2>
  <ol type="I">
    <li>Basic HTML5 Commands
      <ul>
        <li>DOCTYPE and UTF-8 Charset</li>
        <li>Lists and Semantic Tables</li>
      </ul>
    </li>
    <li>Advanced HTML5 Features</li>
  </ol>

  <table>
    <caption>Departmental Lab Timetable</caption>
    <thead>
      <tr>
        <th scope="col">Day</th>
        <th scope="col" colspan="2">Morning Session (09:30 - 11:30)</th>
        <th scope="col">Afternoon Lab</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row" rowspan="2">Monday</th>
        <td>HTML5 Foundations</td>
        <td>Tag Lab</td>
        <td rowspan="2">Multimedia Studio</td>
      </tr>
      <tr>
        <td colspan="2">Table &amp; List Design Workshop</td>
      </tr>
    </tbody>
    <tfoot>
      <tr>
        <th scope="row" colspan="3">Total Practical Hours</th>
        <td>4 Hours</td>
      </tr>
    </tfoot>
  </table>
</section>

Chapter 4: Making Connections with Links — Hyperlinks, Anchors, and URLs

4.1 Anatomy of a Uniform Resource Locator (URL)

Hyperlinks transform isolated static files into an interconnected web of information. Every hyperlink points to a target address expressed as a Uniform Resource Locator (URL), a specific form of Uniform Resource Identifier (URI) that specifies both resource identity and network retrieval mechanism. A complete URL comprises six structured components:

https://portal.university.edu:8443/bca/sem1/notes.html?course=105#module1

  • Scheme (Protocol): https:// instructs the client to connect via encrypted HTTP over TLS; alternative schemes include http://, mailto:, tel:, and file://.
  • Host (Domain / IP Address): portal.university.edu identifies the target server resolved via DNS.
  • Port (Optional): :8443 designates a specific TCP network port when differing from standard defaults (80 for HTTP, 443 for HTTPS).
  • Path: /bca/sem1/notes.html maps to the hierarchical directory route or server endpoint hosting the document.
  • Query String (Optional): Preceded by ?, carries key-value parameter pairs separated by & for server filtering or tracking.
  • Fragment Identifier (Optional): Preceded by #, instructs the browser to scroll directly to an element matching that id within the target document without sending the fragment to the server.

4.2 Absolute vs. Relative URLs and the <base> Element

Selecting between absolute and relative addressing depends on whether the target belongs to an external domain or resides within the same website hierarchy:

  • Absolute URL: Supplies the full scheme and domain name (for example, https://www.w3.org/TR/html52/). Absolute links are mandatory when linking to external servers.
  • Document-Relative URL: Resolves relative to the directory containing the current HTML file—such as chapters/html.html (descending into a child folder), ../index.html (ascending one parent directory using double dots), or about.html (same directory). Relative paths make local development and domain migration effortless because internal links continue functioning regardless of server hostname.
  • Root-Relative URL: Begins with a single leading forward slash (for example, /assets/css/style.css), resolving from the domain root directory across every nested subfolder. Note that root-relative paths require serving over an HTTP web server rather than opening raw file:// paths locally.
  • The <base> Element: Placed inside <head>, the empty <base href="https://example.edu/bca/" target="_blank"> tag establishes a global prefix and default target browsing context for every relative link on the document.

4.3 The Anchor Element (<a>), Targets, Fragment Anchors, and Special URI Schemes

The container element <a> (anchor) creates clickable hyperlinks around descriptive text, headings, or image thumbnails. Usability guidelines strongly emphasize descriptive link text (such as "Download Semester I Syllabus PDF") rather than vague labels like "Click here", because screen readers often read lists of links out of context.

Key attributes governing anchor behavior include:

  • href: Specifies the destination URL, intra-document fragment, or action protocol. Without href, an <a> tag acts only as a placeholder rather than an interactive link.
  • target: Controls which browsing context loads the linked resource: _self (default, replaces current viewport), _blank (opens a new tab or window), _parent (loads into immediate parent frameset/iframe), and _top (breaks out into full top-level browser window).
  • rel: Documents the relationship between current and linked documents. Whenever using target="_blank", security best practice mandates pairing rel="noopener noreferrer" to prevent the opened external page from manipulating the originating tab via window.opener or receiving HTTP referrer headers.
  • download: Prompts the browser to save the linked asset locally rather than navigating to it; optionally accepts a suggested filename such as download="syllabus-bca.pdf".
  • mailto: and tel: Schemes: href="mailto:[email protected]?subject=BCA%20Query" invokes the user's configured email client, while href="tel:+914712300000" initiates telephone dialing on mobile smartphones.

Intra-document bookmark anchors enable rapid navigation across long textbooks or single-page portfolios. First, assign a unique id attribute to the destination heading or section (for example, <h2 id="tables-guide">). Next, link to it using <a href="#tables-guide">Jump to Tables</a>. Adding a "Skip to Main Content" anchor at the very top of <body> linking to #main-content greatly improves keyboard accessibility.

URL / Anchor Pattern Code Example Resolution & Behavior
Document-Relative Upward href="../css/theme.css" Ascends one folder level then enters css directory
External Secure New Tab href="https://w3.org" target="_blank" rel="noopener noreferrer" Opens external site safely in isolated browser tab
Intra-Page Fragment Anchor href="#section-forms" Scrolls smoothly to element possessing id="section-forms"
Email & Telephony Protocol href="mailto:[email protected]" / href="tel:+919876543210" Triggers native operating system mail or phone application
Listing 1.4: Hyperlink Navigation, Fragment Anchors, Download Links, and Contact Schemes
<nav aria-label="Document Navigation">
  <a href="#skip-target">Skip to Content</a> |
  <a href="index.html">Home</a> |
  <a href="../resources/lab-manual.pdf" download="BCA-Lab-Manual.pdf">Download Lab Manual</a> |
  <a href="https://developer.mozilla.org" target="_blank" rel="noopener noreferrer">MDN Docs</a>
</nav>

<main id="skip-target">
  <h2 id="module-links">Hyperlink Reference Section</h2>
  <p>Contact the lab coordinator via
     <a href="mailto:[email protected]?subject=HTML5%20Practical">email</a> or call
     <a href="tel:+914712345678">+91 471 234 5678</a>.
  </p>
  <p><a href="#module-links">Return to Section Top</a></p>
</main>

Chapter 5: Adding Images to Pages — <img>, Graphics Formats, and Image Maps

5.1 Web Imagery Theory and Graphics File Formats

Visual imagery enriches comprehension, strengthens brand identity, and guides visual attention across web interfaces. Choosing the proper image format balances visual crispness against network download weight so pages load rapidly on mobile connections:

  • JPEG / JPG (Joint Photographic Experts Group): Uses lossy compression tuned for continuous-tone photographs and rich gradients. Does not support alpha transparency; over-compression introduces blocky artifacts around sharp text edges.
  • PNG (Portable Network Graphics): Uses lossless compression supporting both crisp sharp-edged graphics (diagrams, logos, screenshots) and full 8-bit alpha channel transparency (PNG-24/PNG-32).
  • GIF (Graphics Interchange Format): Restricted to a 256-color palette with 1-bit binary transparency; mainly suited for simple short frame animations.
  • WebP and AVIF: Next-generation formats providing both lossy and lossless compression alongside alpha transparency at 25 to 50 percent smaller file sizes than legacy JPEG or PNG.
  • SVG (Scalable Vector Graphics): XML-based mathematical vector geometry (paths, circles, polygons) rather than pixel grids. Scales infinitely without blurriness on high-DPI Retina displays, ideal for logos, icons, and line charts.

5.2 The <img> Element and Semantic Captions

The empty <img> element embeds raster or vector images into the document flow. Its two foundational attributes are src (specifying the relative or absolute image path) and alt (alternative text). Alternative text is read aloud by screen readers, displayed when network failures block image loading, and indexed by image search engines. Meaningful content images must receive concise descriptive alt text, whereas purely decorative icons should carry an empty string alt="" so assistive software skips them silently.

Supplying explicit intrinsic width and height attributes (in integer pixels without units) enables browsers to reserve exact aspect-ratio space before image bytes finish downloading, preventing jarring Cumulative Layout Shift (CLS) where text jumps unexpectedly during page load. Adding loading="lazy" defers downloading off-screen below-the-fold images until the reader scrolls near them. For captioned illustrations or charts, wrap <img> inside a semantic <figure> container paired with a descriptive <figcaption>.

5.3 Interactive Client-Side Image Maps (<map> and <area>)

An Image Map partitions a single visual diagram—such as a geographic map, floor plan, or hardware motherboard diagram—into multiple independent clickable hotspot regions, each routing to a distinct URL. Client-side image maps link an <img> element's usemap="#mapIdentifier" attribute (prefixed with a hash symbol) to a corresponding <map name="mapIdentifier"> container holding child empty <area> tags.

Every <area> element requires shape, coords (measured in CSS pixels starting from (0, 0) at the top-left corner of the image), href, and accessible alt text:

  • shape="rect": Defines an axis-aligned rectangle using four coordinates coords="x1,y1,x2,y2" representing top-left corner (x1, y1) and bottom-right corner (x2, y2).
  • shape="circle": Defines a circular hotspot using three values coords="xc,yc,r" representing center coordinates (xc, yc) and pixel radius r.
  • shape="poly": Defines an arbitrary closed polygon using paired vertex coordinates coords="x1,y1,x2,y2,x3,y3,...".
  • shape="default": Covers the entire remaining background area not claimed by prior <area> shapes; order matters because overlapping hotspots resolve top-to-bottom.

5.4 Quantitative Image Scaling and Hit-Test Coordinate Geometry

When resizing high-resolution photographs for web placement, preserving the intrinsic aspect ratio prevents horizontal stretching or vertical squashing. Similarly, circular image map hit-testing verifies whether a cursor click falls inside a hotspot radius.

Legend: = original pixel width and height of the image; = target rendered width and height in pixels; = user pointer click position relative to the top-left corner of the image; = center coordinate of a circular <area> hotspot; = hotspot pixel radius; = Euclidean pixel distance from click to center.

Worked Numerical Example: Suppose a campus diagram has native dimensions pixels and is displayed at a target width of pixels. First, calculate the proportional height: pixels. Next, suppose an auditorium hotspot on this image is declared as shape="circle" coords="240,180,50", and a student clicks at pixel coordinate . Computing the Euclidean distance yields pixels. Since , the click lies cleanly on the circular boundary and triggers the auditorium hyperlink.

Format / Construct Compression / Geometry Transparency / Coordinates Optimal Web Use Case
JPEG / WebP Lossy (WebP also lossless) Opaque (JPEG); Alpha (WebP) Photographs, hero banners, product imagery
PNG / SVG Lossless raster / Vector XML Full 8-bit alpha channel UI screenshots, icons, crisp typography logos
area shape="rect" 4 integers: x1,y1,x2,y2 Top-left to bottom-right box Floor-plan rooms, navigation toolbar regions
area shape="circle" 3 integers: xc,yc,r Center point and pixel radius Circular dials, geographic pins, solar diagrams
area shape="poly" 2N integers: x1,y1,...,xN,yN Multi-vertex closed polygon Irregular states, countries, custom components
Listing 1.5: Captioned Figure and Multi-Shape Client-Side Image Map
<figure>
  <img src="images/campus-map.png"
       alt="University campus interactive map showing Library, Lab, and Auditorium"
       width="800"
       height="500"
       usemap="#campus-hotspots"
       loading="lazy">
  <figcaption>Figure 1.1: Click any labeled campus building to view room schedules.</figcaption>
</figure>

<map name="campus-hotspots">
  <area shape="rect" coords="40,50,210,160" href="library.html" alt="Central Library">
  <area shape="circle" coords="240,180,50" href="auditorium.html" alt="Main Auditorium">
  <area shape="poly" coords="420,90,580,90,610,220,390,220" href="cs-lab.html" alt="Computer Lab Block">
</map>

Chapter 6: Working with Native HTML5 Audio and Video Multimedia

6.1 Native Multimedia Playback Architecture

Before HTML5, playing audio streams or video lectures inside browsers depended on proprietary third-party plugins such as Adobe Flash, Microsoft Silverlight, or QuickTime, introducing severe security vulnerabilities, high battery drain, and zero mobile compatibility. HTML5 standardized native <audio> and <video> container elements directly within browser rendering engines, exposing uniform hardware-accelerated decoding, built-in playback controls, and scriptable media controls.

A multimedia file consists of a container format (such as MP4, WebM, Ogg, or MP3) bundling encoded elementary streams compressed via specific codecs (compression-decompression algorithms). Because browser vendors occasionally vary in royalty-free vs. proprietary codec support, HTML5 provides a nested fallback mechanism using multiple <source> elements.

6.2 Audio and Video Elements, Attributes, and Multi-Source Fallback

Both <audio> and <video> share core playback control attributes:

  • controls: A boolean attribute instructing the browser to render native play/pause, timeline scrubber, volume slider, mute toggle, and fullscreen (for video) user interface widgets. Without controls (or custom JavaScript controls), an audio element remains completely invisible.
  • autoplay and muted: Modern browsers block unmuted automatic playback to protect user attention and bandwidth; consequently, autoplay reliably initiates immediately only when paired with muted (commonly used for silent ambient background video loops).
  • loop: Restarts playback seamlessly from the beginning upon reaching media completion.
  • preload: Hints to the browser how aggressively to buffer data prior to playback: none (conserves mobile bandwidth until play is pressed), metadata (fetches only duration and video dimensions), or auto (permits full pre-buffering).
  • poster, width, and height (Video only): poster="thumb.jpg" specifies a preview image displayed until playback starts, preventing blank black rectangles, while integer width and height prevent layout shift.

To ensure universal cross-browser playback, omit the single src attribute on the outer tag and nest ordered <source src="..." type="..."> void elements inside <video> or <audio>. The browser inspects each MIME type top-to-bottom and loads the first compatible format. Text placed after all <source> elements acts as fallback content displayed only by non-HTML5 browsers.

6.3 Accessible Media Tracks (<track>) for Captions and Subtitles

Multimedia accessibility under WCAG guidelines requires synchronized text alternatives for deaf, hard-of-hearing, or non-native language audiences. The empty <track> element links WebVTT (.vtt) timed text files directly inside <video> or <audio> containers using five attributes: src (path to the .vtt file), kind (subtitles for dialogue translation, captions for dialogue plus sound effects, descriptions for spoken visual narration, chapters for timeline navigation), srclang (two-letter ISO language code such as "en" or "ml"), label (human-readable menu entry), and boolean default to activate the primary track automatically.

Media Format / Element MIME Type String Typical Codecs Primary Role & Compatibility
MP4 Video (.mp4) video/mp4 H.264 / AAC Universal hardware-accelerated playback across desktop & mobile
WebM Video (.webm) video/webm VP9 or AV1 / Opus Open royalty-free high-efficiency web video streaming
MP3 Audio (.mp3) audio/mpeg MPEG-1 Layer III Universal speech, podcast, and music playback
Ogg Audio (.ogg) audio/ogg Vorbis or Opus Open-source lossless-oriented compressed audio fallback
<track> WebVTT text/vtt Plain UTF-8 timestamps Synchronized captions, multi-language subtitles, and chapters
Listing 1.6: Accessible Multi-Source HTML5 Audio and Video Players with Timed Captions
<section>
  <h2>Lecture Recording Player</h2>
  <video width="720" height="405" controls preload="metadata" poster="images/lecture-poster.jpg">
    <source src="media/html5-intro.webm" type="video/webm">
    <source src="media/html5-intro.mp4" type="video/mp4">
    <track src="captions/intro-en.vtt" kind="captions" srclang="en" label="English Captions" default>
    <track src="captions/intro-ml.vtt" kind="subtitles" srclang="ml" label="Malayalam Subtitles">
    Your browser does not support native HTML5 video. You may
    <a href="media/html5-intro.mp4">download the MP4 lecture</a> directly.
  </video>

  <h2>Audio Pronunciation Clip</h2>
  <audio controls preload="none">
    <source src="media/pronunciation.ogg" type="audio/ogg">
    <source src="media/pronunciation.mp3" type="audio/mpeg">
    Your browser does not support native audio playback.
  </audio>
</section>

University of Kerala FYUGP Academic Framework

Course CodeUK1DSCCAP105
Credits4 Credits (60h)
Internal (CIE)30 Marks
End-Sem (ESE)70 Marks

Syllabus details for BCA Semester 1 under official University of Kerala regulations.

Assessment comprises a 70-mark End-Semester Examination (2.5 Hours) and 30-mark Continuous Internal Evaluation.

About Web Designing Using HTML (University of Kerala BCA Sem 1)

Web Designing Using HTML (UK1DSCCAP105 • 4 Credits • 60 Hours (4 Hrs/Week)) is a DSC offering under the Bachelor of Computer Applications (BCA) Four-Year Undergraduate Programme (UoK FYUGP Regulations 2024 / 2025) at the University of Kerala. Structured across five sequentially integrated instructional modules, the course builds solid theoretical foundations and hands-on technical proficiency in web designing using html. Students engage with core computing principles, structured problem-solving, implementation techniques, and modern industry practices aligned with Kerala State Higher Education Council outcome-based education standards.

Web Designing Using HTML Module-by-Module Curriculum Breakdown

Official syllabus unit modules prescribed by the University of Kerala FYUGP framework:

Module I

Basic HTML5 Commands

Modern web design combines information architecture, visual hierarchy, interface clarity, and semantic markup to deliver structured content across interconnected networks. At the core of the World Wide Web lies HyperText Markup Language (HTML), a declarative language used to define the structural meaning and logical hierarchy of documents transmitted over the Hypertext Transfer Protocol (HTTP/HTTPS).

Module II

Advanced Features in HTML5

Prior to HTML5, web developers organized header banners, navigation bars, primary articles, sidebars, and footer copyright blocks using identical generic <div id="header"> or <div class="nav"> wrappers. While human designers could infer purpose from CSS class names, automated tools—including search engine indexing bots, browser reading modes, and screen readers for visually impaired users—saw only meaningless nested boxes.

Module III

Introduction to CSS3

While HTML5 encodes the structural meaning of headings, paragraphs, forms, and navigation links, Cascading Style Sheets Level 3 (CSS3) governs visual presentation—controlling color palettes, typography, spacing, borders, multi-column arrangement, and responsive device adaptation. Separating structural HTML markup from CSS presentation allows a single external stylesheet to restyle hundreds of linked documents simultaneously, minimizes HTML payload redundancy, improves accessibility for assistive devices, and enables effortless visual theming across desktop, tablet, and smartphone viewports.

Module IV

Stylesheets for High Level Visual Designs

In classical web design, rendering smooth color transitions required exporting wide bitmap PNG or JPEG strips in graphics editors and tiling them across backgrounds. CSS3 eliminated those external bitmap downloads by treating gradients as dynamically synthesized <image> data types rendered natively inside background-image or background declarations. Algorithmic gradients trigger zero extra HTTP network requests, scale crisply across ultra-high-DPI smartphone and 4K monitors without pixelation, and adapt instantly via stylesheet edits.

Module V

Modern HTML5/CSS3, Static Website Design and Web Tools

Early web interfaces depended heavily on third-party JavaScript libraries just to toggle FAQ accordions or open popup dialog boxes. Modern HTML5 extends native browser markup so accessible interactive widgets operate cleanly out of the box with built-in keyboard navigation and screen-reader announcements: Delivering a single 2400-pixel desktop hero photograph to a 360-pixel mobile smartphone wastes massive cellular bandwidth and slows initial paint speed. HTML5 solves multi-device media optimization through two complementary mechanisms:

Core Curriculum & Key Topics

  • HTML5 Foundations, Document Structure, DOCTYPE, and Character Encoding
  • 1 Web Design Foundations and Client-Server Architecture
  • 2 Evolution from SGML and HTML 4.01 to the HTML5 Standard
  • 3 The Role and Syntax of <!DOCTYPE html>
  • 4 Root Document Anatomy and Character Encoding (<meta charset="UTF-8">)
  • 1 Anatomy of an HTML5 Element and Attributes
  • 2 Container Tags vs. Empty (Void) Tags
  • 3 Semantic Headings, Paragraphs, Line Breaks, and Whitespace Collapsing

Learning Outcomes

  • Demonstrate authoritative comprehension of the foundational concepts, architectures, and principles of web designing using html.
  • Apply algorithmic, programming, or analytical techniques to design and evaluate practical computing solutions.
  • Analyze system trade-offs, security considerations, and industry standards relevant to modern software and IT environments.
  • Implement, test, and document structured technical workflows aligned with professional computing practices.
  • Achieve exam-ready mastery of University of Kerala FYUGP BCA question patterns across short concepts, technical comparisons, and comprehensive essays.

University of Kerala Examination Scheme for Web Designing Using HTML

The evaluation framework for Web Designing Using HTML (UK1DSCCAP105) under University of Kerala FYUGP regulations combines Continuous Internal Evaluation (30 Marks) with the university End-Semester Examination (70 Marks) for a total of 100 Marks (2.5 Hours duration):

Part A: Conceptual Questions

10 Questions × 3 Marks (Maximum ceiling 24 Marks). Short definitional and conceptual questions covering all 5 syllabus modules.

Part B: Analytical Problems

8 Questions × 6 Marks (Maximum ceiling 36 Marks). Paragraph questions, comparative evaluations, and analytical problems.

Part C: Comprehensive Essays

2 Questions × 10 Marks (Answer any 1 for 10 Marks). Long-form essay or comprehensive numerical workout problem.

Exam Preparation Strategy:

To score top marks in the University of Kerala UK1DSCCAP105 (Web Designing Using HTML) examination: 1. Write Clean, Traceable Code Snippets: Always include well-indented syntax examples with sample input and expected output for programming questions. 2. Explain Logic & Control Flow Step-by-Step: Before writing full programs, briefly outline the algorithm, key functions, or class hierarchy so examiners can award full step marks. 3. Highlight Edge Cases & Syntax Rules: Mention common runtime pitfalls, data type constraints, or security/validation practices where relevant. 4. Manage Time Across Sections: For the 2.5-hour 70-mark external paper, allocate 25 minutes to Part A definitions, 50 minutes to Part B short programs and comparisons, and 75 minutes to Part C full code-backed essays.

Exam Preparation & Study Guides — Web Designing Using HTML

What is Web Design Architecture and HTML5 Lifecycle and why is it important in Web Designing Using HTML?

HTML5 defines document structure and semantic hierarchy over HTTP/HTTPS, separating meaning from presentation.

What is the key distinction in Absolute vs. Relative & <base>?

Absolute URLs target external domains; document-relative paths (

What is Generic Containers (<div>, <span>) and Legacy Frames and why is it important in Web Designing Using HTML?

Generic hooks style non-semantic layout wrappers, superseding obsolete HTML4 framesets.

What is Box Model, Borders, and Backgrounds and why is it important in Web Designing Using HTML?

Every rendered HTML node forms four concentric rectangular zones framed and textured through box, border, and background properties.

What is 1. Information Architecture & Sitemap and why is it important in Web Designing Using HTML?

Define audience goals and shallow three-click navigation (e.g.,

What is the official course code and credit structure for Web Designing Using HTML at University of Kerala?

Web Designing Using HTML carries the official course code UK1DSCCAP105 under the University of Kerala FYUGP BCA framework. It is awarded 4 credits (60 Hours (4 Hrs/Week)), evaluated through 30 marks Continuous Internal Evaluation (CIE) and 70 marks End-Semester Examination (ESE).

Where can students download free PDF notes for Web Designing Using HTML?

Students can read all 5 module notes online and download verified chapter-wise PDFs, combined exam notes, and quick revision sheets for Web Designing Using HTML (UK1DSCCAP105) directly from DegreeLive (degreelive.in) with zero paywalls or sign-ups.

Academic Standards

Course outlines and study notes follow official University of Kerala curricula. Curated by Anoop (Thiruvananthapuram).

For feedback or corrections, contact [email protected].

Related Study Resources & Student Support

Related Semester 1 Subjects

Browse study notes for other courses in BCA Sem 1:

Degree Scholarships

Financial Aid & Grants 2026-27

Check eligibility criteria and deadlines for Kerala government and merit scholarships (e-Grantz 3.0, KSHEC, DCE).

Explore All Scholarships

Request Notes

Can't find what you're looking for? Let us know which subject notes you need.

Submit Request