rofelbca

online

Nov 23rd, 2025
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.69 KB | Source Code | 0 0
  1. 1. Header Component (header.html)
  2.  File Information:
  3.  Purpose: Main header display for the Online Book Store
  4.  Features: Simple header with bookstore title and styling
  5.  Dependencies: Links to style.css for CSS styling
  6.  <!DOCTYPE html>
  7.  <html>
  8.  <head>
  9.  <title>Header</title>
  10.  <link rel='stylesheet' href='style.css'>
  11.  </head>
  12.  <body style="background-color:#A7D8FF; text-align:center;">
  13.  </html>
  14.  <h1>
  15.  πŸ“š
  16.  Online Book Store</h1>
  17.  </body>
  18. 2. Home Layout (home.html)
  19.  File Information:
  20.  Purpose: Main application layout using HTML frames
  21.  Structure: Nested frameset with header, menu, and content areas
  22.  Technology: Uses HTML frames (deprecated but functional)
  23.  <!DOCTYPE html>
  24.  <html>
  25.  <head>
  26.  <title>Online Book Store - Home</title>
  27.  </head>
  28.  <frameset rows="20%,80%">
  29.  <frame name="top" src="header.html">
  30.  <frameset cols="20%,80%">
  31.  <frame name="menu" src="menu.html">
  32.  <frame name="content" src="welcome.html">
  33.  </frameset>
  34.  </frameset>
  35.  </html>
  36. 3. Navigation Menu (menu.html)
  37.  File Information:
  38.  Purpose: Navigation menu with links to different sections
  39.  Features: Three main navigation links with target attributes
  40.  Styling: Light gray background with linked CSS
  41.  <!DOCTYPE html>
  42.  <html>
  43.  <head>
  44.  <link rel='stylesheet' href='style.css'>
  45.  </head>
  46.  <body style="background-color:#F0F0F0;">
  47.  <h3>Menu</h3>
  48.  <a href="login.html" target="content">Login</a>
  49.  <br><br>
  50.  <a href="register.html" target="content">Register</a>
  51.  <br><br>
  52.  <a href="catalogue.html" target="content">Catalogue</a>
  53.  <br><br>
  54.  </body>
  55.  </html>
  56. 4. Login Form (login.html)
  57.  File Information:
  58.  Purpose: User login form for authentication
  59.  Fields: Username (text input) and Password (password input)
  60.  Actions: Submit and Clear buttons
  61.  <!DOCTYPE html>
  62.  <html>
  63.  <head>
  64.  <title>Login</title>
  65.  <link rel='stylesheet' href='style.css'>
  66.  </head>
  67.  <body>
  68.  <h2>Login Form</h2>
  69.  <form>
  70.  Username: <input type="text">
  71.  <br><br>
  72.  Password: <input type="password">
  73.  <br><br>
  74.  <input type="submit" value="Login">
  75.  <input type="reset" value="Clear">
  76.  </form>
  77.  </body>
  78.  </html>
  79. 5. Registration Form (register.html)
  80.  File Information:
  81.  Purpose: New user registration form
  82.  Fields: Name, Email, Password, Gender (radio buttons), Address (textarea)
  83.  Layout: Table-based form layout
  84.  <!DOCTYPE html>
  85.  <html>
  86.  <head>
  87.  <title>Register</title>
  88.  <link rel='stylesheet' href='style.css'>
  89.  </head>
  90.  <body>
  91.  <h2>User Registration</h2>
  92.  <form>
  93.  <table>
  94.  <tr><td>Name:</td><td><input type="text"></td></tr>
  95.  <tr><td>Email:</td><td><input type="email"></td></tr>
  96.  <tr><td>Password:</td><td><input type="password"></td></tr>
  97.  <tr><td>Gender:</td><td>
  98.  <input type="radio" name="gender">Male
  99.  <input type="radio" name="gender">Female</td></tr>
  100.  <tr><td>Address:</td><td><textarea rows="4"></textarea></td></tr>
  101.  <tr><td></td><td>
  102.  <input type="submit" value="Register">
  103.  <input type="reset" value="Clear">
  104.  </td></tr>
  105.  </table>
  106.  </form>
  107.  </body>
  108.  </html>
  109. 6. Book Catalogue (catalogue.html)
  110.  File Information:
  111.  Purpose: Book catalogue with pricing and purchase options
  112.  Features: Table layout with book titles, authors, prices, and "Add" buttons
  113.  Books: 4 books with Indian Rupee pricing
  114.  <!DOCTYPE html>
  115.  <html>
  116.  <head>
  117.  <title>Catalogue</title>
  118.  <link rel='stylesheet' href='style.css'>
  119.  </head>
  120.  <body>
  121.  <h2>Book Catalogue</h2>
  122.  <table width="100%">
  123.  <tr>
  124.  <th>Book Title</th>
  125.  <th>Author</th>
  126.  <th>Price</th>
  127.  <th>Buy</th>
  128.  </tr>
  129.  <tr><td>Web Technology</td><td>A. Sharma</td><td>β‚Ή550</td><td><button>Add</button></td></tr>
  130.  <tr><td>Java Programming</td><td>Herbert Schildt</td><td>β‚Ή750</td><td><button>Add</button></td></tr>
  131.  <tr><td>Database Systems</td><td>Korth</td><td>β‚Ή600</td><td><button>Add</button></td></tr>
  132.  <tr><td>Python for Beginners</td><td>John Doe</td><td>β‚Ή500</td><td><button>Add</button></td></tr>
  133.  </table>
  134.  </body>
  135.  </html>
  136. 7. CSS Styles (style.css)
  137.  File Information:
  138.  Purpose: Complete CSS styling for all HTML components
  139.  Categories: Base styles, form elements, table styling, hover effects
  140.  Color Scheme: Professional blue theme (#2E4A62)
  141.  body {
  142.  font-family: Arial, sans-serif;
  143.  margin: 20px;
  144.  }
  145.  h2, h1, h3 {
  146.  color: #2E4A62;
  147.  }
  148.  input, textarea, select {
  149.  padding: 6px;
  150.  width: 90%;
  151.  border: 1px solid #ccc;
  152.  border-radius: 4px;
  153.  }
  154.  button, input[type=submit], input[type=reset] {
  155.  padding: 8px 15px;
  156.  border: none;
  157.  background-color: #2E4A62;
  158.  color: white;
  159.  cursor: pointer;
  160.  border-radius: 4px;
  161.  }
  162.  button:hover, input[type=submit]:hover, input[type=reset]:hover {
  163.  background-color: #1b2f40;
  164.  }
  165.  table {
  166.  border-collapse: collapse;
  167.  }
  168.  th {
  169.  }
  170.  background-color: #2E4A62;
  171.  color: white;
  172.  td, th {
  173.  padding: 10px;
  174.  border: 1px solid gray;
  175.  }
  176.  
Advertisement
Add Comment
Please, Sign In to add comment