Skip to content
Youths Forum Youths Forum Youths Forum

Tech Blogs & Programming Tutorials

Youths Forum Youths Forum Youths Forum

Tech Blogs & Programming Tutorials

  • Blog
  • News
  • Programming
    • PHP
    • JavaScript
    • JQuery
    • CSS
    • HTML
    • API
  • Stock Market Live
  • Automobiles
    • Cars
  • Gadgets
    • Phones
    • Android Phones

Categories

  • Automobiles (12)
    • Cars (7)
  • Blog (103)
    • Poems (2)
    • Space (2)
  • Command (2)
  • Education (2)
  • Entertainment (4)
  • Gadgets (9)
    • Phones (8)
      • Android Phones (4)
  • HTML Templates (11)
  • IT Training Institutes (1)
  • Lifestyle (4)
  • News (51)
  • Others (23)
  • Programming (296)
    • API (16)
    • CSS (83)
    • Database (4)
    • Hosting (1)
    • HTML (37)
    • JavaScript (117)
      • JQuery (27)
      • ReactJS (7)
    • PHP (116)
  • Python (3)
  • recipes (1)
  • SEE Result (1)
  • Server (3)
  • Blog
  • News
  • Programming
    • PHP
    • JavaScript
    • JQuery
    • CSS
    • HTML
    • API
  • Stock Market Live
  • Automobiles
    • Cars
  • Gadgets
    • Phones
    • Android Phones
Close

Search

facebook login page using HTML and CSS
CSSBlogHTML

Building Facebook Login Page using HTML and CSS

By Santoshi Gupta
August 16, 2024 2 Min Read
0

Building Facebook Login Page using HTML and CSS

Table of Contents

  • Building Facebook Login Page using HTML and CSS
    • Steps for building Facebook Login Page using HTML and CSS
      • Step 1: HTML Code
      • Step 2: CSS Code
    • Final Thoughts

This article is for beginners. Those individuals who are learning the basics of web development, they can elevate their skills in HTML and CSS with this simple basic project. Creating a Facebook login page with HTML and CSS is simple and yet you will learn the use of tag.

In this article, we’ll learn different HTML tags like, forms, inputs, and links. Also, we’ll learn the CSS properties.

Follow this video for complete guidance :

https://www.youtube.com/watch?v=iE6ENVp2XDo

Let’s get hands on this project.

Steps for building Facebook Login Page using HTML and CSS

Step 1: HTML Code

Add the given HTML code inside your .html file.
Here, we’ll create two “div” class. One div will contain the logo of facebook and another div will contain the Login form.

<!DOCTYPE html>
<html>
<head>
	<title>Facebook</title>
</head>
<link rel="stylesheet" type="text/css" href="style.css">
<body>
	<div class="box1">
		<div class="logo">
			<img src="facebook.png" width="301.06" height="106">
			<div class="text">Connect with friends and the world around you on Facebook.
</div>
<div class="box2">
	<form>
		<div class="user">
		<input type="text" name="Email" maxlength="50" placeholder="Email or Phone number"><br>		<br>
		<input type="password" name="password" maxlength="50" placeholder="Enter password"><br><br>
		<input type="submit" value="Log In">
		<br><br>
		<p><a href="#">Forget Pasword?</p>
	</div>
	</form>
</div>
</div>
	</div>
</body>
</html>
You may also like our content on Color generator using HTML, CSS & JS.

Step 2: CSS Code

Add the given CSS code to style your login form.

.box1{
	width: 788px;
	height: 536px;
	background-color: white;
	padding-top: 20px;
	padding-bottom: 164px;
}
.logo{
	text-align: center;
}
.text{
	font-size: 24px;
	font-family: sans-serif;
}
.box2{
	width: 396px;
	height: 400px;
	background-color: white;
	margin-left: auto;
	margin-right: auto;
	margin-top: 40px;
	box-shadow: 0 4px 10px rgb(0 0 0 / 20%), 0 10px 18px rgb(0 0 0 / 20%);
	padding-top: 20px;

}

.user input[type="text"], input[type="password"]{
	width: 90%;
	height: 50px;
	outline: none;
	border: 1px solid;
	border-color:#d3d3d3;
	border-radius: 5px;
	background: transparent;
}
.user input[placeholder="Email or Phone number"], input[placeholder="Enter password"]{
	font-family: sans-serif;
	font-size: 17px;
	padding-left: 10px;
}
.user input[type="submit"]{
	width: 93%;
	height: 50px;
	border:none;
	background: #1877f2;
	border-radius: 5px;
	color: #fff;
	font-size: 20px;
	font-family: sans-serif;
	font-weight: bold;
}
.user input[type="submit"]: hover{
	cursor: pointer;
}
.user a{
	text-decoration: none;
	color: #1877f2;
	font-family: sans-serif;
}

Final Thoughts

By following these steps, you’ve created a Facebook login page using HTML and CSS. This project is a way to practice your web development skills and gain a understanding of how HTML and CSS work together to create user interfaces.
You can further enhance this project by adding JavaScript for form validation, integrating with a backend system for authentication, or exploring other CSS techniques to improve the design. Keep experimenting and learning—this is just the beginning of what you can create with web technologies!

Happy Learning!

Follow us on Facebook for more contents.

Tags:

facebook login page using HTML and CSSyouthsforum
Author

Santoshi Gupta

Follow Me
Other Articles
Cybersecurity
Previous

Key Insights and Bold Strategies from the npCert Stakeholder Consultation on Cybersecurity

Owl Carousel
Next

Creating a simple carousel with an Owl Carousel using HTML,CSS and JQuery

No Comment! Be the first one.

Leave a Reply

Your email address will not be published. Required fields are marked *

FIFA World Cup 2026 Predict and Win by SportsGuff

Recent Posts

  • Unpacking Nepal’s Record Rs 2.12 Trillion Budget and What It Means for You
  • How to Write a Strong Scholarship Application: The Ultimate Step-by-Step Guide
  • How to Prepare for Exams Without Stress: The Ultimate Science-Backed Guide
  • Chiranjibi Adhikari Appointed Acting President of CAN Federation
  • How to Design a Student Marksheet Using HTML and CSS

Tags

adsense ai animate animation animation using HTML and CSS API blog calculator chatgpt Cryptocurrency CSS css animation design Email Facebook featured filemanager file manager free template google htaccess HTML image Instagram interview javascript JQuery jquery ui NADA AutoShow NADA Auto Show 2024 password PHP Progressive Web App PWA QR random react reactjs Rotate travel Twitter vpn youthforum youthsforum youtube

About Us

At Youths Forum, we are passionate about sharing knowledge that empowers students, educators, professionals, and technology enthusiasts.

Our Mission

Our mission is simple: to make technology and education accessible, understandable, and beneficial for everyone. We strive to create content that helps our readers learn new skills and stay updated with industry developments.

RSS RSS

  • Unpacking Nepal’s Record Rs 2.12 Trillion Budget and What It Means for You Admin
  • How to Write a Strong Scholarship Application: The Ultimate Step-by-Step Guide Admin
  • How to Prepare for Exams Without Stress: The Ultimate Science-Backed Guide Admin

Quick Links

  • Stock Market Live
  • Parliament Election 2082
Copyright 2026 — Youths Forum. All rights reserved. Blogsy WordPress Theme