{"id":3726,"date":"2026-11-02T09:26:57","date_gmt":"2026-11-02T06:26:57","guid":{"rendered":"https:\/\/niteducation.com\/resources\/?p=3726"},"modified":"2026-11-02T09:26:59","modified_gmt":"2026-11-02T06:26:59","slug":"how-to-build-your-first-web-app","status":"publish","type":"post","link":"https:\/\/niteducation.com\/resources\/how-to-build-your-first-web-app\/","title":{"rendered":"How to Build Your First Web App Step by Step | Beginner Guide"},"content":{"rendered":"\n<article aria-labelledby=\"nit-article-title\" class=\"nit-article nit-article--pathway-guide nit-article--software\" itemscope=\"\" itemtype=\"https:\/\/schema.org\/Article\">\n<meta content=\"2026-11-01\" itemprop=\"datePublished\"\/>\n<meta content=\"2026-11-01\" itemprop=\"dateModified\"\/>\n<meta content=\"en-KE\" itemprop=\"inLanguage\"\/>\n<meta content=\"Newton Institute of Technology Editorial Team\" itemprop=\"author\"\/>\n<div aria-labelledby=\"nit-article-title\" class=\"nit-pg-hero\">\n<div>\n<p class=\"nit-pg-kicker\">Web Development Guide <span>First App<\/span><\/p>\n<p class=\"nit-hero__title\" id=\"nit-article-title\" itemprop=\"headline\">How to Build Your First<br\/>Web Application Step by Step<\/p>\n<p class=\"nit-pg-hero__line\">Plan <i>\u00b7<\/i> Build <i>\u00b7<\/i> Test <i>\u00b7<\/i> Publish<\/p>\n<p class=\"nit-pg-hero__summary\" itemprop=\"description\">Start with an empty folder and finish with a working Student Assignment Tracker you can store, test, debug and publish using HTML, CSS and JavaScript.<\/p>\n<div class=\"nit-pg-hero__actions\">\n<a class=\"nit-pg-button nit-pg-button--gold\" href=\"#build\">Start the build<\/a>\n<a class=\"nit-pg-button nit-pg-button--outline\" href=\"#deploy\">Publish the app<\/a>\n<\/div>\n<\/div>\n<div aria-label=\"First web application build route\" class=\"nit-pg-hero__art\">\n<p>The build route<\/p>\n<div aria-hidden=\"true\" class=\"nit-pg-signpost\">\n<span class=\"nit-pg-signpost__top\">Plan<\/span>\n<span class=\"nit-pg-signpost__centre\">APP<\/span>\n<span class=\"nit-pg-signpost__bottom\">Live<\/span>\n<\/div>\n<strong>Build it. Test it. Publish it.<\/strong>\n<\/div>\n<div aria-label=\"Article summary\" class=\"nit-pg-hero__meta\">\n<p><span>Focus<\/span>First web application<\/p>\n<p><span>Project<\/span>Assignment tracker<\/p>\n<p><span>Core stack<\/span>HTML \u00b7 CSS \u00b7 JavaScript<\/p>\n<p><span>Updated<\/span>1 November 2026<\/p>\n<\/div>\n<\/div>\n<div class=\"nit-article__body\">\n<section aria-labelledby=\"quick-answer-title\" class=\"nit-quick-answer\" id=\"quick-answer\">\n<div class=\"nit-quick-answer__head\">\n<span aria-hidden=\"true\" class=\"nit-quick-answer__mark\">\u2713<\/span>\n<div>\n<p class=\"nit-quick-answer__label\">Quick answer<\/p>\n<p class=\"nit-quick-answer__kicker\" id=\"quick-answer-title\">How do you build your first web application?<\/p>\n<\/div>\n<\/div>\n<div class=\"nit-quick-answer__body\">\n<p class=\"nit-quick-answer__text\"><strong>Choose one small problem, define what Version 1 must do, then build one complete workflow before adding complexity.<\/strong> For this guide, you will create a Student Assignment Tracker with HTML, CSS and JavaScript, save its state in the browser, test valid and invalid actions, debug failures, check mobile and keyboard use, then publish and re-test the live version.<\/p>\n<ul class=\"nit-quick-answer__signals\">\n<li>Plan<\/li><li>Build<\/li><li>Store<\/li><li>Test<\/li><li>Publish<\/li>\n<\/ul>\n<\/div>\n<\/section><div aria-label=\"First web application fundamentals at a glance\" class=\"nit-facts-grid nit-software-facts\">\n<div class=\"nit-fact-card\"><span>Problem<\/span><strong>One useful workflow<\/strong><\/div>\n<div class=\"nit-fact-card\"><span>Files<\/span><strong>HTML \u00b7 CSS \u00b7 JS<\/strong><\/div>\n<div class=\"nit-fact-card\"><span>State<\/span><strong>Assignments array<\/strong><\/div>\n<div class=\"nit-fact-card\"><span>Storage<\/span><strong>localStorage<\/strong><\/div>\n<div class=\"nit-fact-card\"><span>Testing<\/span><strong>Happy + failure paths<\/strong><\/div>\n<div class=\"nit-fact-card\"><span>Deployment<\/span><strong>GitHub Pages<\/strong><\/div>\n<\/div>\n<nav aria-labelledby=\"toc-title\" class=\"nit-toc\"><h2 id=\"toc-title\">On this page<\/h2><ol><li><a href=\"#plan\">Plan Version 1<\/a><\/li><li><a href=\"#build\">Build the app<\/a><\/li><li><a href=\"#storage\">Save data<\/a><\/li><li><a href=\"#final-code\">Final JavaScript<\/a><\/li><li><a href=\"#testing\">Test &amp; debug<\/a><\/li><li><a href=\"#deploy\">Publish<\/a><\/li><li><a href=\"#examples\">Real-life examples<\/a><\/li><li><a href=\"#faq\">FAQs<\/a><\/li><\/ol><\/nav>\n<section class=\"nit-section-panel\" id=\"plan\">\n<h2>Build one small application from beginning to end<\/h2>\n<p>You do not need React, a backend server or a database for this first project. You will build a <strong>Student Assignment Tracker<\/strong> in the browser using HTML, CSS and JavaScript. The first version will <strong>Add \u2192 View \u2192 Complete \u2192 Delete \u2192 Remember<\/strong> assignments.<\/p>\n<div class=\"nit-concept-grid\">\n<article class=\"nit-concept-card\"><h3>Problem<\/h3><p>A student needs one place to record assignments and due dates.<\/p><\/article>\n<article class=\"nit-concept-card\"><h3>Version 1<\/h3><p>Add records, display them, change completion status, delete them and keep them after refresh.<\/p><\/article>\n<article class=\"nit-concept-card\"><h3>Later<\/h3><p>Only add servers, accounts and databases when several users or shared data make them necessary.<\/p><\/article>\n<\/div>\n<div class=\"nit-callout nit-callout--success\"><p class=\"nit-callout__title\">Scope rule<\/p><p>A first application succeeds when one useful workflow works reliably and you can explain it. More technologies do not automatically make the project better.<\/p><\/div>\n<\/section>\n<section class=\"nit-section-panel\" id=\"requirements\">\n<h2>Step 1 \u00b7 Requirements: Write the pass conditions before you write code<\/h2>\n<p><strong>User story:<\/strong> \u201cAs a student, I want to record my assignments so that I can see what work is still pending.\u201d Turn that into acceptance criteria you can test.<\/p>\n<div aria-label=\"Student Assignment Tracker acceptance criteria\" class=\"nit-table-wrap\" role=\"region\" tabindex=\"0\"><table class=\"nit-table\"><thead><tr><th scope=\"col\">Requirement<\/th><th scope=\"col\">Pass condition<\/th><\/tr><\/thead><tbody>\n<tr><th scope=\"row\">Add<\/th><td>A complete form creates one visible assignment.<\/td><\/tr><tr><th scope=\"row\">Validate<\/th><td>Missing or whitespace-only text is rejected.<\/td><\/tr><tr><th scope=\"row\">Complete<\/th><td>One record can move between Pending and Completed.<\/td><\/tr><tr><th scope=\"row\">Delete<\/th><td>Only the selected record disappears.<\/td><\/tr><tr><th scope=\"row\">Remember<\/th><td>Valid records return after a normal page refresh.<\/td><\/tr><tr><th scope=\"row\">Responsive<\/th><td>The layout stays usable at 430, 390 and 360 px.<\/td><\/tr><tr><th scope=\"row\">Keyboard<\/th><td>Fields and buttons remain reachable and operable without a mouse.<\/td><\/tr><tr><th scope=\"row\">Deployment<\/th><td>The published URL loads and the complete workflow still works.<\/td><\/tr>\n<\/tbody><\/table><\/div><p class=\"nit-table-note\">On a phone, swipe horizontally to view the complete requirement and pass-condition columns.<\/p>\n<\/section>\n<section class=\"nit-section-panel\" id=\"data-model\"><h2>Step 2 \u00b7 Data: Decide what one assignment contains<\/h2>\n<div class=\"nit-tech-board\"><article class=\"nit-tech-card\"><h3>Subject<\/h3><p>Example: Mathematics.<\/p><\/article><article class=\"nit-tech-card\"><h3>Assignment<\/h3><p>Example: Complete Exercise 5.<\/p><\/article><article class=\"nit-tech-card\"><h3>Due date<\/h3><p>Example: 6 November 2026.<\/p><\/article><article class=\"nit-tech-card\"><h3>Status<\/h3><p>Pending or completed.<\/p><\/article><\/div>\n<div aria-label=\"Example assignment object\" class=\"nit-code-window\">\n<div class=\"nit-code-window__bar\"><span class=\"nit-code-window__dot\"><\/span><span class=\"nit-code-window__dot\"><\/span><span class=\"nit-code-window__dot\"><\/span><span class=\"nit-code-window__file\">assignment-object.js<\/span><\/div>\n<div class=\"nit-code-window__body\"><span class=\"nit-code-line\">{<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0id: &#8220;&#8230;&#8221;,<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0subject: &#8220;Mathematics&#8221;,<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0title: &#8220;Complete Exercise 5&#8221;,<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0dueDate: &#8220;2026-11-06&#8221;,<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0completed: false<\/span><span class=\"nit-code-line\">}<\/span><\/div><\/div>\n<\/section>\n<section class=\"nit-section-panel\" id=\"build\"><h2>Steps 3\u20137 \u00b7 Build the interface: Create the project, run localhost, then build HTML and CSS<\/h2>\n<div class=\"nit-project-grid\"><article class=\"nit-project-card\" data-project=\"3\"><h3>Create the folder<\/h3><p>Make <code>assignment-tracker<\/code> with <code>index.html<\/code>, <code>styles.css<\/code> and <code>script.js<\/code>.<\/p><\/article><article class=\"nit-project-card\" data-project=\"4\"><h3>Run localhost<\/h3><p>Use your editor&#8217;s local server, or run <code>py -m http.server 8000<\/code> on Windows \/ <code>python3 -m http.server 8000<\/code> elsewhere, then open <code>http:\/\/localhost:8000<\/code>.<\/p><\/article><article class=\"nit-project-card\" data-project=\"5\u20137\"><h3>Build the interface<\/h3><p>HTML defines the form and list; CSS gives spacing, focus states and a responsive layout; JavaScript will supply the behaviour.<\/p><\/article><\/div>\n<div class=\"nit-callout nit-callout--info\"><p class=\"nit-callout__title\">Why localhost?<\/p><p>MDN notes that <code>localStorage<\/code> behaviour for <code>file:<\/code> URLs is not formally guaranteed. A normal local origin gives more consistent development behaviour. <a href=\"#ref-2\">[2]<\/a> <a href=\"#ref-3\">[3]<\/a> Localhost is also treated as a potentially trustworthy local development context. <a href=\"#ref-5\">[5]<\/a><\/p><\/div>\n<h3>HTML<\/h3><div aria-label=\"HTML for the Student Assignment Tracker\" class=\"nit-code-window\">\n<div class=\"nit-code-window__bar\"><span class=\"nit-code-window__dot\"><\/span><span class=\"nit-code-window__dot\"><\/span><span class=\"nit-code-window__dot\"><\/span><span class=\"nit-code-window__file\">index.html<\/span><\/div>\n<div class=\"nit-code-window__body\"><span class=\"nit-code-line\">&lt;!DOCTYPE html&gt;<\/span><span class=\"nit-code-line\">&lt;html lang=&#8221;en&#8221;&gt;<\/span><span class=\"nit-code-line\">&lt;head&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0&lt;meta charset=&#8221;UTF-8&#8243;&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0&lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1.0&#8243;&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0&lt;title&gt;Student Assignment Tracker&lt;\/title&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;styles.css&#8221;&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0&lt;script src=&#8221;script.js&#8221; defer&gt;&lt;\/script&gt;<\/span><span class=\"nit-code-line\">&lt;\/head&gt;<\/span><span class=\"nit-code-line\">&lt;body&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0&lt;main class=&#8221;app&#8221;&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;header class=&#8221;app-header&#8221;&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0  &lt;p class=&#8221;eyebrow&#8221;&gt;My first web application&lt;\/p&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0  &lt;h1&gt;Student Assignment Tracker&lt;\/h1&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0  &lt;p&gt;Record assignments, due dates and completed work.&lt;\/p&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;\/header&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;section class=&#8221;panel&#8221; aria-labelledby=&#8221;add-title&#8221;&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0  &lt;h2 id=&#8221;add-title&#8221;&gt;Add an assignment&lt;\/h2&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0  &lt;form id=&#8221;assignment-form&#8221;&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0    &lt;div class=&#8221;form-group&#8221;&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0      &lt;label for=&#8221;subject&#8221;&gt;Subject (required)&lt;\/label&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0      &lt;input id=&#8221;subject&#8221; name=&#8221;subject&#8221; maxlength=&#8221;50&#8243; required&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0    &lt;\/div&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0    &lt;div class=&#8221;form-group&#8221;&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0      &lt;label for=&#8221;assignment&#8221;&gt;Assignment (required)&lt;\/label&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0      &lt;input id=&#8221;assignment&#8221; name=&#8221;assignment&#8221; maxlength=&#8221;100&#8243; required&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0    &lt;\/div&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0    &lt;div class=&#8221;form-group&#8221;&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0      &lt;label for=&#8221;due-date&#8221;&gt;Due date (required)&lt;\/label&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0      &lt;input type=&#8221;date&#8221; id=&#8221;due-date&#8221; name=&#8221;dueDate&#8221; required&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0    &lt;\/div&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0    &lt;button type=&#8221;submit&#8221;&gt;Add assignment&lt;\/button&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0  &lt;\/form&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0  &lt;p id=&#8221;form-message&#8221; class=&#8221;form-message&#8221; role=&#8221;status&#8221; aria-live=&#8221;polite&#8221;&gt;&lt;\/p&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;\/section&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;section class=&#8221;panel&#8221; aria-labelledby=&#8221;list-title&#8221;&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0  &lt;div class=&#8221;section-heading&#8221;&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0    &lt;h2 id=&#8221;list-title&#8221;&gt;Your assignments&lt;\/h2&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0    &lt;span id=&#8221;assignment-count&#8221; aria-live=&#8221;polite&#8221;&gt;0 assignments&lt;\/span&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0  &lt;\/div&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0  &lt;p id=&#8221;empty-state&#8221;&gt;No assignments yet. Add your first one above.&lt;\/p&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0  &lt;ul id=&#8221;assignment-list&#8221; class=&#8221;assignment-list&#8221;&gt;&lt;\/ul&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;\/section&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0&lt;\/main&gt;<\/span><span class=\"nit-code-line\">&lt;\/body&gt;<\/span><span class=\"nit-code-line\">&lt;\/html&gt;<\/span><\/div><\/div>\n<p>Each visible label is associated with its input through matching <code>for<\/code> and <code>id<\/code> values. W3C recommends proper labels so users and assistive technologies can identify form controls. <a href=\"#ref-7\">[7]<\/a> Required inputs and understandable validation feedback are also part of accessible form design. <a href=\"#ref-8\">[8]<\/a><\/p>\n<div class=\"nit-callout nit-callout--success\"><p class=\"nit-callout__title\">Checkpoint 1<\/p><p>Before styling, confirm the title, three labelled fields, Add assignment button and empty-state message all appear. Fix structure now rather than carrying a broken layer forward.<\/p><\/div>\n<h3>CSS<\/h3><div aria-label=\"CSS for the Student Assignment Tracker\" class=\"nit-code-window\">\n<div class=\"nit-code-window__bar\"><span class=\"nit-code-window__dot\"><\/span><span class=\"nit-code-window__dot\"><\/span><span class=\"nit-code-window__dot\"><\/span><span class=\"nit-code-window__file\">styles.css<\/span><\/div>\n<div class=\"nit-code-window__body\"><span class=\"nit-code-line\">* { box-sizing: border-box; }<\/span><span class=\"nit-code-line\">body { margin: 0; min-height: 100vh; font-family: Arial, sans-serif;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0line-height: 1.6; background: #f4f6f8; color: #1f2937; }<\/span><span class=\"nit-code-line\">button, input { font: inherit; }<\/span><span class=\"nit-code-line\">.app { width: min(900px, 92%); margin: 0 auto; padding: 48px 0; }<\/span><span class=\"nit-code-line\">.app-header { margin-bottom: 32px; }<\/span><span class=\"nit-code-line\">.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }<\/span><span class=\"nit-code-line\">.panel { background: #fff; border-radius: 16px; padding: 24px;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0margin-bottom: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.06); }<\/span><span class=\"nit-code-line\">#assignment-form, .form-group { display: grid; gap: 18px; }<\/span><span class=\"nit-code-line\">.form-group { gap: 6px; }<\/span><span class=\"nit-code-line\">label { font-weight: 700; }<\/span><span class=\"nit-code-line\">input { width: 100%; padding: 12px; border: 1px solid #cbd5e1;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0border-radius: 8px; }<\/span><span class=\"nit-code-line\">input:focus-visible, button:focus-visible { outline: 3px solid rgba(37,99,235,.35);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0outline-offset: 2px; }<\/span><span class=\"nit-code-line\">button { border: 0; border-radius: 8px; padding: 11px 16px; cursor: pointer; }<\/span><span class=\"nit-code-line\">#assignment-form &gt; button { background: #1f2937; color: #fff; font-weight: 700; }<\/span><span class=\"nit-code-line\">.section-heading { display: flex; justify-content: space-between;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0align-items: center; gap: 16px; }<\/span><span class=\"nit-code-line\">.assignment-list { list-style: none; padding: 0; margin: 20px 0 0;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0display: grid; gap: 12px; }<\/span><span class=\"nit-code-line\">.assignment-item { border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }<\/span><span class=\"nit-code-line\">.assignment-item.completed { opacity: .72; }<\/span><span class=\"nit-code-line\">.assignment-item.completed h3 { text-decoration: line-through; }<\/span><span class=\"nit-code-line\">.assignment-details h3, .assignment-details p { overflow-wrap: anywhere; }<\/span><span class=\"nit-code-line\">.assignment-actions { display: flex; flex-wrap: wrap; gap: 10px; }<\/span><span class=\"nit-code-line\">.complete-button { background: #e2e8f0; }<\/span><span class=\"nit-code-line\">.delete-button { background: #fee2e2; }<\/span><span class=\"nit-code-line\">.form-message { min-height: 24px; margin-top: 12px; font-weight: 600; }<\/span><span class=\"nit-code-line\">@media (max-width: 600px) {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0.app { width: min(94%, 900px); padding: 24px 0; }<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0.panel { padding: 18px; }<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0.section-heading { align-items: flex-start; flex-direction: column; }<\/span><span class=\"nit-code-line\">}<\/span><\/div><\/div>\n<div class=\"nit-callout nit-callout--success\"><p class=\"nit-callout__title\">Checkpoint 2<\/p><p>Refresh. The interface should have white panels, visible spacing, keyboard focus, readable buttons and a layout that contracts cleanly on small screens. If the styling disappears, verify the exact <code>styles.css<\/code> filename and path.<\/p><\/div>\n<\/section>\n<section class=\"nit-section-panel\" id=\"storage\"><h2>Steps 8\u201316 \u00b7 Add behaviour, state and persistence: Connect JavaScript, validate saved data and render application state<\/h2>\n<p>JavaScript interacts with the page through the Document Object Model (DOM), the browser representation that scripts can inspect and change. <a href=\"#ref-1\">[1]<\/a><\/p>\n<div class=\"nit-project-grid\">\n<article class=\"nit-project-card\" data-project=\"08\"><h3>Connect the DOM<\/h3><p>Get the form, fields, list, count, empty state and status-message elements by ID.<\/p><\/article>\n<article class=\"nit-project-card\" data-project=\"09\"><h3>Load defensively<\/h3><p>Read saved JSON inside <code>try\/catch<\/code> and keep only records with the expected field types.<\/p><\/article>\n<article class=\"nit-project-card\" data-project=\"10\"><h3>Save state<\/h3><p>Convert the assignments array to JSON and save it under one storage key. If saving fails, tell the user.<\/p><\/article>\n<article class=\"nit-project-card\" data-project=\"11\"><h3>Render<\/h3><p>Build visible DOM elements from the current assignments array instead of treating the screen as the source of truth.<\/p><\/article>\n<\/div>\n<h3>What localStorage does\u2014and does not do<\/h3>\n<div aria-label=\"localStorage capabilities\" class=\"nit-table-wrap\" role=\"region\" tabindex=\"0\"><table class=\"nit-table\"><thead><tr><th scope=\"col\">Question<\/th><th scope=\"col\">Answer<\/th><\/tr><\/thead><tbody>\n<tr><th scope=\"row\">Survive a normal refresh?<\/th><td>Normally yes.<\/td><\/tr><tr><th scope=\"row\">Follow the user to another device?<\/th><td>No.<\/td><\/tr><tr><th scope=\"row\">A cloud database?<\/th><td>No.<\/td><\/tr><tr><th scope=\"row\">Can clearing site data remove it?<\/th><td>Yes.<\/td><\/tr><tr><th scope=\"row\">Ideal for large datasets?<\/th><td>No. Web Storage is synchronous; larger browser data may be better handled by alternatives such as IndexedDB.<\/td><\/tr><tr><th scope=\"row\">Appropriate for passwords or secrets?<\/th><td>No.<\/td><\/tr>\n<\/tbody><\/table><\/div><p class=\"nit-table-note\">On a phone, swipe horizontally to compare each localStorage question and answer.<\/p>\n<p>MDN documents <code>localStorage<\/code> as origin-based browser storage and notes that Web Storage operations are synchronous. <a href=\"#ref-2\">[2]<\/a> Structured arrays and objects can be stored by serialising them to JSON and parsing them when read. <a href=\"#ref-3\">[3]<\/a><\/p>\n<div class=\"nit-callout nit-callout--success\"><p class=\"nit-callout__title\">State mental model<\/p><p><strong>Data changes \u2192 save state \u2192 render state.<\/strong> The list on screen is an output of the <code>assignments<\/code> array, not the other way around.<\/p><\/div>\n<\/section>\n<section class=\"nit-section-panel\" id=\"final-code\"><h2>Assemble the final JavaScript in one file<\/h2>\n<p>The incremental steps are useful for learning, but beginners also need one place to confirm that braces, functions and event listeners are in the correct order. The script below is the consolidated version.<\/p>\n<div aria-label=\"Complete JavaScript for the Student Assignment Tracker\" class=\"nit-code-window\">\n<div class=\"nit-code-window__bar\"><span class=\"nit-code-window__dot\"><\/span><span class=\"nit-code-window__dot\"><\/span><span class=\"nit-code-window__dot\"><\/span><span class=\"nit-code-window__file\">script.js<\/span><\/div>\n<div class=\"nit-code-window__body\"><span class=\"nit-code-line\">const STORAGE_KEY = &#8220;studentAssignmentTracker.assignments.v1&#8221;;<\/span><span class=\"nit-code-line\">const form = document.getElementById(&#8220;assignment-form&#8221;);<\/span><span class=\"nit-code-line\">const subjectInput = document.getElementById(&#8220;subject&#8221;);<\/span><span class=\"nit-code-line\">const assignmentInput = document.getElementById(&#8220;assignment&#8221;);<\/span><span class=\"nit-code-line\">const dueDateInput = document.getElementById(&#8220;due-date&#8221;);<\/span><span class=\"nit-code-line\">const assignmentList = document.getElementById(&#8220;assignment-list&#8221;);<\/span><span class=\"nit-code-line\">const assignmentCount = document.getElementById(&#8220;assignment-count&#8221;);<\/span><span class=\"nit-code-line\">const emptyState = document.getElementById(&#8220;empty-state&#8221;);<\/span><span class=\"nit-code-line\">const formMessage = document.getElementById(&#8220;form-message&#8221;);<\/span><span class=\"nit-code-line\"><\/span><span class=\"nit-code-line\">function isValidAssignment(item) {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0return item &amp;&amp;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0typeof item.id === &#8220;string&#8221; &amp;&amp;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0typeof item.subject === &#8220;string&#8221; &amp;&amp;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0typeof item.title === &#8220;string&#8221; &amp;&amp;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0typeof item.dueDate === &#8220;string&#8221; &amp;&amp;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0typeof item.completed === &#8220;boolean&#8221;;<\/span><span class=\"nit-code-line\">}<\/span><span class=\"nit-code-line\"><\/span><span class=\"nit-code-line\">function loadAssignments() {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0try {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const saved = localStorage.getItem(STORAGE_KEY);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (!saved) return [];<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const parsed = JSON.parse(saved);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return Array.isArray(parsed) ? parsed.filter(isValidAssignment) : [];<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0} catch (error) {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0console.error(&#8220;Could not load saved assignments:&#8221;, error);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return [];<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0}<\/span><span class=\"nit-code-line\">}<\/span><span class=\"nit-code-line\"><\/span><span class=\"nit-code-line\">let assignments = loadAssignments();<\/span><span class=\"nit-code-line\"><\/span><span class=\"nit-code-line\">function saveAssignments() {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0try {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0localStorage.setItem(STORAGE_KEY, JSON.stringify(assignments));<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return true;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0} catch (error) {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0console.error(&#8220;Could not save assignments:&#8221;, error);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0formMessage.textContent = &#8220;This browser could not save the list.&#8221;;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return false;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0}<\/span><span class=\"nit-code-line\">}<\/span><span class=\"nit-code-line\"><\/span><span class=\"nit-code-line\">function formatDate(dateString) {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0const [year, month, day] = dateString.split(&#8220;-&#8220;).map(Number);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0const date = new Date(year, month &#8211; 1, day);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0return date.toLocaleDateString(undefined, {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0year: &#8220;numeric&#8221;, month: &#8220;short&#8221;, day: &#8220;numeric&#8221;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0});<\/span><span class=\"nit-code-line\">}<\/span><span class=\"nit-code-line\"><\/span><span class=\"nit-code-line\">function renderAssignments() {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0assignmentList.replaceChildren();<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0emptyState.hidden = assignments.length &gt; 0;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0assignmentCount.textContent = `${assignments.length} ${<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0assignments.length === 1 ? &#8220;assignment&#8221; : &#8220;assignments&#8221;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0}`;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0assignments.forEach((assignment) =&gt; {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const listItem = document.createElement(&#8220;li&#8221;);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0listItem.className = &#8220;assignment-item&#8221;;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (assignment.completed) listItem.classList.add(&#8220;completed&#8221;);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const details = document.createElement(&#8220;div&#8221;);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0details.className = &#8220;assignment-details&#8221;;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const title = document.createElement(&#8220;h3&#8221;);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0title.textContent = assignment.title;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const information = document.createElement(&#8220;p&#8221;);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0information.textContent = `${assignment.subject} \u2022 Due ${formatDate(assignment.dueDate)} \u2022 ${assignment.completed ? &#8220;Completed&#8221; : &#8220;Pending&#8221;}`;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0details.append(title, information);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const actions = document.createElement(&#8220;div&#8221;);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0actions.className = &#8220;assignment-actions&#8221;;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const completeButton = document.createElement(&#8220;button&#8221;);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0completeButton.type = &#8220;button&#8221;;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0completeButton.className = &#8220;complete-button&#8221;;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0completeButton.textContent = assignment.completed ? &#8220;Mark incomplete&#8221; : &#8220;Mark complete&#8221;;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0completeButton.setAttribute(&#8220;aria-pressed&#8221;, String(assignment.completed));<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0completeButton.setAttribute(&#8220;aria-label&#8221;, `${completeButton.textContent}: ${assignment.title}`);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0completeButton.addEventListener(&#8220;click&#8221;, () =&gt; toggleAssignment(assignment.id));<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0const deleteButton = document.createElement(&#8220;button&#8221;);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0deleteButton.type = &#8220;button&#8221;;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0deleteButton.className = &#8220;delete-button&#8221;;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0deleteButton.textContent = &#8220;Delete&#8221;;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0deleteButton.setAttribute(&#8220;aria-label&#8221;, `Delete: ${assignment.title}`);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0deleteButton.addEventListener(&#8220;click&#8221;, () =&gt; deleteAssignment(assignment.id));<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0actions.append(completeButton, deleteButton);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0listItem.append(details, actions);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0assignmentList.append(listItem);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0});<\/span><span class=\"nit-code-line\">}<\/span><span class=\"nit-code-line\"><\/span><span class=\"nit-code-line\">form.addEventListener(&#8220;submit&#8221;, (event) =&gt; {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0event.preventDefault();<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0const subject = subjectInput.value.trim();<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0const title = assignmentInput.value.trim();<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0const dueDate = dueDateInput.value;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0if (!subject || !title || !dueDate) {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0formMessage.textContent = &#8220;Please complete all fields.&#8221;;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0}<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0assignments.push({<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0id: crypto.randomUUID(), subject, title, dueDate, completed: false<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0});<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0const saved = saveAssignments();<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0renderAssignments();<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0form.reset();<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0subjectInput.focus();<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0if (saved) formMessage.textContent = &#8220;Assignment added successfully.&#8221;;<\/span><span class=\"nit-code-line\">});<\/span><span class=\"nit-code-line\"><\/span><span class=\"nit-code-line\">function toggleAssignment(id) {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0assignments = assignments.map((assignment) =&gt;<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0assignment.id === id<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0? { &#8230;assignment, completed: !assignment.completed }<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0: assignment<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0const saved = saveAssignments();<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0renderAssignments();<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0if (saved) formMessage.textContent = &#8220;Assignment status updated.&#8221;;<\/span><span class=\"nit-code-line\">}<\/span><span class=\"nit-code-line\"><\/span><span class=\"nit-code-line\">function deleteAssignment(id) {<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0assignments = assignments.filter((assignment) =&gt; assignment.id !== id);<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0const saved = saveAssignments();<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0renderAssignments();<\/span><span class=\"nit-code-line\">\u00a0\u00a0\u00a0\u00a0if (saved) formMessage.textContent = &#8220;Assignment deleted.&#8221;;<\/span><span class=\"nit-code-line\">}<\/span><span class=\"nit-code-line\"><\/span><span class=\"nit-code-line\">renderAssignments();<\/span><\/div><\/div>\n<p><code>crypto.randomUUID()<\/code> creates a version 4 UUID in secure contexts; MDN documents this API and its secure-context requirement. <a href=\"#ref-4\">[4]<\/a> The form handler uses <code>preventDefault()<\/code> so JavaScript can process the submission in the current page.<\/p>\n<div class=\"nit-callout nit-callout--success\"><p class=\"nit-callout__title\">Checkpoint 3<\/p><p>Add Biology \/ Plant Cell Diagram \/ a future due date. Add a second assignment, mark one complete, delete the other, then refresh. The remaining record should still be present.<\/p><\/div>\n<\/section>\n<section class=\"nit-section-panel\" id=\"trace\"><h2>Follow one assignment through the application<\/h2>\n<ol class=\"nit-checklist\"><li><strong>HTML shows the form.<\/strong> Amina enters Biology, Plant Cell Diagram and a date.<\/li><li><strong>The submit event fires.<\/strong> JavaScript reads and trims the fields.<\/li><li><strong>Validation runs.<\/strong> Empty or whitespace-only text is rejected.<\/li><li><strong>An object is created.<\/strong> It receives a unique ID and <code>completed: false<\/code>.<\/li><li><strong>State changes.<\/strong> The object enters the <code>assignments<\/code> array.<\/li><li><strong>State is saved.<\/strong> The array is serialised into <code>localStorage<\/code>.<\/li><li><strong>The interface renders.<\/strong> Safe text nodes display the subject, title, date and Pending status.<\/li><li><strong>After refresh.<\/strong> Stored JSON is parsed, validated and rendered again.<\/li><\/ol>\n<div class=\"nit-tech-board\"><article class=\"nit-tech-card\"><h3>Create<\/h3><p>Add an assignment.<\/p><\/article><article class=\"nit-tech-card\"><h3>Read<\/h3><p>Display saved assignments.<\/p><\/article><article class=\"nit-tech-card\"><h3>Update<\/h3><p>Toggle completion status.<\/p><\/article><article class=\"nit-tech-card\"><h3>Delete<\/h3><p>Remove the selected assignment.<\/p><\/article><\/div>\n<p>Those four operation categories are often summarised as <strong>CRUD: Create, Read, Update, Delete<\/strong>. You will meet the same pattern later in database-driven applications.<\/p>\n<\/section>\n<section class=\"nit-section-panel\" id=\"testing\"><h2>Steps 17\u201320 \u00b7 Verify, break and fix: Test the application against its requirements<\/h2>\n<div aria-label=\"Assignment Tracker test cases\" class=\"nit-table-wrap\" role=\"region\" tabindex=\"0\"><table class=\"nit-table\"><thead><tr><th scope=\"col\">Test<\/th><th scope=\"col\">Action<\/th><th scope=\"col\">Expected result<\/th><\/tr><\/thead><tbody>\n<tr><th scope=\"row\">Valid add<\/th><td>Complete all fields<\/td><td>One assignment appears.<\/td><\/tr><tr><th scope=\"row\">Missing field<\/th><td>Leave a required field empty<\/td><td>Submission is blocked.<\/td><\/tr><tr><th scope=\"row\">Spaces only<\/th><td>Enter spaces in a text field<\/td><td>JavaScript rejects the value after <code>trim()<\/code>.<\/td><\/tr><tr><th scope=\"row\">HTML-like text<\/th><td>Enter <code>&lt;b&gt;Test&lt;\/b&gt;<\/code><\/td><td>It appears as text, not injected HTML.<\/td><\/tr><tr><th scope=\"row\">Toggle<\/th><td>Complete then undo one record<\/td><td>Status changes correctly both ways.<\/td><\/tr><tr><th scope=\"row\">Delete<\/th><td>Delete one of several records<\/td><td>Only the chosen record disappears.<\/td><\/tr><tr><th scope=\"row\">Refresh<\/th><td>Reload the page<\/td><td>Saved valid records return.<\/td><\/tr><tr><th scope=\"row\">Keyboard<\/th><td>Use Tab \/ Enter \/ Space<\/td><td>Controls remain reachable and usable.<\/td><\/tr><tr><th scope=\"row\">Mobile<\/th><td>Test 430 \/ 390 \/ 360 px<\/td><td>No unwanted horizontal page overflow.<\/td><\/tr><tr><th scope=\"row\">Console<\/th><td>Run normal workflow<\/td><td>No unexpected JavaScript errors.<\/td><\/tr>\n<\/tbody><\/table><\/div><p class=\"nit-table-note\">On a phone, swipe horizontally to view the complete test matrix.<\/p>\n<h3>Break it deliberately<\/h3>\n<div class=\"nit-project-grid\"><article class=\"nit-project-card\" data-project=\"1\"><h3>Break CSS<\/h3><p>Change <code>styles.css<\/code> to <code>style.css<\/code>. The page keeps its content but loses presentation. Restore the path.<\/p><\/article><article class=\"nit-project-card\" data-project=\"2\"><h3>Break JavaScript<\/h3><p>Change <code>script.js<\/code> to <code>scripts.js<\/code>. The interface appears but interactive behaviour stops. Inspect Console\/Network.<\/p><\/article><article class=\"nit-project-card\" data-project=\"3\"><h3>Break an ID<\/h3><p>Ask for <code>wrong-form<\/code> instead of <code>assignment-form<\/code>. Use the Console to trace the missing element, correct it and re-test.<\/p><\/article><\/div>\n<h3>Debug by symptom<\/h3><div aria-label=\"Debugging map\" class=\"nit-table-wrap\" role=\"region\" tabindex=\"0\"><table class=\"nit-table\"><thead><tr><th scope=\"col\">Symptom<\/th><th scope=\"col\">First place to investigate<\/th><\/tr><\/thead><tbody><tr><td>Entire page missing<\/td><td>HTML \/ local server<\/td><\/tr><tr><td>No styling<\/td><td>CSS path \/ filename<\/td><\/tr><tr><td>Button does nothing<\/td><td>JavaScript \/ Console<\/td><\/tr><tr><td>Wrong record changes<\/td><td>ID \/ state logic<\/td><\/tr><tr><td>Change vanishes after refresh<\/td><td>Storage \/ save logic<\/td><\/tr><tr><td>Only mobile breaks<\/td><td>Responsive CSS<\/td><\/tr><tr><td>Works locally, fails online<\/td><td>Published paths, filename case, deployment source<\/td><\/tr><\/tbody><\/table><\/div><p class=\"nit-table-note\">On a phone, swipe horizontally to view the debugging symptom map.<\/p>\n<\/section>\n<section class=\"nit-section-panel\" id=\"deploy\"><h2>Step 21 \u00b7 Deployment: Publish the finished browser app with GitHub Pages<\/h2>\n<p>Because this project is static HTML, CSS and JavaScript, GitHub Pages is one suitable publishing option. GitHub&#8217;s current documentation supports publishing from a selected branch\/folder. <a href=\"#ref-9\">[9]<\/a><\/p>\n<ol class=\"nit-checklist\"><li>Create a GitHub repository.<\/li><li>Add <code>index.html<\/code>, <code>styles.css<\/code> and <code>script.js<\/code>.<\/li><li>Commit the files.<\/li><li>Open repository <strong>Settings \u2192 Pages<\/strong>.<\/li><li>Choose <strong>Deploy from a branch<\/strong>.<\/li><li>Select the publishing branch and correct folder.<\/li><li>Open the generated Pages URL.<\/li><li>Repeat the add, toggle, refresh, delete and mobile tests on the live site.<\/li><\/ol>\n<h3>If the published site does not work<\/h3><div aria-label=\"GitHub Pages troubleshooting\" class=\"nit-table-wrap\" role=\"region\" tabindex=\"0\"><table class=\"nit-table\"><thead><tr><th scope=\"col\">Problem<\/th><th scope=\"col\">Check first<\/th><\/tr><\/thead><tbody><tr><th scope=\"row\">404<\/th><td>Publishing source, branch\/folder and whether <code>index.html<\/code> is in the expected location. GitHub identifies missing or incorrectly located entry files as a common Pages 404 cause. <a href=\"#ref-10\">[10]<\/a><\/td><\/tr><tr><th scope=\"row\">No CSS<\/th><td>Exact CSS path and filename case.<\/td><\/tr><tr><th scope=\"row\">Buttons fail<\/th><td>Console and <code>script.js<\/code> path.<\/td><\/tr><tr><th scope=\"row\">Old version appears<\/th><td>Latest commit\/deployment and browser cache.<\/td><\/tr><tr><th scope=\"row\">Saved data seems different<\/th><td>Remember that <code>localStorage<\/code> is tied to the site origin\/browser, not a shared account.<\/td><\/tr><\/tbody><\/table><\/div><p class=\"nit-table-note\">On a phone, swipe horizontally to view the full deployment troubleshooting table.<\/p>\n<\/section>\n<section class=\"nit-section-panel\" id=\"architecture\"><h2>Know when the project needs a backend and database<\/h2>\n<div class=\"nit-concept-grid\"><article class=\"nit-concept-card\"><h3>Browser-only<\/h3><p>User \u2192 HTML interface \u2192 JavaScript \u2192 browser storage. Good for a small personal learning project.<\/p><\/article><article class=\"nit-concept-card\"><h3>Full-stack<\/h3><p>Browser \u2192 frontend \u2192 API \u2192 backend \u2192 database. Useful when users, permissions and centrally managed records are required.<\/p><\/article><\/div>\n<p>A backend becomes justified when teachers and students need separate accounts, the same records must appear on several devices, or the organisation needs central control and backups. JavaScript&#8217;s Fetch API is commonly used by browser code to make HTTP requests and process responses. <a href=\"#ref-6\">[6]<\/a><\/p>\n<p>NIT&#8217;s current Full-Stack Software Development programme page lists 8 months of institutional training followed by a compulsory industrial attachment of 3 months, with current published tuition of KSh 90,000 and beginner entry that does not require previous coding experience. <a href=\"#ref-12\">[12]<\/a><\/p>\n<div class=\"nit-callout nit-callout--info\"><p class=\"nit-callout__title\">Keep the topic boundary clear<\/p><p>This article teaches the first complete build cycle. NIT&#8217;s dedicated API, database and full-stack guides cover those later layers in depth rather than duplicating them here.<\/p><\/div>\n<\/section>\n<section class=\"nit-section-panel\" id=\"examples\"><h2>Use the same thinking in three real-life applications<\/h2>\n<div class=\"nit-project-grid\"><article class=\"nit-project-card\" data-project=\"01\"><h3>Small shop stock tracker<\/h3><p><strong>Data:<\/strong> product, quantity, reorder level.<\/p><p><strong>Rule:<\/strong> if quantity is below reorder level, show LOW STOCK.<\/p><p><strong>Actions:<\/strong> add product, change quantity, remove product.<\/p><\/article><article class=\"nit-project-card\" data-project=\"02\"><h3>Appointment tracker<\/h3><p><strong>Data:<\/strong> customer, service, appointment time, status.<\/p><p><strong>Rule:<\/strong> clearly distinguish Waiting, Completed and Cancelled.<\/p><p><strong>Actions:<\/strong> add, complete or cancel.<\/p><\/article><article class=\"nit-project-card\" data-project=\"03\"><h3>Machine service tracker<\/h3><p><strong>Data:<\/strong> machine, service item, service interval, current reading.<\/p><p><strong>Rule:<\/strong> compare current reading with the next service interval.<\/p><p><strong>Output:<\/strong> show a maintenance warning when appropriate.<\/p><\/article><article class=\"nit-project-card\" data-project=\"04\"><h3>Rebuild without copying line by line<\/h3><p>Choose one example and define its requirement, data, actions, state, persistence and tests from a blank folder. That is the strongest proof that you understood the method.<\/p><\/article><\/div>\n<\/section>\n<section class=\"nit-section-panel\" id=\"security\"><h2>Do not put sensitive information in this learning project<\/h2>\n<p>Do not store passwords, payment information, secret API keys, identity documents, confidential student records or private customer information in this browser-storage demo. Production systems require deliberate server-side validation, authentication, authorisation, access control and secure credential handling.<\/p>\n<p>The OWASP Top 10:2025 highlights major web-application risks including broken access control, security misconfiguration, software supply-chain failures, cryptographic failures, injection and authentication failures. <a href=\"#ref-11\">[11]<\/a><\/p>\n<div class=\"nit-callout nit-callout--warning\"><p class=\"nit-callout__title\">Learning demo \u2260 production system<\/p><p>The purpose of this project is to learn application flow safely. Adding real confidential data does not make it more realistic; it makes the risk unnecessary.<\/p><\/div>\n<\/section>\n<section class=\"nit-section-panel\" id=\"progression\"><h2>Improve the app only after Version 1 works<\/h2>\n<div class=\"nit-project-grid\"><article class=\"nit-project-card\" data-project=\"V2\"><h3>Better browser experience<\/h3><p>Edit, search, subject filters, sort by due date and overdue indication.<\/p><\/article><article class=\"nit-project-card\" data-project=\"V3\"><h3>Shared data<\/h3><p>Add a backend, API and database when multiple devices\/users need the same records.<\/p><\/article><article class=\"nit-project-card\" data-project=\"V4\"><h3>Accounts and permissions<\/h3><p>Add registration, login, teacher\/student roles and authorised actions.<\/p><\/article><article class=\"nit-project-card\" data-project=\"V5\"><h3>School workflow<\/h3><p>Add classes, teacher-created work, submissions, notifications and reports.<\/p><\/article><\/div>\n<\/section>\n<section class=\"nit-section-panel\" id=\"competency\"><h2>Can you explain the application without the tutorial open?<\/h2>\n<p>Close the guide and explain: the user problem, why there are three files, how JavaScript reaches HTML through the DOM, what triggers submission code, where application state lives, why data survives refresh, why every assignment has an ID, why user text is inserted with <code>textContent<\/code>, where you would look when a button stops working, and why a multi-user version needs more than <code>localStorage<\/code>.<\/p>\n<div class=\"nit-callout nit-callout--success\"><p class=\"nit-callout__title\">The proof that you understood it<\/p><p>If you can rebuild one of the transfer examples and explain those answers in your own words, you are moving beyond tutorial imitation into application-development thinking.<\/p><\/div>\n<\/section>\n<section class=\"nit-section-panel\" id=\"faq\"><h2>First web application: frequently asked questions<\/h2>\n<div class=\"nit-faq\">\n<details class=\"nit-faq__item\"><summary>Can a complete beginner build a web application?<\/summary><div class=\"nit-faq__answer\"><p>Yes. Keep the first project small and use the browser fundamentals directly. A client-side app with HTML, CSS and JavaScript is a manageable starting point.<\/p><\/div><\/details>\n<details class=\"nit-faq__item\"><summary>Can HTML, CSS and JavaScript build a web application?<\/summary><div class=\"nit-faq__answer\"><p>Yes. HTML defines structure, CSS controls presentation and JavaScript supplies behaviour. Server-side technology becomes necessary when the requirements call for shared records, accounts or central business rules.<\/p><\/div><\/details>\n<details class=\"nit-faq__item\"><summary>Do I need React for my first web application?<\/summary><div class=\"nit-faq__answer\"><p>No. Understanding DOM events, state and browser behaviour first makes later framework learning easier.<\/p><\/div><\/details>\n<details class=\"nit-faq__item\"><summary>Do I need a database?<\/summary><div class=\"nit-faq__answer\"><p>Not for this personal learning app. Add a database when information must be centrally managed, shared or related across users and devices.<\/p><\/div><\/details>\n<details class=\"nit-faq__item\"><summary>Is localStorage permanent?<\/summary><div class=\"nit-faq__answer\"><p>Do not treat it as backup storage. Users can clear site data, browser settings can restrict storage, and private-browsing data may be removed when the private session ends. <a href=\"#ref-2\">[2]<\/a> <a href=\"#ref-3\">[3]<\/a><\/p><\/div><\/details>\n<details class=\"nit-faq__item\"><summary>Why use a local server?<\/summary><div class=\"nit-faq__answer\"><p>It gives the project a normal local web origin and avoids relying on browser-specific <code>file:<\/code> storage behaviour. <a href=\"#ref-3\">[3]<\/a><\/p><\/div><\/details>\n<details class=\"nit-faq__item\"><summary>What should I build next?<\/summary><div class=\"nit-faq__answer\"><p>Rebuild the same development cycle for a stock tracker, appointment tracker or service tracker, then move into APIs, backend development and databases.<\/p><\/div><\/details>\n<\/div>\n<\/section>\n<section aria-labelledby=\"register-heading\" class=\"nit-pg-enrol\" id=\"register\">\n<div class=\"nit-pg-enrol__copy\"><p class=\"nit-pg-eyebrow\">Move from your first app to complete systems<\/p><h2 id=\"register-heading\">Register for Full-Stack Software Development at Newton Institute of Technology<\/h2><p>Progress from browser fundamentals into complete applications that connect frontend interfaces with backend logic, APIs, databases, testing and deployment through practical project work.<\/p><\/div>\n<div class=\"nit-pg-enrol__details\"><p><span>Call \/ WhatsApp<\/span><strong><a href=\"tel:+254713584858\">+254 713 584 858<\/a><\/strong><\/p><p><span>Email<\/span><strong><a href=\"mailto:info@niteducation.com\">info@niteducation.com<\/a><\/strong><\/p><p><span>Location<\/span><strong>Migori Town, Migori County<\/strong><\/p><\/div>\n<div class=\"nit-pg-enrol__actions\"><a class=\"nit-pg-button nit-pg-button--gold\" href=\"https:\/\/niteducation.com\/admissions\/\">Register \/ admissions<\/a><a class=\"nit-pg-button nit-pg-button--outline\" href=\"https:\/\/niteducation.com\/resources\/full-stack-software-development-course\/\">View the Full-Stack course<\/a><\/div>\n<\/section>\n\n<\/div><section aria-labelledby=\"references-title\" class=\"nit-sources\"><h2 id=\"references-title\">References and further reading<\/h2><ul><li id=\"ref-1\"><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Document_Object_Model\" rel=\"noopener\" target=\"_blank\">[1] MDN Web Docs \u2014 Document Object Model (DOM)<\/a>. Browser document representation and DOM APIs.<\/li><li id=\"ref-2\"><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Web_Storage_API\" rel=\"noopener\" target=\"_blank\">[2] MDN Web Docs \u2014 Web Storage API<\/a>. Web Storage characteristics, synchronous behaviour and localStorage\/sessionStorage.<\/li><li id=\"ref-3\"><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Web_Storage_API\/Using_the_Web_Storage_API\" rel=\"noopener\" target=\"_blank\">[3] MDN Web Docs \u2014 Using the Web Storage API<\/a>. Storage availability, JSON storage patterns and browser restrictions.<\/li><li id=\"ref-4\"><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Crypto\/randomUUID\" rel=\"noopener\" target=\"_blank\">[4] MDN Web Docs \u2014 Crypto.randomUUID()<\/a>. Generation of version 4 UUIDs in secure contexts.<\/li><li id=\"ref-5\"><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Security\/Defenses\/Secure_Contexts\" rel=\"noopener\" target=\"_blank\">[5] MDN Web Docs \u2014 Secure contexts<\/a>. Secure-context rules, including trustworthy localhost development contexts.<\/li><li id=\"ref-6\"><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Fetch_API\/Using_Fetch\" rel=\"noopener\" target=\"_blank\">[6] MDN Web Docs \u2014 Using the Fetch API<\/a>. Browser HTTP requests and responses for later client\/server development.<\/li><li id=\"ref-7\"><a href=\"https:\/\/www.w3.org\/WAI\/tutorials\/forms\/labels\/\" rel=\"noopener\" target=\"_blank\">[7] W3C Web Accessibility Initiative \u2014 Labeling Controls<\/a>. Accessible association of labels and form controls.<\/li><li id=\"ref-8\"><a href=\"https:\/\/www.w3.org\/WAI\/tutorials\/forms\/validation\/\" rel=\"noopener\" target=\"_blank\">[8] W3C Web Accessibility Initiative \u2014 Validating Input<\/a>. Required fields, validation and understandable error feedback.<\/li><li id=\"ref-9\"><a href=\"https:\/\/docs.github.com\/en\/pages\/getting-started-with-github-pages\/configuring-a-publishing-source-for-your-github-pages-site\" rel=\"noopener\" target=\"_blank\">[9] GitHub Docs \u2014 Configuring a publishing source for GitHub Pages<\/a>. Current GitHub Pages branch\/folder publishing workflow.<\/li><li id=\"ref-10\"><a href=\"https:\/\/docs.github.com\/en\/pages\/getting-started-with-github-pages\/troubleshooting-404-errors-for-github-pages-sites\" rel=\"noopener\" target=\"_blank\">[10] GitHub Docs \u2014 Troubleshooting 404 errors for GitHub Pages sites<\/a>. Entry-file and publishing-source troubleshooting.<\/li><li id=\"ref-11\"><a href=\"https:\/\/owasp.org\/projects\/top-ten?lang=en\" rel=\"noopener\" target=\"_blank\">[11] OWASP Foundation \u2014 OWASP Top 10:2025<\/a>. Current awareness list of major web-application security risks.<\/li><li id=\"ref-12\"><a href=\"https:\/\/niteducation.com\/resources\/full-stack-software-development-course\/\" rel=\"noopener\" target=\"_blank\">[12] Newton Institute of Technology \u2014 Full-Stack Software Development Course<\/a>. Current NIT course duration, attachment, tuition and programme scope.<\/li><\/ul><p><strong>Information checked:<\/strong> 1 November 2026.<\/p><p><strong>Editorial responsibility:<\/strong> Newton Institute of Technology Editorial Team.<\/p><\/section><\/article>\n","protected":false},"excerpt":{"rendered":"<p>Web Development Guide First App How to Build Your FirstWeb Application Step by Step Plan \u00b7 Build \u00b7 Test \u00b7 Publish Start with an empty folder and finish with a working Student Assignment Tracker you can store, test, debug and publish using HTML, CSS and JavaScript. Start the build Publish the app The build route [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[30],"tags":[36,58,84,42],"class_list":["post-3726","post","type-post","status-publish","format-standard","hentry","category-ict","tag-best-ict-courses-after-kcse","tag-cyber-security-training-in-kenya","tag-software-development","tag-software-development-course-fees-in-kenya"],"_links":{"self":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts\/3726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/comments?post=3726"}],"version-history":[{"count":1,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts\/3726\/revisions"}],"predecessor-version":[{"id":3727,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/posts\/3726\/revisions\/3727"}],"wp:attachment":[{"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/media?parent=3726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/categories?post=3726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/niteducation.com\/resources\/wp-json\/wp\/v2\/tags?post=3726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}