21 Days Web Development Project Plan
Day 13: CSS Grid
1. Understand CSS Grid: CSS Grid is a powerful layout system for creating complex web layouts. Review the main concepts like grid containers, grid items, and properties such as
2. Create a New HTML File: Open your text editor and create a new file named
3. Set Up the Structure: Add the basic structure of an HTML document, including the
4. Build the Grid Layout: Inside the
5. Add Basic CSS Styling: Create a new file named
6. Define the Grid Layout: Use CSS Grid properties to define the layout of the grid container and its items. Notice the use of
7. Save and View: Save your
8. Explore Additional CSS Grid Features: Experiment with more CSS Grid properties and values to create various layouts. Try properties like
9. Resources:
- [CSS Tricks - https://css-tricks.com/snippets/css/complete-guide-grid/)
- [CSS Grid: https://t.iss.one/javascript_courses/182]
10. Publish Your CSS Grid Layout: Once you're satisfied with your CSS Grid layout, upload your HTML and CSS files to your hosting service to share them online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
Day 13: CSS Grid
1. Understand CSS Grid: CSS Grid is a powerful layout system for creating complex web layouts. Review the main concepts like grid containers, grid items, and properties such as
grid-template-columns
, grid-template-rows
, gap
, grid-area
, and justify-items
.2. Create a New HTML File: Open your text editor and create a new file named
css_grid_layout.html
.3. Set Up the Structure: Add the basic structure of an HTML document, including the
<!DOCTYPE html>
declaration, <html>
, <head>
, and <body>
tags.4. Build the Grid Layout: Inside the
<body>
tag, create a container div with several child divs to represent the grid items. For this example, let's create a simple website layout with a header, sidebar, main content area, and footer.<!DOCTYPE html>
<html>
<head>
<title>CSS Grid Layout</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="grid-container">
<header class="header">Header</header>
<aside class="sidebar">Sidebar</aside>
<main class="main-content">Main Content</main>
<footer class="footer">Footer</footer>
</div>
</body>
</html>
5. Add Basic CSS Styling: Create a new file named
styles.css
and link it to your HTML document. Add basic styles for your grid layout.body {
font-family: Arial, sans-serif;
background-color: #f8f8f8;
color: #333;
margin: 0;
padding: 0;
}
.grid-container {
display: grid;
grid-template-columns: 200px 1fr;
grid-template-rows: auto 1fr auto;
gap: 10px;
height: 100vh;
}
.header {
grid-column: 1 / -1;
background-color: #333;
color: white;
padding: 20px;
text-align: center;
}
.sidebar {
background-color: #4CAF50;
color: white;
padding: 20px;
}
.main-content {
background-color: #fff;
padding: 20px;
}
.footer {
grid-column: 1 / -1;
background-color: #333;
color: white;
padding: 20px;
text-align: center;
}
6. Define the Grid Layout: Use CSS Grid properties to define the layout of the grid container and its items. Notice the use of
grid-template-columns
, grid-template-rows
, and gap
.7. Save and View: Save your
css_grid_layout.html
and styles.css
files. Open the HTML file in a web browser to see how the layout looks. Adjust the layout or styling as needed.8. Explore Additional CSS Grid Features: Experiment with more CSS Grid properties and values to create various layouts. Try properties like
grid-template-areas
, grid-column
, grid-row
, and align-items
..grid-container {
display: grid;
grid-template-columns: 200px 1fr;
grid-template-rows: auto 1fr auto;
grid-template-areas:
"header header"
"sidebar main-content"
"footer footer";
gap: 10px;
height: 100vh;
}
.header {
grid-area: header;
}
.sidebar {
grid-area: sidebar;
}
.main-content {
grid-area: main-content;
}
.footer {
grid-area: footer;
}
9. Resources:
- [CSS Tricks - https://css-tricks.com/snippets/css/complete-guide-grid/)
- [CSS Grid: https://t.iss.one/javascript_courses/182]
10. Publish Your CSS Grid Layout: Once you're satisfied with your CSS Grid layout, upload your HTML and CSS files to your hosting service to share them online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
👍31❤12
24 Youtube Channels for Web Developers
✅ Academind
✅ Clever Programmer
✅ Codecourse
✅ Coder Coder
✅ DevTips
✅ DerekBanas
✅ Fireship
✅ FreeCodeCamp
✅ FlorinPop
✅ Google Developers
✅ Joseph Smith
✅ KevinPowell
✅ LearnCode academy
✅ LearnWebCode
✅ LevelUpTuts
✅ Netanel Peles
✅ Programming with Mosh
✅ SteveGriffith
✅ TheNetNinja
✅ TheNewBoston
✅ TraversyMedia
✅ Treehouse
✅ WebDevSimplified
✅ Codewithharry
✅ Academind
✅ Clever Programmer
✅ Codecourse
✅ Coder Coder
✅ DevTips
✅ DerekBanas
✅ Fireship
✅ FreeCodeCamp
✅ FlorinPop
✅ Google Developers
✅ Joseph Smith
✅ KevinPowell
✅ LearnCode academy
✅ LearnWebCode
✅ LevelUpTuts
✅ Netanel Peles
✅ Programming with Mosh
✅ SteveGriffith
✅ TheNetNinja
✅ TheNewBoston
✅ TraversyMedia
✅ Treehouse
✅ WebDevSimplified
✅ Codewithharry
❤44👍30
21 Days Web Development Project Plan
Day 14: CSS Frameworks
1. Understand CSS Frameworks: CSS frameworks like Bootstrap and Foundation provide pre-written CSS and JavaScript components that help you quickly build responsive and stylish web pages. They include a variety of tools like grid systems, typography, buttons, forms, and more.
2. Choose a Framework: Decide which CSS framework you want to use. Bootstrap is one of the most popular and well-documented options, but you can also explore others like Foundation, Bulma, or Tailwind CSS.
3. Set Up Your Project: Open your text editor and create a new HTML file named
For Bootstrap:
4. Create a Basic Layout: Use the grid system provided by the framework to create a responsive layout. For Bootstrap, use the
Day 14: CSS Frameworks
1. Understand CSS Frameworks: CSS frameworks like Bootstrap and Foundation provide pre-written CSS and JavaScript components that help you quickly build responsive and stylish web pages. They include a variety of tools like grid systems, typography, buttons, forms, and more.
2. Choose a Framework: Decide which CSS framework you want to use. Bootstrap is one of the most popular and well-documented options, but you can also explore others like Foundation, Bulma, or Tailwind CSS.
3. Set Up Your Project: Open your text editor and create a new HTML file named
css_framework.html
. Include the necessary links to the CSS and JavaScript files of your chosen framework.For Bootstrap:
<!DOCTYPE html>
<html>
<head>
<title>Using Bootstrap</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<!-- Your content goes here -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>
4. Create a Basic Layout: Use the grid system provided by the framework to create a responsive layout. For Bootstrap, use the
container
, row
, and col
classes.<div class="container">
<div class="row">
<div class="col-md-4">
<div class="card">
<img class="card-img-top" src="https://via.placeholder.com/150" alt="Card image">
<div class="card-body">
<h4 class="card-title">Card title</h4>
<p class="card-text">Some example text. Some example text.</p>
<a href="#" class="btn btn-primary">See Profile</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<img class="card-img-top" src="https://via.placeholder.com/150" alt="Card image">
<div class="card-body">
<h4 class="card-title">Card title</h4>
<p class="card-text">Some example text. Some example text.</p>
<a href="#" class="btn btn-primary">See Profile</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<img class="card-img-top" src="https://via.placeholder.com/150" alt="Card image">
<div class="card-body">
<h4 class="card-title">Card title</h4>
<p class="card-text">Some example text. Some example text.</p>
<a href="#" class="btn btn-primary">See Profile</a>
</div>
</div>
</div>
</div>
</div>
👍12❤3😁1
5. Add More Components: Explore and add more components provided by the framework, such as navigation bars, buttons, forms, and modals. Customize them as needed.
6. Customize the Design: Use custom CSS to override the default styles of the framework if needed. Create a new file named
```css
.navbar {
background-color: #4CAF50 !important;
}
.card {
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.btn-primary {
background-color: #333;
border-color: #333;
}
7. Save and View: Save your `css_framework.html` and `custom_styles.css` files. Open the HTML file in a web browser to see how the layout looks. Adjust the layout or styling as needed.
8. Resources:
- [Bootstrap Documentation](https://getbootstrap.com/docs/)
- [Foundation Documentation](https://get.foundation/sites/docs/)
- [Bulma Documentation](https://bulma.io/documentation/)
- [Tailwind CSS Documentation](https://tailwindcss.com/docs)
9. Publish Your Project: Once you're satisfied with your project, upload your HTML, CSS, and any other required files to your hosting service to share it online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Features</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Pricing</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
</div>
</nav>
6. Customize the Design: Use custom CSS to override the default styles of the framework if needed. Create a new file named
custom_styles.css
and link it to your HTML document after the framework’s CSS file.<link href="custom_styles.css" rel="stylesheet">
```css
.navbar {
background-color: #4CAF50 !important;
}
.card {
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.btn-primary {
background-color: #333;
border-color: #333;
}
`
7. Save and View: Save your `css_framework.html` and `custom_styles.css` files. Open the HTML file in a web browser to see how the layout looks. Adjust the layout or styling as needed.
8. Resources:
- [Bootstrap Documentation](https://getbootstrap.com/docs/)
- [Foundation Documentation](https://get.foundation/sites/docs/)
- [Bulma Documentation](https://bulma.io/documentation/)
- [Tailwind CSS Documentation](https://tailwindcss.com/docs)
9. Publish Your Project: Once you're satisfied with your project, upload your HTML, CSS, and any other required files to your hosting service to share it online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
👍19❤7😁1
21 Days Web Development Project Plan
Day 15: Landing Page
1. Understand Landing Pages: A landing page is a single web page designed to capture a visitor's attention and encourage them to take a specific action, such as signing up for a newsletter or purchasing a product. The focus is on aesthetics and user experience.
2. Plan Your Layout: Sketch out the layout of your landing page. Common sections include a header, hero section, features, testimonials, call-to-action, and footer. Decide on the content and images you'll need.
3. Create a New HTML File: Open your text editor and create a new file named
4. Set Up the Structure: Add the basic structure of an HTML document, including the
5. Build the Layout: Inside the
Day 15: Landing Page
1. Understand Landing Pages: A landing page is a single web page designed to capture a visitor's attention and encourage them to take a specific action, such as signing up for a newsletter or purchasing a product. The focus is on aesthetics and user experience.
2. Plan Your Layout: Sketch out the layout of your landing page. Common sections include a header, hero section, features, testimonials, call-to-action, and footer. Decide on the content and images you'll need.
3. Create a New HTML File: Open your text editor and create a new file named
landing_page.html
.4. Set Up the Structure: Add the basic structure of an HTML document, including the
<!DOCTYPE html>
declaration, <html>
, <head>
, and <body>
tags.5. Build the Layout: Inside the
<body>
tag, create the structure of your landing page. Use semantic HTML tags like <header>
, <section>
, and <footer>
.<!DOCTYPE html>
<html>
<head>
<title>Landing Page</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header class="header">
<nav class="navbar">
<a href="#" class="logo">Brand</a>
<ul class="nav-links">
<li><a href="#">Home</a></li>
<li><a href="#">Features</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<div class="hero">
<h1>Welcome to Our Product</h1>
<p>Discover the amazing features and benefits</p>
<a href="#" class="btn">Get Started</a>
</div>
</header>
<section class="features">
<h2>Features</h2>
<div class="feature">
<h3>Feature 1</h3>
<p>Detail about feature 1.</p>
</div>
<div class="feature">
<h3>Feature 2</h3>
<p>Detail about feature 2.</p>
</div>
<div class="feature">
<h3>Feature 3</h3>
<p>Detail about feature 3.</p>
</div>
</section>
<section class="testimonials">
<h2>Testimonials</h2>
<div class="testimonial">
<p>"This product changed my life!" - Customer A</p>
</div>
<div class="testimonial">
<p>"Amazing features and great support!" - Customer B</p>
</div>
</section>
<section class="call-to-action">
<h2>Ready to Get Started?</h2>
<a href="#" class="btn">Sign Up Now</a>
</section>
<footer class="footer">
<p>© 2024 Brand. All rights reserved.</p>
</footer>
</body>
</html>
❤15👍13👏1
6. Add Basic CSS Styling: Create a new file named
7. Customize and Refine: Adjust the layout and styling to fit your content and design preferences. Use CSS Grid or Flexbox for advanced layouts, and add custom styles to enhance the appearance.
8. Save and View: Save your
9. Resources:
- [Unbounce - Anatomy of a Landing Page](https://unbounce.com/landing-page-articles/anatomy-of-a-landing-page/)
- [HubSpot - Best Practices for Landing Page Design](https://blog.hubspot.com/marketing/landing-page-best-practices-list)
- [MDN Web Docs - HTML Elements](https://developer.mozilla.org/en-US/docs/Web/HTML/Element)
10. Publish Your Landing Page: Once you're satisfied with your landing page, upload your HTML and CSS files to your hosting service to share it online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
styles.css
and link it to your HTML document. Add styles for your layout, focusing on making it visually appealing.body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f8f8f8;
color: #333;
}
.header {
background-color: #4CAF50;
color: white;
text-align: center;
padding: 50px 0;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
}
.logo {
font-size: 24px;
font-weight: bold;
}
.nav-links {
list-style-type: none;
padding: 0;
}
.nav-links li {
display: inline;
margin: 0 10px;
}
.nav-links a {
color: white;
text-decoration: none;
}
.hero {
padding: 100px 20px;
}
.hero h1 {
font-size: 48px;
margin-bottom: 20px;
}
.hero p {
font-size: 18px;
margin-bottom: 40px;
}
.btn {
background-color: #333;
color: white;
padding: 10px 20px;
text-decoration: none;
border-radius: 5px;
}
.features, .testimonials, .call-to-action {
padding: 50px 20px;
text-align: center;
}
.feature, .testimonial {
margin-bottom: 20px;
}
.footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px 0;
}
7. Customize and Refine: Adjust the layout and styling to fit your content and design preferences. Use CSS Grid or Flexbox for advanced layouts, and add custom styles to enhance the appearance.
8. Save and View: Save your
landing_page.html
and styles.css
files. Open the HTML file in a web browser to see how the layout looks. Make adjustments as needed.9. Resources:
- [Unbounce - Anatomy of a Landing Page](https://unbounce.com/landing-page-articles/anatomy-of-a-landing-page/)
- [HubSpot - Best Practices for Landing Page Design](https://blog.hubspot.com/marketing/landing-page-best-practices-list)
- [MDN Web Docs - HTML Elements](https://developer.mozilla.org/en-US/docs/Web/HTML/Element)
10. Publish Your Landing Page: Once you're satisfied with your landing page, upload your HTML and CSS files to your hosting service to share it online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
👍12❤8🔥6
21 Days Web Development Project Plan
Day 16: Parallax Scrolling
1. Understand Parallax Scrolling: Parallax scrolling is a web design technique where background images move slower than the foreground content, creating an illusion of depth.
2. Set Up Your Project: Open your text editor and create a new file named
3. Set Up the Structure: Add the basic structure of an HTML document, including the
4. Create the Parallax Sections: Inside the
5. Add Basic CSS Styling: Create a new file named
6. Test the Parallax Effect: Save your
7. Enhance the Effect: Experiment with different background images, content positioning, and additional CSS properties to enhance the parallax effect. You can also add more sections with varying background speeds for a more dynamic experience.
8. Resources:
- [MDN Web Docs - Using CSS Backgrounds](https://developer.mozilla.org/en-US/docs/Web/CSS/background)
- [CSS Tricks - Parallax](https://css-tricks.com/snippets/css/parallax-background-image/)
- [W3Schools - Parallax Scrolling](https://www.w3schools.com/howto/howto_css_parallax.asp)
9. Publish Your Parallax Page: Once you're satisfied with your parallax scrolling effect, upload your HTML and CSS files to your hosting service to share it online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
Day 16: Parallax Scrolling
1. Understand Parallax Scrolling: Parallax scrolling is a web design technique where background images move slower than the foreground content, creating an illusion of depth.
2. Set Up Your Project: Open your text editor and create a new file named
parallax_scrolling.html
.3. Set Up the Structure: Add the basic structure of an HTML document, including the
<!DOCTYPE html>
declaration, <html>
, <head>
, and <body>
tags.4. Create the Parallax Sections: Inside the
<body>
tag, create sections that will have parallax background images and regular content sections.<!DOCTYPE html>
<html>
<head>
<title>Parallax Scrolling</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="parallax-section" id="section1">
<div class="content">
<h1>Welcome to Our Site</h1>
<p>Scroll down to see the parallax effect in action.</p>
</div>
</div>
<div class="content-section">
<h2>About Us</h2>
<p>This is a regular content section.</p>
</div>
<div class="parallax-section" id="section2">
<div class="content">
<h1>Our Services</h1>
<p>More information about what we offer.</p>
</div>
</div>
<div class="content-section">
<h2>Contact Us</h2>
<p>Get in touch with us.</p>
</div>
</body>
</html>
5. Add Basic CSS Styling: Create a new file named
styles.css
and link it to your HTML document. Add styles for your layout, focusing on the parallax effect.body, html {
height: 100%;
margin: 0;
font-family: Arial, sans-serif;
}
.parallax-section {
height: 100vh;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
#section1 {
background-image: url('https://via.placeholder.com/1200x800');
}
#section2 {
background-image: url('https://via.placeholder.com/1200x800');
}
.content {
text-align: center;
padding: 50px;
background: rgba(0, 0, 0, 0.5);
color: white;
position: relative;
top: 50%;
transform: translateY(-50%);
}
.content-section {
padding: 50px;
text-align: center;
background-color: #f8f8f8;
}
.content-section h2, .content-section p {
margin: 0 0 20px;
}
6. Test the Parallax Effect: Save your
parallax_scrolling.html
and styles.css
files. Open the HTML file in a web browser and scroll through the page to see the parallax effect. Adjust the background images and content as needed.7. Enhance the Effect: Experiment with different background images, content positioning, and additional CSS properties to enhance the parallax effect. You can also add more sections with varying background speeds for a more dynamic experience.
8. Resources:
- [MDN Web Docs - Using CSS Backgrounds](https://developer.mozilla.org/en-US/docs/Web/CSS/background)
- [CSS Tricks - Parallax](https://css-tricks.com/snippets/css/parallax-background-image/)
- [W3Schools - Parallax Scrolling](https://www.w3schools.com/howto/howto_css_parallax.asp)
9. Publish Your Parallax Page: Once you're satisfied with your parallax scrolling effect, upload your HTML and CSS files to your hosting service to share it online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
❤16👍9
21 Days Web Development Project Plan
Day 17: Interactive Form
1. Understand Interactive Forms: Interactive forms provide users with various input types like text fields, dropdowns, radio buttons, checkboxes, and validations to ensure correct data submission.
2. Set Up Your Project: Open your text editor and create a new file named
3. Set Up the Structure: Add the basic structure of an HTML document, including the
4. Create the Form Layout: Inside the
5. Add Basic CSS Styling: Create a new file named
Day 17: Interactive Form
1. Understand Interactive Forms: Interactive forms provide users with various input types like text fields, dropdowns, radio buttons, checkboxes, and validations to ensure correct data submission.
2. Set Up Your Project: Open your text editor and create a new file named
interactive_form.html
.3. Set Up the Structure: Add the basic structure of an HTML document, including the
<!DOCTYPE html>
declaration, <html>
, <head>
, and <body>
tags.4. Create the Form Layout: Inside the
<body>
tag, create a form with various input fields, including text inputs, email, password, dropdowns, radio buttons, checkboxes, and a submit button.<!DOCTYPE html>
<html>
<head>
<title>Interactive Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="form-container">
<h2>Sign Up</h2>
<form id="signupForm">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<label for="country">Country:</label>
<select id="country" name="country">
<option value="usa">USA</option>
<option value="canada">Canada</option>
<option value="uk">UK</option>
<option value="australia">Australia</option>
</select>
<label>Gender:</label>
<label><input type="radio" name="gender" value="male" required> Male</label>
<label><input type="radio" name="gender" value="female"> Female</label>
<label><input type="radio" name="gender" value="other"> Other</label>
<label><input type="checkbox" name="terms" required> I agree to the terms and conditions</label>
<button type="submit">Sign Up</button>
</form>
</div>
<script src="script.js"></script>
</body>
</html>
5. Add Basic CSS Styling: Create a new file named
styles.css
and link it to your HTML document. Add styles to make the form visually appealing.body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.form-container {
background-color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
width: 300px;
}
.form-container h2 {
margin-bottom: 20px;
}
form {
display: flex;
flex-direction: column;
}
label {
margin-bottom: 5px;
}
input[type="text"],
input[type="email"],
input[type="password"],
select {
margin-bottom: 20px;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
}
input[type="radio"],
input[type="checkbox"] {
margin-right: 10px;
}
button {
padding: 10px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
button:hover {
background-color: #45a049;
}
👍15❤3
6. Add JavaScript for Validation: Create a new file named
8. Enhance the Form: Improve the form by adding more interactive elements like date pickers, file uploads, or additional validation rules. Customize the styling further to match your design preferences.
9. Resources:
- [MDN Web Docs - Form Validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)
- [W3Schools - HTML Form Elements](https://www.w3schools.com/html/html_form_elements.asp)
- [JavaScript Form Validation](https://www.smashingmagazine.com/2011/11/client-side-form-validation-with-html5/)
10. Publish Your Interactive Form: Once you're satisfied with your interactive form, upload your HTML, CSS, and JavaScript files to your hosting service to share it online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
script.js
and link it to your HTML document. Add JavaScript to handle form validation and user feedback.document.getElementById('signupForm').addEventListener('submit', function(event) {
event.preventDefault();
const username = document.getElementById('username').value;
const email = document.getElementById('email').value;
const password = document.getElementById('password').value;
const country = document.getElementById('country').value;
const gender = document.querySelector('input[name="gender"]:checked');
const terms = document.querySelector('input[name="terms"]').checked;
if (!username || !email || !password || !country || !gender || !terms) {
alert('Please fill out all fields correctly.');
return;
}
alert('Form submitted successfully!');
// Add further processing here (e.g., send data to server)
});
7. Test the Form: Save your interactive_form.html, styles.css, and script.js
files. Open the HTML file in a web browser and test the form by filling it out and submitting it. Ensure that the validation works as expected.8. Enhance the Form: Improve the form by adding more interactive elements like date pickers, file uploads, or additional validation rules. Customize the styling further to match your design preferences.
9. Resources:
- [MDN Web Docs - Form Validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)
- [W3Schools - HTML Form Elements](https://www.w3schools.com/html/html_form_elements.asp)
- [JavaScript Form Validation](https://www.smashingmagazine.com/2011/11/client-side-form-validation-with-html5/)
10. Publish Your Interactive Form: Once you're satisfied with your interactive form, upload your HTML, CSS, and JavaScript files to your hosting service to share it online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
👍15❤4
21 Days Web Development Project Plan
Day 18: Image Slider
1. Understand Image Sliders: An image slider allows users to view multiple images in a slideshow format, often with navigation controls for moving between slides.
2. Set Up Your Project: Open your text editor and create a new file named
3. Set Up the Structure: Add the basic structure of an HTML document, including the
4. Create the Slider Layout: Inside the
5. Add Basic CSS Styling: Create a new file named
6. Add JavaScript for Slider Functionality: Create a new file named
7. Test the Slider: Save your
8. Enhance the Slider: Improve the slider by adding more images, autoplay functionality, and additional navigation controls like dots for each slide. Customize the styling further to match your design preferences.
9. Resources:
- W3Schools - How TO Slideshow
- MDN Web Docs - HTML img Element
- CSS Tricks - AnythingSlider
10. Publish Your Image Slider: Once you're satisfied with your image slider, upload your HTML, CSS, and JavaScript files to your hosting service to share it online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
Day 18: Image Slider
1. Understand Image Sliders: An image slider allows users to view multiple images in a slideshow format, often with navigation controls for moving between slides.
2. Set Up Your Project: Open your text editor and create a new file named
image_slider.html
.3. Set Up the Structure: Add the basic structure of an HTML document, including the
<!DOCTYPE html>
declaration, <html>
, <head>
, and <body>
tags.4. Create the Slider Layout: Inside the
<body>
tag, create a div to contain the slider images and navigation buttons.<!DOCTYPE html>
<html>
<head>
<title>Image Slider</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="slider">
<div class="slides">
<div class="slide"><img src="https://via.placeholder.com/800x400" alt="Slide 1"></div>
<div class="slide"><img src="https://via.placeholder.com/800x400" alt="Slide 2"></div>
<div class="slide"><img src="https://via.placeholder.com/800x400" alt="Slide 3"></div>
<div class="slide"><img src="https://via.placeholder.com/800x400" alt="Slide 4"></div>
</div>
<a class="prev" onclick="plusSlides(-1)">❮</a>
<a class="next" onclick="plusSlides(1)">❯</a>
</div>
<script src="script.js"></script>
</body>
</html>
5. Add Basic CSS Styling: Create a new file named
styles.css
and link it to your HTML document. Add styles to make the slider visually appealing and functional.body {
font-family: Arial, sans-serif;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f4f4f4;
}
.slider {
position: relative;
width: 80%;
max-width: 800px;
}
.slides {
display: flex;
overflow: hidden;
width: 100%;
}
.slide {
min-width: 100%;
transition: 0.5s;
}
.slide img {
width: 100%;
display: block;
}
.prev, .next {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: rgba(0, 0, 0, 0.5);
color: white;
padding: 10px;
cursor: pointer;
border-radius: 50%;
user-select: none;
}
.prev {
left: 10px;
}
.next {
right: 10px;
}
6. Add JavaScript for Slider Functionality: Create a new file named
script.js
and link it to your HTML document. Add JavaScript to handle the sliding of images.let slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function showSlides(n) {
let slides = document.getElementsByClassName("slide");
if (n > slides.length) { slideIndex = 1 }
if (n < 1) { slideIndex = slides.length }
for (let i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slides[slideIndex - 1].style.display = "block";
}
7. Test the Slider: Save your
image_slider.html
, styles.css
, and script.js
files. Open the HTML file in a web browser and test the slider by clicking the navigation arrows. Ensure that the images slide correctly.8. Enhance the Slider: Improve the slider by adding more images, autoplay functionality, and additional navigation controls like dots for each slide. Customize the styling further to match your design preferences.
9. Resources:
- W3Schools - How TO Slideshow
- MDN Web Docs - HTML img Element
- CSS Tricks - AnythingSlider
10. Publish Your Image Slider: Once you're satisfied with your image slider, upload your HTML, CSS, and JavaScript files to your hosting service to share it online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
👍18❤9🤔1
21 Days Web Development Project Plan
Day 19: CSS Animations
1. Understand CSS Animations: CSS animations allow you to animate the properties of HTML elements, creating dynamic and interactive web experiences.
2. Set Up Your Project: Open your text editor and create a new file named
3. Set Up the Structure: Add the basic structure of an HTML document, including the
4. Create the Animation Elements: Inside the
5. Add Basic CSS Styling: Create a new file named
6. Create CSS Animations: Add keyframes and animation properties to animate the box and text.
7. Test the Animations: Save your
8. Enhance the Animations: Experiment with different animation properties, keyframes, and timing functions. Try animating other properties like size, position, and rotation to create more complex animations.
9. Resources:
- [MDN Web Docs - Using CSS Animations](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Animations/Using_CSS_animations)
- [W3Schools - CSS Animations](https://www.w3schools.com/css/css3_animations.asp)
- [CSS Tricks - Animations](https://css-tricks.com/almanac/properties/a/animation/)
10. Publish Your CSS Animations: Once you're satisfied with your animations, upload your HTML and CSS files to your hosting service to share them online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
Day 19: CSS Animations
1. Understand CSS Animations: CSS animations allow you to animate the properties of HTML elements, creating dynamic and interactive web experiences.
2. Set Up Your Project: Open your text editor and create a new file named
css_animations.html
.3. Set Up the Structure: Add the basic structure of an HTML document, including the
<!DOCTYPE html>
declaration, <html>
, <head>
, and <body>
tags.4. Create the Animation Elements: Inside the
<body>
tag, create elements that you will animate, such as a box and some text.<!DOCTYPE html>
<html>
<head>
<title>CSS Animations</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="animation-container">
<div class="box"></div>
<h1 class="animated-text">CSS Animations are Cool!</h1>
</div>
</body>
</html>
5. Add Basic CSS Styling: Create a new file named
styles.css
and link it to your HTML document. Add styles for the layout and basic appearance of your elements.body {
font-family: Arial, sans-serif;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f4f4f4;
}
.animation-container {
text-align: center;
}
.box {
width: 100px;
height: 100px;
background-color: #4CAF50;
margin-bottom: 20px;
}
.animated-text {
font-size: 2em;
color: #333;
}
6. Create CSS Animations: Add keyframes and animation properties to animate the box and text.
/* Box Animation */
@keyframes moveBox {
0% {
transform: translateX(0);
}
50% {
transform: translateX(200px);
background-color: #FF6347;
}
100% {
transform: translateX(0);
background-color: #4CAF50;
}
}
.box {
animation: moveBox 4s infinite;
}
/* Text Animation */
@keyframes fadeInOut {
0%, 100% {
opacity: 0;
}
50% {
opacity: 1;
}
}
.animated-text {
animation: fadeInOut 6s infinite;
}
7. Test the Animations: Save your
css_animations.html
and styles.css
files. Open the HTML file in a web browser to see the animations in action. The box should move horizontally and change color, while the text fades in and out.8. Enhance the Animations: Experiment with different animation properties, keyframes, and timing functions. Try animating other properties like size, position, and rotation to create more complex animations.
9. Resources:
- [MDN Web Docs - Using CSS Animations](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Animations/Using_CSS_animations)
- [W3Schools - CSS Animations](https://www.w3schools.com/css/css3_animations.asp)
- [CSS Tricks - Animations](https://css-tricks.com/almanac/properties/a/animation/)
10. Publish Your CSS Animations: Once you're satisfied with your animations, upload your HTML and CSS files to your hosting service to share them online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
👍16❤6🥰1😁1
21 Days Web Development Project Plan
Day 20: Responsive Navigation
1. Understand Responsive Navigation: A responsive navigation menu adapts to various screen sizes, ensuring a good user experience on both desktop and mobile devices.
2. Set Up Your Project: Open your text editor and create a new file named
3. Set Up the Structure: Add the basic structure of an HTML document, including the
4. Create the Navigation Menu: Inside the
5. Add Basic CSS Styling: Create a new file named
6. Add JavaScript for Menu Toggle: Create a new file named
7. Test the Navigation: Save your
8. Enhance the Navigation: Improve the navigation by adding dropdown menus, additional styling, and transitions for smoother animations. Customize the layout further to match your design preferences.
9. Resources:
- MDN Web Docs - Responsive Design
- W3Schools - How TO Responsive Top Navigation
- CSS Tricks - Responsive Design
10. Publish Your Responsive Navigation: Once you're satisfied with your responsive navigation, upload your HTML, CSS, and JavaScript files to your hosting service to share it online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
Day 20: Responsive Navigation
1. Understand Responsive Navigation: A responsive navigation menu adapts to various screen sizes, ensuring a good user experience on both desktop and mobile devices.
2. Set Up Your Project: Open your text editor and create a new file named
responsive_navigation.html
.3. Set Up the Structure: Add the basic structure of an HTML document, including the
<!DOCTYPE html>
declaration, <html>
, <head>
, and <body>
tags.4. Create the Navigation Menu: Inside the
<body>
tag, create a navigation bar with a list of links. Add a button for toggling the menu on smaller screens.<!DOCTYPE html>
<html>
<head>
<title>Responsive Navigation</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<nav class="navbar">
<div class="navbar-brand">MyWebsite</div>
<button class="navbar-toggle" id="navbarToggle">☰</button>
<ul class="navbar-menu" id="navbarMenu">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<script src="script.js"></script>
</body>
</html>
5. Add Basic CSS Styling: Create a new file named
styles.css
and link it to your HTML document. Add styles for the layout and appearance of your navigation bar.body {
font-family: Arial, sans-serif;
margin: 0;
background-color: #f4f4f4;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #333;
padding: 10px;
color: white;
}
.navbar-brand {
font-size: 1.5em;
}
.navbar-toggle {
display: none;
background-color: #333;
color: white;
border: none;
font-size: 1.5em;
cursor: pointer;
}
.navbar-menu {
list-style: none;
display: flex;
margin: 0;
padding: 0;
}
.navbar-menu li {
margin: 0 10px;
}
.navbar-menu a {
color: white;
text-decoration: none;
padding: 8px 16px;
display: block;
}
.navbar-menu a:hover {
background-color: #575757;
}
@media (max-width: 768px) {
.navbar-menu {
display: none;
flex-direction: column;
width: 100%;
}
.navbar-menu li {
margin: 0;
}
.navbar-toggle {
display: block;
}
.navbar-menu.active {
display: flex;
}
}
6. Add JavaScript for Menu Toggle: Create a new file named
script.js
and link it to your HTML document. Add JavaScript to handle the menu toggle on smaller screens.document.getElementById('navbarToggle').addEventListener('click', function() {
const menu = document.getElementById('navbarMenu');
menu.classList.toggle('active');
});
7. Test the Navigation: Save your
responsive_navigation.html
, styles.css
, and script.js
files. Open the HTML file in a web browser and resize the browser window to see how the navigation adapts. Click the toggle button on smaller screens to ensure the menu opens and closes correctly.8. Enhance the Navigation: Improve the navigation by adding dropdown menus, additional styling, and transitions for smoother animations. Customize the layout further to match your design preferences.
9. Resources:
- MDN Web Docs - Responsive Design
- W3Schools - How TO Responsive Top Navigation
- CSS Tricks - Responsive Design
10. Publish Your Responsive Navigation: Once you're satisfied with your responsive navigation, upload your HTML, CSS, and JavaScript files to your hosting service to share it online.
Web Development Best Resources: https://topmate.io/coding/930165
Share with credits: https://t.iss.one/webdevcoursefree
ENJOY LEARNING 👍👍
👍11❤8😁1🤔1
👍31👏8