Web Design with Client Scripting: Module 1 - Introduction to Web Technologies

Understanding Websites

  • Definition of a Website: A website is a collection of many web pages. These web pages are digital files written using HTML (HyperText Markup Language).

  • Web Servers: To ensure a website is available globally at all times, it must be stored and hosted on a computer connected to the internet round-the-clock. These computers are specifically known as Web Servers.

  • Primary Types of Websites:

    • Static Website:

      • Displays fixed content to all users.

      • Built using only HTML and CSS.

      • Features no interaction with databases.

        • Advantages: It is faster and easier to host.

        • Ideal Use Cases: Small sites such as portfolios or landing pages.

    • Dynamic Website:

      • Content changes based on user interactions or specific data.

      • Uses server-side languages such as PHP or Python along with databases.

        • Characteristics: It is more complex and highly interactive.

        • Ideal Use Cases: Blogs, e-commerce sites, and social media platforms.

  • Key Components of a Website:

    • Domain:

      • Definition: The web address where users can access the site (e.g., www.example.com).

      • Importance: Enhances brand recognition and credibility.

      • Considerations: Should reflect the brand, be easy to spell, and preferably utilize a .com extension.

    • Hosting:

      • Definition: The service that stores website files and makes them accessible on the internet.

      • Importance: Reliability ensures the site remains available and loads quickly.

      • Considerations: Evaluation of uptime, customer support, scalability, and security features.

    • Homepage:

      • Definition: The main page and starting point for navigation.

      • Importance: Creates the first impression and guides users to other sections.

      • Considerations: Visually appealing, informative, and includes clear calls to action.

    • Content:

      • Definition: Information presented on the site, including text, images, and videos.

      • Importance: Engages visitors, improves SEO, and establishes authority.

      • Considerations: Must be updated regularly and optimized for search engines.

    • Design:

      • Definition: The visual layout and aesthetic of the site.

      • Importance: Enhances user experience and reflects brand identity.

      • Considerations: Focus on color schemes, typography, and responsive design for cross-device compatibility.

    • Navigation:

      • Definition: The system allowing users to move through the website.

      • Importance: Intuitive navigation helps users find information and reduces bounce rates.

      • Considerations: Use clear labels, a logical structure, and a search function.

Website Structure and Functionality

  • Client-Server Model:

    • Client: A device or application (e.g., Google Chrome, Mozilla Firefox, Safari) that initiates communication by requesting services, data, or resources.

    • Server: A system or application that listens for requests, processes them, and provides data. Servers can handle multiple requests simultaneously and host websites or databases.

  • Front-End Development:

    • Definition: The part of the website users interact with directly (Client-side).

    • Technologies: HTML, CSS, JavaScript.

    • Frameworks: React, Angular, Vue.js.

    • Responsibilities: Layout, design, User Interface (UI), responsive behavior, and accessibility.

  • Back-End Development:

    • Definition: The server-side logic that powers the website.

    • Languages: Python, PHP, Java, Node.js.

    • Databases: MySQL, MongoDB, PostgreSQL.

    • Frameworks: Django, Express, Laravel.

    • Responsibilities: Data processing, storage, authentication, authorization, server configuration, and APIs.

  • Integration and Interaction:

    • Workflow: User Action →\to Front-End sends request →\to Back-End processes →\to Sends response →\to Front-End displays result.

    • Example: During a login, the Front-End provides the form, and the Back-End verifies credentials to return a success or failure state.

  • Roles of Databases and Server-Side Scripting:

    • Database: A structured system for managing data.

      • Types: Relational (MySQL, PostgreSQL) and NoSQL (MongoDB, Firebase).

      • Functions: Store user data, enable retrieval, ensure data integrity and security.

    • Server-Side Scripting: Code running on the server to handle requests and database interaction.

      • Languages: PHP, Python, Node.js, Ruby, Java.

      • Functions: Authenticate users, process forms, generate dynamic content.

  • Communication via Browsers and Servers:

    • Browsers (Client-side) and Servers (Server-side) communicate using HTTP/HTTPS protocols.

    • Process Steps:

      1. User enters a URL.

      2. Browser sends an HTTP request.

      3. Server processes the request (potentially querying a database).

      4. Server sends an HTTP response.

      5. Browser renders content.

    • Request Components: Method (GET, POST, etc.), Headers, and optional Body (form data).

    • Response Components: Status code (e.g., 200200 OK, 404404 Not Found), Headers, and Body (HTML, JSON, etc.).

  • Secure Communication (HTTPS):

    • Uses SSL/TLS to encrypt data.

    • Ensures data privacy, authentication, and integrity.

    • Comparison: HTTP transfers data in plain text; HTTPS encrypts credentials and personal data.

