Web Designing
UNIT-I: Introduction
Basic principles involved in developing a web site, Planning process, Domains and Hosting, Responsive Web Designing, Types of Websites (Static and Dynamic Websites), Web Standards and W3C recommendations.
Introduction to HTML: What is HTML, HTML Documents, Basic structure of an HTML document, Creating an HTML document, Markup Tags, Headings, Paragraphs, Line Breaks.
UNIT-II: Elements of HTML
HTML Tags, Working with Text, Working with Lists, Tables and Frames, Working with Hyperlinks, Images and Multimedia, Working with Forms and Controls.
UNIT-III: Concept of CSS
Creating Style Sheets, CSS Properties, CSS Styling (Background, Text Format, Controlling Fonts), Working with block elements and objects, Working with Lists and Tables, CSS Id and Class.
Box Model (Introduction, Border properties, Padding Properties, Margin properties), CSS Advanced (Grouping, Dimension, Display, Positioning, Floating, Align, Pseudo class, Navigation Bar, Image Sprites, Attribute selector), CSS Color, Creating page Layout and Site Designs.
UNIT-IV: JavaScript & Client-Side Scripting
Introduction to Client-Side Scripting, Introduction to JavaScript, JavaScript Types, Variables in JS, Operators in JS, Condition Statements, JavaScript Loops, JS Popup Boxes, JS Events, JS Arrays, Working with Arrays, JS Objects, JS Functions.
Using JavaScript in Real-time, Validation of Forms, Related Examples.
UNIT-V: Web Hosting & SEO
Web Hosting Basics, Types of Hosting Packages, Registering domains, Defining Name Servers, Using Control Panel, Creating Emails in Cpanel, Using FTP Client, Maintaining a Website.
Concepts of SEO: Basics of SEO, Importance of SEO, On-page Optimization Basics.

UNIT-I: Introduction to Web Designing

1. Basic Principles Involved in Developing a Website

Developing a website requires understanding key principles such as:

2. Planning Process

The planning process involves defining the purpose, audience, and scope of the website.

3. Domains and Hosting

Websites need a domain name and hosting to be available on the internet:

    Example:
    Domain Name: www.yourwebsite.com
    Web Hosting Service: Bluehost, GoDaddy, HostGator, etc.
            

4. Responsive Web Designing

Responsive web design ensures that websites work across a variety of devices (desktops, tablets, smartphones).

Key Concepts:

    Example of Media Query:
    @media only screen and (max-width: 600px) {
        body { font-size: 14px; }
    }
            

5. Types of Websites

5.1 Static Websites

Static websites are fixed-content websites that display the same information for every visitor. They are easy to build and host.

    Example:
    HTML Code for a Static Website:
    <html>
        <head><title>Static Website</title></head>
        <body>
            <h1>Welcome to My Static Website</h1>
        </body>
    </html>
            

5.2 Dynamic Websites

Dynamic websites display different content based on user interaction or real-time data. They are more complex and require back-end programming.

    Example:
    Dynamic Content with PHP:
    <?php echo "Welcome, User!"; ?>
            

6. Web Standards and W3C Recommendations

The World Wide Web Consortium (W3C) sets standards for web development to ensure accessibility, interoperability, and usability across different platforms.

Key Standards:

7. Introduction to HTML

7.1 What is HTML?

HTML (Hypertext Markup Language) is the standard language used to create web pages. It defines the structure and content of web documents.

7.2 HTML Documents

HTML documents are made up of elements that are represented by tags.

    Example:
    <html>
        <head><title>My First HTML Page</title></head>
        <body>
            <h1>Hello, World!</h1>
        </body>
    </html>
            

7.3 Basic Structure of an HTML Document

An HTML document typically contains a head section and a body section.

    Example:
    <html>
        <head><title>My Website</title></head>
        <body>
            <h1>Welcome to My Website</h1>
        </body>
    </html>
            

7.4 Markup Tags

HTML uses markup tags to define elements like headings, paragraphs, images, and links. Tags come in pairs: opening and closing tags.

    Example:
    <h1>This is a Heading</h1>
    <p>This is a paragraph.</p>
            

7.5 Heading and Paragraphs

