|
1 | | -# HTML & CSS Mini-Task (Task 6) |
| 1 | +# 🌐 HTML & CSS Mini-Tasks — Comprehensive Practice Pack |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | +A complete collection of **11 HTML & CSS tasks** designed to strengthen fundamentals in **HTML structure, form creation, debugging, styling, lists, tables, and semantic markup**. |
| 8 | +Screenshots and clean project structure are included for clarity. |
| 9 | + |
| 10 | +--- |
| 11 | + |
| 12 | +## 📂 Project Structure |
| 13 | + |
| 14 | +``` |
| 15 | +html-css-mini-tasks/ |
| 16 | +│ |
| 17 | +├── .github/ |
| 18 | +│ └── workflows/ |
| 19 | +│ └── html-check.yml |
| 20 | +│ |
| 21 | +├── screenshots/ |
| 22 | +│ ├── 1.png |
| 23 | +│ ├── 2.png |
| 24 | +│ ├── 3.png |
| 25 | +│ ├── 4.png |
| 26 | +│ ├── 5.a.png |
| 27 | +│ ├── 5.b.png |
| 28 | +│ ├── 6.png |
| 29 | +│ ├── 7.png |
| 30 | +│ ├── 8.png |
| 31 | +│ ├── 9.png |
| 32 | +│ ├── 10.png |
| 33 | +│ ├── 11.a.png |
| 34 | +│ └── 11.b.png |
| 35 | +│ |
| 36 | +├── Question1.html |
| 37 | +├── Question2.html |
| 38 | +├── Question3.html |
| 39 | +├── styleQ3.css |
| 40 | +├── Question4.html |
| 41 | +├── Question5.html |
| 42 | +├── Question6.html |
| 43 | +├── Question7.html |
| 44 | +├── styleQ7.css |
| 45 | +├── Question8.html |
| 46 | +├── Question9.html |
| 47 | +├── Question10.html |
| 48 | +├── Question11.html |
| 49 | +│ |
| 50 | +├── LICENSE |
| 51 | +└── README.md |
| 52 | +``` |
| 53 | + |
| 54 | +--- |
| 55 | + |
| 56 | +## 📝 Task Overview |
| 57 | + |
| 58 | +### **Q1 – Fix Bugs in HTML Snippet** |
| 59 | +Basic bug‑fixing involving: |
| 60 | +- Improper nesting |
| 61 | +- Unclosed tags |
| 62 | +- Incorrect attribute placements |
| 63 | + |
| 64 | +--- |
| 65 | + |
| 66 | +### **Q2 – Fix Bugs in Another HTML Snippet** |
| 67 | +Similar debugging with structure correction and semantic fixes. |
| 68 | + |
| 69 | +--- |
| 70 | + |
| 71 | +### **Q3 – Contact Us Form** |
| 72 | +Creates a complete form containing: |
| 73 | +- Name, Email, Subject, Message fields |
| 74 | +- Required validation |
| 75 | +- Styled using **styleQ3.css** |
| 76 | + |
| 77 | +📸 *Screenshot:* |
| 78 | + |
2 | 79 |
|
3 | | -This repository contains HTML and CSS files for a mini-task designed to demonstrate the usage of basic HTML tags, form creation, table design, and element manipulation. The project includes solutions to 11 tasks (Q1 to Q11) focusing on HTML structure, debugging, and styling without CSS where specified. |
| 80 | +--- |
4 | 81 |
|
5 | | -## Project Structure |
| 82 | +### **Q4 – Programming Languages & Databases List** |
| 83 | +Nested lists covering: |
| 84 | +- JS, Python, Java |
| 85 | +- Frameworks (e.g., React, Django) |
| 86 | +- Databases (MySQL, MongoDB) |
6 | 87 |
|
7 | | -- **Question1.html**: Fixes bugs in the provided HTML snippet (Q1). |
8 | | -- **Question2.html**: Fixes bugs in a second provided HTML snippet (Q2). |
9 | | -- **Question3.html**: Designs a "Contact Us" form with all fields required (Q3). |
10 | | -- **styleQ3.css**: Styles for the "Contact Us" form in Q3. |
11 | | -- **Question4.html**: Displays a nested list of programming languages, frameworks, and databases (Q4). |
12 | | -- **Question5.html**: Creates a link to open `https://google.com` in a new tab (Q5). |
13 | | -- **Question6.html**: Adds radio buttons for employee type (Salaried and Own Business) to a form (Q6). |
14 | | -- **Question7.html**: Designs a form based on the provided image (Q7). |
15 | | -- **styleQ7.css**: Styles for the form in Q7. |
16 | | -- **Question8.html**: Designs a table based on a provided image (Q8). |
17 | | -- **Question9.html**: Shows default values for all form elements using HTML input tags (Q9). |
18 | | -- **Question10.html**: Highlights the text "HTML & CSS is awesome" without using CSS (Q10). |
19 | | -- **Question11.html**: Creates a form with all types of input elements (Q11). |
20 | | -- **1.png, 2.png, 3.png, 4.png, 5.a.png, 5.b.png, 6.png, 7.png, 8.png, 9.png, 10.png, 11.a.png, 11.b.png**: Screenshots of the code implementations for each task. |
| 88 | +--- |
21 | 89 |
|
22 | | -## Tasks Overview |
| 90 | +### **Q5 – Open Google in New Tab** |
| 91 | +Simple anchor-tag behavior using: |
| 92 | + |
| 93 | +```html |
| 94 | +<a href="https://google.com" target="_blank">Open Google</a> |
| 95 | +``` |
23 | 96 |
|
24 | | -### Q1: Fix Bugs in HTML Snippet 1 |
25 | | -- Fixes structural errors in a given HTML snippet to ensure proper nesting and tag closure. |
| 97 | +--- |
26 | 98 |
|
27 | | -### Q2: Fix Bugs in HTML Snippet 2 |
28 | | -- Fixes structural errors in a second given HTML snippet to ensure proper nesting and tag closure. |
| 99 | +### **Q6 – Employee Type Radio Buttons** |
| 100 | +Two grouped radio buttons: |
| 101 | +- Salaried |
| 102 | +- Own Business |
29 | 103 |
|
30 | | -### Q3: Contact Us Form |
31 | | -- Designs a "Contact Us" form with all fields marked as required, styled using `styleQ3.css`. |
| 104 | +--- |
32 | 105 |
|
33 | | -### Q4: Display Programming Languages and Databases |
34 | | -- Uses HTML list elements to display a nested structure of: |
35 | | - - Programming Languages (JavaScript, Python, Java) with their frameworks. |
36 | | - - Databases (MySQL, MongoDB, Cassandra). |
| 106 | +### **Q7 – Form UI Based on a Reference Image** |
| 107 | +Recreates a complex form layout with custom styling in **styleQ7.css**. |
37 | 108 |
|
38 | | -### Q5: Link to Open Google in New Tab |
39 | | -- Creates an HTML element (anchor tag) that opens `https://google.com` in a new tab. |
| 109 | +📸 *Screenshot:* |
| 110 | + |
40 | 111 |
|
41 | | -### Q6: Radio Buttons for Employee Type |
42 | | -- Adds two radio buttons to a form for employee type (Salaried and Own Business), grouped together. |
| 112 | +--- |
43 | 113 |
|
44 | | -### Q7: Form Design Based on Image |
45 | | -- Designs a form based on the provided image (http://evc-cit.info/cit040/formguide/card_0.png), styled using `styleQ7.css`. |
| 114 | +### **Q8 – Table Based on Reference Image** |
| 115 | +Uses table tags `<table>`, `<tr>`, `<td>`, `<th>` to recreate a given design. |
46 | 116 |
|
47 | | -### Q8: Table Design Based on Image |
48 | | -- Uses the `<table>` tag to design a table based on a provided image. |
| 117 | +📸 *Screenshot:* |
| 118 | + |
49 | 119 |
|
50 | | -### Q9: Default Values for Form Elements |
51 | | -- Creates HTML input tags with default values for various form elements. |
| 120 | +--- |
52 | 121 |
|
53 | | -### Q10: Highlight Text Without CSS |
54 | | -- Highlights the text "HTML & CSS is awesome" using HTML elements (e.g., `<mark>`) without CSS. |
| 122 | +### **Q9 – Default Form Values** |
| 123 | +Demonstrates placeholder/default values for all HTML input types. |
55 | 124 |
|
56 | | -### Q11: Form with All Input Types |
57 | | -- Creates an HTML page containing all types of input elements (e.g., text, password, radio, checkbox, etc.). |
| 125 | +--- |
58 | 126 |
|
59 | | -## How to View |
| 127 | +### **Q10 – Highlight Text Without CSS** |
| 128 | +Uses `<mark>` to highlight: |
| 129 | +**HTML & CSS is awesome** |
60 | 130 |
|
61 | | -1. **Clone the Repository**: |
62 | | - ```bash |
63 | | - git clone https://github.com/thesoulseizure/task-6.git |
64 | | - ``` |
65 | | -2. **Navigate to the Project Directory**: |
66 | | - ```bash |
67 | | - cd task-6 |
68 | | - ``` |
69 | | -3. **Open the HTML Files**: |
70 | | - - Open each `QuestionX.html` file in a web browser to view the solution. |
71 | | - - For Q3 and Q7, ensure the corresponding CSS files (`styleQ3.css` and `styleQ7.css`) are in the same directory. |
| 131 | +--- |
72 | 132 |
|
73 | | -## Requirements |
| 133 | +### **Q11 – All Input Types Form** |
| 134 | +Includes: |
| 135 | +- text, password, radio, checkbox |
| 136 | +- color, date, time, file |
| 137 | +- range, number, search |
| 138 | +- textarea, dropdowns |
74 | 139 |
|
75 | | -- A web browser to view the HTML files. |
76 | | -- No additional setup is required since these are static HTML and CSS files. |
| 140 | +📸 *Screenshot:* |
| 141 | + |
77 | 142 |
|
78 | | -## Screenshots |
| 143 | +--- |
| 144 | + |
| 145 | +## 🖼 Screenshot Gallery (Grid View) |
| 146 | + |
| 147 | +### **Q1 & Q2** |
| 148 | +| Q1 | Q2 | |
| 149 | +|----|----| |
| 150 | +|  |  | |
| 151 | + |
| 152 | +### **Q3 – Q6** |
| 153 | +| Q3 | Q4 | Q5a | Q5b | |
| 154 | +|----|----|------|------| |
| 155 | +|  |  |  |  | |
| 156 | + |
| 157 | +| Q6 | |
| 158 | +|----| |
| 159 | +|  | |
| 160 | + |
| 161 | +### **Q7 – Q11** |
| 162 | +| Q7 | Q8 | Q9 | Q10 | |
| 163 | +|----|----|-----|-----| |
| 164 | +|  |  |  |  | |
| 165 | + |
| 166 | +| Q11a | Q11b | |
| 167 | +|-------|--------| |
| 168 | +|  |  | |
| 169 | + |
| 170 | +--- |
| 171 | + |
| 172 | +## ▶️ How to View the Tasks |
| 173 | + |
| 174 | +### 1️⃣ Clone the Repository |
| 175 | +```bash |
| 176 | +git clone https://github.com/TheComputationalCore/html-css-mini-tasks.git |
| 177 | +``` |
| 178 | + |
| 179 | +### 2️⃣ Open in Browser |
| 180 | +Simply open any `QuestionX.html` file in a browser. |
| 181 | + |
| 182 | +### 3️⃣ For Q3 & Q7 |
| 183 | +Ensure the CSS files `styleQ3.css` and `styleQ7.css` are in the same folder. |
| 184 | + |
| 185 | +--- |
| 186 | + |
| 187 | +## 🛠 Tech Stack Used |
| 188 | +- **HTML5** |
| 189 | +- **CSS3** |
| 190 | +- **Semantic Elements** |
| 191 | +- **Form Validation** |
| 192 | +- **Table & List Structures** |
| 193 | + |
| 194 | +--- |
| 195 | + |
| 196 | +## 🏷 Topics |
| 197 | +`html` • `css` • `forms` • `tables` • `lists` • `semantics` • `web-basics` |
| 198 | + |
| 199 | +--- |
| 200 | + |
| 201 | +## 📜 License |
| 202 | +This project is licensed under the **MIT License**. |
79 | 203 |
|
80 | | -The repository includes screenshots (1.png to 11.b.png) that show the code implementations for each task. Refer to these images to view the solutions visually. |
|
0 commit comments