Web Protocols and Standards

  • HTTP vs. HTTPS:

    • HTTP (HyperText Transfer Protocol): Fast and lightweight but vulnerable to man-in-the-middle attacks as data is sent in plain text. Primarily uses Port 8080.

    • HTTPS (HTTP Secure): Uses SSL/TLS encryption to protect privacy. Displays a padlock icon. Primarily uses Port 443443.

  • DNS (Domain Name System):

    • Purpose: Translates human-readable domain names into machine-readable IP addresses.

    • Step-by-Step Resolution:

      1. User types domain in browser.

      2. Browser checks local cache.

      3. Browser queries a DNS resolver.

      4. Resolver contacts the Root DNS server.

      5. Resolver contacts the TLD server (e.g., .com, .org).

      6. Resolver contacts the Authoritative DNS server to get the IP.

      7. Browser uses the IP to contact the web server.

    • Security: DNS over HTTPS (DoH) and DNS over TLS (DoT) prevent eavesdropping and DNS spoofing.

  • Web Standards and W3C:

    • Governed by the World Wide Web Consortium (W3C).

    • Ensures consistency, compatibility, and interoperability.

    • Accessibility (WCAG Principles):

      • Perceivable: Content must be visible and understandable.

      • Operable: Users can navigate and interact.

      • Understandable: Clear design.

      • Robust: Compatible with assistive technologies.

    • Responsiveness: Adapts design to screens using media queries, flexible grids, and scalable images.

History and Evolution of the Web

  • Birth of the World Wide Web:

    • Invented by Tim Berners-Lee in 19891989 while at CERN.

    • He proposed a system using HTML, HTTP, and URLs.

    • Created the first web browser, first web server, and first website (info.cern.ch).

  • Web Development Milestones:

    • HTML (19911991): Defined page structure. HTML5 (20142014) added multimedia and semantic elements.

    • CSS (19961996): Separated design from content. CSS3 added animations and media queries.

    • JavaScript (19951995): Developed by Brendan Eich at Netscape. ES6 (20152015) brought modern syntax.

    • CMS (20002000s): Platforms like WordPress, Joomla, and Drupal enabled non-developers to manage content. WordPress powers over 40%40\% of websites.

    • Frameworks (20002000s-Present): React, Angular, Vue.js (Front-end); Django, Laravel, Express.js (Back-end).

  • Modern Web Landscape:

    • Social Media: Growth of user-generated content and real-time interaction (Facebook, TikTok).

    • Mobile-First Design: Driven by smartphone usage and Google indexing. Prioritizes touch-friendly interfaces.

    • Modern Web Apps: Single Page Applications (SPAs) and Progressive Web Apps (PWAs) provide app-like experiences with offline access and push notifications.

Tools and Technologies in Web Development

  • Essential Categories:

    • Code Editors: Visual Studio Code (extensible), Sublime Text (fast), Atom (open-source).

    • Web Browsers: Used for testing; features developer tools for inspecting elements and debugging code.

    • Version Control Systems: Most common is Git (tracking changes). Platforms include GitHub, GitLab, and Bitbucket.

  • Popular Frameworks and Libraries:

    • Bootstrap: Front-end framework for responsive UI and layout using a grid system.

    • React: JavaScript library focused on building interactive UIs through a component-based architecture and Virtual DOM.

    • WordPress: CMS focusing on ease-of-use for content-driven sites via themes and plugins.

  • Hosting and Deployment:

    • Hosting Types: Shared Hosting, VPS (Virtual Private Server), Dedicated Hosting, Cloud Hosting.

    • Hosting Platforms:

      • GitHub Pages: Free static site hosting.

      • Netlify/Vercel: Optimized for React and modern JAMstack.

      • AWS/Google Cloud/Azure: Scalable enterprise cloud hosting.

    • Deployment Steps: Build project, upload files (via FTP/SFTP or Git CI/CD), configure Domain/DNS, set up SSL, and monitor performance.

References

  • McFedries, P. (20232023). HTML, CSS, & JavaScript All-in-One For Dummies I st Edition. For Dummies.

  • Wolf, J. (20232023). HTML and CSS: The Comprehensive Guide. Rheinwerk Computing.

  • Minnick, C. (20232023). JavaScript All-in-One For Dummies. For Dummies.

  • Quickly, C. (20202020). Learn Javascript Quickly: A Complete Beginner’s Guide To Learning Javascript, Even If You’re New To Programming (Crash Course With Hands-On Project). DRIP DIGITAL.

  • Flanagan, D. (20202020). Javascript: The Definitive Guide: Master The World's Most-Used Programming Language. O'REILLY MEDIA.