Headings are used to define sections and sub-sections in your document. Paragraphs define blocks of text.

    Example:
    <h2>Introduction</h2>
    <p>This is the first paragraph of the webpage.</p>
            

7.6 Line Breaks

The line break tag (<br>) is used to add a break in the content and move to the next line.

    Example:
    <p>This is the first line.<br>This is the second line.</p>
            

UNIT-II: HTML Forms and Input Elements

1. Introduction to HTML Forms

HTML forms are used to collect user input. A form is created using the `

` tag and can contain various input elements like text fields, radio buttons, checkboxes, and buttons.

1.1 Basic Form Structure

To create a basic form, the following syntax is used:

            <form action="submit_form.php" method="post">
                <label for="name">Name:</label>
                <input type="text" id="name" name="name">
                
                <label for="email">Email:</label>
                <input type="email" id="email" name="email">
                
                <input type="submit" value="Submit">
            </form>
            

2. Types of Input Elements

HTML provides several types of input elements for different kinds of data. Here are the most common types:

2.1 Text Input

            <input type="text" id="username" name="username">
            

2.2 Password Input

            <input type="password" id="password" name="password">
            

2.3 Radio Button

            <input type="radio" id="male" name="gender" value="male"> Male
            <input type="radio" id="female" name="gender" value="female"> Female
            

2.4 Checkbox

            <input type="checkbox" id="subscribe" name="subscribe"> Subscribe to newsletter
            

2.5 Dropdown Menu (Select)

            <select id="car" name="car">
                <option value="volvo">Volvo</option>
                <option value="saab">Saab</option>
                <option value="mercedes">Mercedes</option>
            </select>
            

UNIT-III: Concept of CSS

1. Creating a Style Sheet

CSS (Cascading Style Sheets) is used to control the style and layout of web pages.

There are three types of CSS:

Example of Internal CSS:

<!DOCTYPE html>
<html>
<head>
    <style>
        body {
            background-color: lightblue;
        }
        h1 {
            color: navy;
        }
    </style>
</head>
<body>
    <h1>Hello CSS</h1>
</body>
</html>
            

2. CSS Properties and Styling

h1 {
    background-color: yellow;
    font-family: Arial;
    font-size: 24px;
    text-align: center;
}
            

3. Block Elements and Lists

Block elements (like div, p, section) can be styled with margins, padding, etc.

div {
    border: 2px solid black;
    margin: 10px;
    padding: 20px;
}
            

4. Tables with CSS

You can style tables to improve their appearance.

table {
    border-collapse: collapse;
}
th, td {
    border: 1px solid black;
    padding: 8px;
}
            

5. CSS ID and Class

IDs are unique; classes can be reused.

#header {
    color: green;
}
.content {
    font-size: 16px;
}
            

6. Box Model

Each element is a box: content + padding + border + margin.

div {
    padding: 10px;
    border: 2px solid blue;
    margin: 15px;
}
            

7. Advanced CSS

a:hover {
    color: red;
    text-decoration: underline;
}
.box {
    width: 100px;
    height: 100px;
    float: left;
}
            

8. CSS Colors

Colors can be defined using names, HEX, RGB, or HSL values.

h1 {
    color: #ff6600;
    background-color: rgb(255, 255, 200);
}
            

9. Page Layout and Site Design

Use CSS to structure your entire website layout using flexbox, grid, and positioning.

.container {
    display: flex;
    justify-content: space-between;
}
nav, main, aside {
    padding: 10px;
    background: #eee;
}
            

UNIT-IV: JavaScript and Client-Side Scripting

1. Introduction to Client-Side Scripting

Client-side scripting refers to code that runs on the user's browser rather than the server. It is used to create dynamic and interactive web pages without reloading.

2. Introduction to JavaScript

JavaScript is a lightweight, interpreted programming language primarily used for enhancing interactivity in web applications.

3. JavaScript Types and Variables

JavaScript supports various data types and variable declarations using var, let, and const.

  // Primitive Types
  let name = "John";       // String
  let age = 25;            // Number
  let isStudent = true;    // Boolean
  let value = null;        // Null
  let data;                // Undefined
  
  // Declaring variables
  var x = 10;
  let y = 20;
  const z = 30;
        

4. Operators in JavaScript

JavaScript supports arithmetic, comparison, logical, and assignment operators.

  let a = 10;
  let b = 5;
  
  // Arithmetic
  console.log(a + b);
  console.log(a - b);
  console.log(a * b);
  console.log(a / b);
  
  // Comparison
  console.log(a == b);
  console.log(a > b);
  
  // Logical
  console.log(a > 5 && b < 10);
        

5. Conditional Statements

JavaScript supports if, else if, else, and switch for conditions.

  let age = 18;
  if (age >= 18) {
    console.log("Adult");
  } else {
    console.log("Minor");
  }
        

6. JavaScript Loops

Used to execute a block of code repeatedly. Includes for, while, and do...while.

  // For loop
  for (let i = 0; i < 5; i++) {
    console.log(i);
  }
  
  // While loop
  let i = 0;
  while (i < 5) {
    console.log(i);
    i++;
  }
        

7. JavaScript Popup Boxes

Used for interaction with users.

  alert("Hello!");
  let confirmBox = confirm("Are you sure?");
  let userName = prompt("Enter your name:");
        

8. JavaScript Events

Events are actions that occur in the browser, like clicking a button or loading a page.

        

9. JavaScript Arrays

Arrays hold multiple values in a single variable.

  let fruits = ["Apple", "Banana", "Mango"];
  console.log(fruits[0]);       // Apple
  fruits.push("Orange");        // Add new element
  console.log(fruits.length);   // Array length
        

10. JavaScript Objects

Objects are used to store key-value pairs.

  let person = {
    name: "Alice",
    age: 30,
    greet: function() {
      console.log("Hello " + this.name);
    }
  };
  
  person.greet();
        

11. JavaScript Functions

Functions are reusable blocks of code.

  function add(x, y) {
    return x + y;
  }
  
  let result = add(5, 3);
  console.log(result);
        

12. Real-Time JavaScript Use

JavaScript is commonly used for:

13. Form Validation Example

JavaScript can validate form inputs before sending them to the server.

             

        

UNIT-V: Web Hosting & SEO

1. Web Hosting Basics

Web hosting is a service that allows individuals and organizations to post a website or web page onto the Internet. A web host, or hosting provider, is a business that provides the technologies and services needed for the website to be viewed online.

Key Concepts:

2. Types of Hosting Packages

There are various types of hosting to suit different website needs:

3. Registering Domains

A domain is your website's address on the internet. Registering a domain involves choosing a unique name and purchasing it through a domain registrar.

Example:
    Domain: www.mywebsite.com
    Registrar: GoDaddy, Namecheap, Google Domains
    

4. Defining Name Servers

Name servers point your domain to the web hosting provider where your website files are stored. They act like a phone book for the internet.

Example:
    Name Server 1: ns1.myhost.com
    Name Server 2: ns2.myhost.com
    

5. Using Control Panel (cPanel)

cPanel is a web-based hosting control panel that simplifies website and server management tasks.

Example Actions in cPanel:
    - Create email accounts
    - Add new domains or subdomains
    - Monitor bandwidth usage
    

6. Creating Emails in cPanel

You can create personalized email accounts based on your domain name (e.g., info@yourdomain.com).

Example:
    Login to cPanel > Email Accounts > Create
    Email: support@mywebsite.com
    Password: ********
    

7. Using FTP Client

FTP (File Transfer Protocol) clients like FileZilla are used to upload and manage website files on the hosting server.

Example:
    Host: ftp.mywebsite.com
    Username: ftpuser
    Password: ********
    Port: 21
    

8. Maintaining a Website

Maintenance involves updating content, fixing broken links, securing the site, and ensuring backups are in place.

9. Concepts of SEO (Search Engine Optimization)

SEO is the process of optimizing your website to rank higher in search engine results, which helps bring organic traffic.

9.1 Basics of SEO

SEO helps search engines understand your content and improves your visibility to users searching for relevant information.

9.2 Importance of SEO

SEO is important because it increases visibility, drives traffic, and builds credibility.

9.3 On-Page Optimization Basics

On-page SEO refers to optimization techniques performed directly within the website content and code.

Example of Meta Tags:
    <meta name="description" content="Learn web design and SEO basics">
    <meta name="keywords" content="web hosting, SEO, web design">