0% found this document useful (0 votes)
11 views50 pages

HTML

Uploaded by

ahmedjhuar81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views50 pages

HTML

Uploaded by

ahmedjhuar81
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 50

That's

portfolioa great
page idea,
is an Ahmed! Atool
essential
for showcasing
especially when your
it skills,to front-
comes
end web development.
step-by-step approach Here's
to help a
you
create a standout
using HTML and CSS: portfolio page
1. Plan the Structure of Your
Portfolio
Header:
(e.g., Include your
"Front-End Web name, title
Developer"),
(links to and like
sections a navigation
About Me, bar
Projects, Skills, Contact).
About
yourself Me Section:
briefly. Introduce
Mention your
background,
you're interests,
passionate aboutand why
front-end
development.
Skills
skills Section:CSS,
(HTML, List your front-end
etc.). You can
include
progress bars or skill
visually represent yourratings to
expertise.
Projects
best work.Section:
For Showcase
each project, your
provide
the live a short description,
project, and a link to
screenshot
or a demo.
GitHub link Ifwhere
possible,
the add ais
code
stored.
Contact
potential Section:
clients Add
or a way forto
employers
reach
email you. Thissocial
address, could media
includelinks,
an
or a contact form.
Footer:
social You can
profiles add linksGitHub)
(LinkedIn, to your
or other relevant sites.
2. Focus on Clean Design
Simple Layout: Keep it simple and
minimalistic.
complicating Avoid
the over- Use clear
design.
headings,
a consistent easy-to-read
color scheme. fonts, and
Responsive
portfolio worksDesign:
well Ensure
on both your
desktop
queries and mobile. Usethemedia
for different screen sizes. layout
in CSS to adapt
White
page. Space:
Give Don’t overcrowd
elements room to the
breathe,
visitors tomaking
navigateit easier
and for
digest
content.
3. Use HTML for Structure
Use semantic
<header>, HTML tags
<section>, (like
<footer>,
<article>)
properly. to structure
This makes yourpage
your content
more accessible and SEO-friendly.
Example for a basic structure:
<header>
<h1>Your Name</h1>
<nav>
<ul>
<li><a href="#about">About
Me</a></li>
<li><a
href="#projects">Projects</a></li>
<li><a
href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<section id="about">
<h2>About Me</h2>
<p>Introduce
</section> yourself here.</p>
<section id="projects">
<h2>Projects</h2>
<div class="project">
<h3>Project 1</h3>
<p>Description</p>
</div>
</section>
<footer>
<p>Contact: your-
[email protected]</p>
</footer>
4. Use CSS for Styling
Focus
visuallyon making the
appealing design
using CSS.
Experiment
grid for with
layout. flexbox
Use hover or CSS
effects
and transitions
interactions to make
more the
dynamic.
Example for styling:
body {
font-family:
margin: 0; Arial, sans-serif;
padding: 0;
background-color: #f4f4f4;
}
header {
background-color: #333;
color:
padding:white;
20px;
} text-align: center;
nav ul {
list-style-type: none;
} padding: 0;
nav ul li { inline;
display:
} margin: 0 10px;
nav ul liwhite;
color: a{
} text-decoration: none;
section
padding:{ 20px;
}
.project {
background-color: white;
padding:
margin: 10px;
10px 00;4px 6px rgba(0,
0,box-shadow:
} 0, 0.1);
5. Showcase Your Best Work
Include 3-5 projects
demonstrate your that You can
skills.
use simple
you've donemockups or Ifwork
for others. you don't
have
can real-world
create projects
personal yet, you
projects (e.g.,
a personal blog, portfolio,
small interactive web app). or a
Remember
link and the to include
source codea live
(viademo
GitHub) for each project.
6. Polish with Animations and
Interactivity
Consider
(e.g., adding
fade-ins or small animations
slide-ups) to
make your
engaging. portfolio more
JavaScriptCSS animations
can help or
with this.
Example CSS animation:
.project {
animation: fadeIn 1s ease-in;
}
@keyframes
from { fadeIn {
}toopacity:
{
0;
} opacity: 1;
}
7. Optimize for Performance
Compress images to improve
page load speed.
Minimize
files usingyour CSS
tools like and
CSS HTML
Minifier
or HTML Minifier.
8. Test and Iterate
After building
feedback fromyour portfolio,
others. Test itget
onto
different browsers and devices
ensure it looks good everywhere.
Regularly
projects asupdate
you it with
gain morenew
experience.
Bonus Tips:
Keep
Don’t It Simple and Focused:
overcomplicate things.
Focus on showcasing
clearly and professionally. your skills
Keep
this It Professional:
portfolio will Remember,
represent you, so
ensure it’s polished
your skills accurately. and reflects
By
havefollowing
a this approach, you'll
beautiful
showcase and functional
your HTML portfolio
and CSS to
skills!
any moreLet me knowhelp.
specific if you need

Sure, Ahmed!responsive
professional, Here’s a simple, yet
portfolio
webpage
This design using HTML
adapts welland
to CSS.
various
screen
tablet, sizes,
and such as
desktop. mobile,
I've kept the
design clean and visually
appealing with a modern touch.
HTML (index.html):
<!DOCTYPE
<html html>
lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width,
initial-
scale=1.0">
<title>Ahmed's Portfolio</title>
<link rel="stylesheet"
href="style.css">
</head>
<body>
<!-- Header -->
<header>
<div class="container">
<h1>Ahmed Jhor Nure</h1>
<p>Front-End
Developer</p> Web
<nav>
<ul>
<li><a href="#about">About
Me</a></li>
<li><a
href="#projects">Projects</a></li>
<li><a
href="#contact">Contact</a></li>
</ul>
</nav>
</div>
</header>
<!-- Aboutid="about">
<section Section -->
<div class="container">
<h2>About Me</h2>
<p>Hello,
passionate I'm Ahmed,
Front-End Web a
Developer.
CSS, and I specialize
JavaScript toinbuild
HTML,
beautiful,
functional responsive,
websites. I and creating
love
intuitive
always user experiences
learning new and
technologies.</p>
</div>
</section>
<!-- Projects
<section Section -->
id="projects">
<div class="container">
<h2>My Projects</h2>
<div class="project-card">
<img src="https://
via.placeholder.com/300"
alt="Project 1">
<div class="project-info">
<h3>Project 1</h3> of the
first <p>A
project. brief
It's description
a responsive
website
CSS.</p> built with HTML and
<a href="#" Project</a>
class="btn">View
</div>
</div>
<div
<imgclass="project-card">
src="https://via.placeholder.com/3
00" alt="Project 2">
<div class="project-info">
<h3>Project 2</h3> of the
second <p>A brief
project. description
It'sHTML,
an interactive
web app built
and JavaScript.</p>with CSS,
<a href="#" Project</a>
class="btn">View
</div>
</div>
</div>
</section>
<!-- Contact
<section Section -->
id="contact">
<div class="container">
<h2>Contact Me</h2>
<p>If
feel <a
free you'd
to like
reach to get in touch,
out!</p>
href="mailto:your-
[email protected]"
class="btn">Email
</div> Me</a>
</section>
<!-- Footer -->
<footer>
<div
<p>©class="container">
2025 Ahmed Jhor Nurse
| Front-End
</div> Developer</p>
</footer>
</body>
</html>
CSS
/* (style.css):
*{margin:*/0;
Reset
padding:
box-sizing:0; border-box;
}
/*
bodyGeneral
{ Styles */
font-family:
line-height: Arial,
1.6; sans-serif;
} background-color: #f4f4f4;
.container
width: 90%;{
margin:
max-width:0 auto;
1200px;
}
/* Header
header { */
background-color:
color: #fff; #333;
padding:
text-align:20px 0;
center;
}
header h1 {2.5rem;
font-size:
} margin-bottom: 10px;
header p { 1.2rem;
font-size:
} margin-bottom: 20px;
header nav ul {
list-style:
padding: none;
0;
}
header
display:nav ul li {
inline;
} margin: 0 15px;
header
color: nav ul li a {
#fff;
text-decoration:
font-size: 1.1rem; none;
}
/* About{ Section */
#about
background-color:
padding: 40px 0; #fff;
}
#about h2 {
text-align:
font-size: center;
2rem;
} margin-bottom: 20px;
#about p { center;
text-align:
font-size:
color: 1.1rem;
#555;
}
/* Projects{ Section */
#projects
padding: 40px 0; #f9f9f9;
background-color:
}
#projects h2center;
text-align: {
font-size: 2rem; 30px;
margin-bottom:
}
.project-card
display: flex;{
justify-content:
margin-bottom: space-between;
30px;
background-color:
box-shadow: 0 4px#fff;
6px rgba(0,
0,border-radius:
0, 0.1); 8px;
}
.project-card
width: 300px; img {
height: 200px;
object-fit: cover;
border-top-left-radius:
border-bottom-left-radius: 8px;8px;
}
.project-info
padding: {
20px;
} flex-grow: 1;
.project-info
font-size: h3 {
1.5rem;
} margin-bottom: 10px;
.project-info
font-size: p{
1rem;
margin-bottom:
color: #555; 15px;
}
.project-info
display: .btn {
inline-block;
padding: 10px 20px;
background-color: #333;
color: #fff;
text-decoration: none;
border-radius: 5px;
} font-weight: bold;
.project-info .btn:hover
background-color: {
#555;
}
/* Contact{ Section */
#contact
padding:
text-align:40px 0;
center;
}
#contact h22rem;
font-size: {
} margin-bottom: 20px;
#contact p 1.2rem;
font-size: {
color: #555;
margin-bottom: 20px;
}
#contact .btn {
padding: 10px 20px;
background-color: #333;
color: #fff;
text-decoration: none;
border-radius: 5px;
} font-weight: bold;
#contact .btn:hover {#555;
background-color:
}
/* Footer
footer { */
background-color:
color: #fff; #333;
padding:
text-align: 20px 0;
center;
}
footer p { 1rem;
font-size:
}
/* Responsive
@media Design768px)
(max-width: */ {
.project-card {
} flex-direction: column;
.project-card
width: 100%; img {
} height: auto;
header h1 {2rem;
font-size:
}
header p { 1rem;
font-size:
}
header
display:nav ul li {
block;
} margin: 10px 0;
.container
width: {
95%;
}}
Explanation of Design:
1. Header: Includes
profession, your name,
with smooth links to sections.bar
and a navigation
2. About Section:
yourself, Briefyour
showcasing intropassion
about
for web development.
3.
is Projects Section:
displayed in a Each
card project
format, with
a
description
project. and a link to the
4. Contactbutton
to-action Section:
for A simpletocall-
visitors
email you.
5. Footer: Contains copyright
information.
Responsive Design:
This layout
tablet, adapts for
and desktop mobile,
screens.
On smaller
cards screens,
switch from a the layout
row projectto
a column layout for better
readability.
You can expand this design by
adding
more
as youprojects,
grow. skills, or animations
If you need any changes
customizations, feel free toor ask!
further
Sure! Here'sofa the
explanation line-by-line
the HTML and CSScode files:for both
HTML (index.html):
<!DOCTYPE html>
<html lang="en">
<!DOCTYPE
document type html>:
to beDeclares
HTML5. the
<html
HTML lang="en">:
document Starts
and the the
specifies
language as English (en).
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width,
initial-scale=1.0">
<title>Ahmed's Portfolio</title>
<link rel="stylesheet"
href="style.css">
</head>
<head>:
the page.Contains metadata for
<meta
Specifies charset="UTF-8">:
(UTF-8). the character encoding
<meta name="viewport"
content="width=device-width,
initial-scale=1.0">:
scaling for Ensures
responsive design proper
(for
mobile devices).
<title>Ahmed's
Sets the title of Portfolio</title>:
the webpage
(visible in the browser tab).
<link rel="stylesheet"
href="style.css">: Links the
external
webpage. CSS file to style the

<body>
<body>:
content ofContains the main
the webpage.
<header>
<div class="container">
<h1>Ahmed
<p>Front-End Jhor
Web Nurse</h1>
Developer</p>
<nav>
<ul>
<li><a href="#about">About
Me</a></li>
<li><a
href="#projects">Projects</a></li>
<li><a
href="#contact">Contact</a></li>
</ul>
</nav>
</div>
</header>
<header>:
of the page.Defines the top section
<div class="container">:
container div to center A content
the
and set the max-width.
<h1>: Your name
prominently as thedisplayed
header.
<p>: A brief description of your
profession.
<nav>: A navigation menu.
<ul>: An unordered list to contain
the links.
<li><a href="#about">About
Me</a></li>:
Me" section. A link to the "About
Similar links
"Contact" for "Projects" and
sections.

<section
<div id="about">
class="container">
<h2>About
<p>Hello, Me</h2>
I'm Ahmed, a
passionate Front-End
Developer...</p> Web
</div>
</section>
<section
"About id="about">:
Me" section, Defines
with a the
unique
id for navigation.
<h2>: The title of the section.
<p>: A brief paragraph about
yourself.
<section
<div id="projects">
class="container">
<h2>My
<div Projects</h2>
class="project-card">
<img
src="https://via.placeholder.com/3
00" <div
alt="Project 1">
class="project-info">
<h3>Project
<p>A brief 1</h3> of the
description
first project...</p>
<a href="#" class="btn">View
Project</a>
</div>
</div>
<!-- Repeat for other projects --
></div>
</section>
<section
"Projects" id="projects">:
section, The
showcasing
your work.
<div class="project-card">:
container for each individualA
project.
<img src="..."image
Placeholder alt="Project
for the 1">:
project.
<div class="project-info">:
Container for project details.
<h3>: Project title.
<p>: Short description of the
project.
<a href="#" class="btn">View
Project</a>: A buttonalinking to the
full project
placeholder). (currently
<section
<div id="contact">
class="container">
<h2>Contact
<p>If you'd Me</h2>
like to get in touch,
feel free to reach out!</p>
<a href="mailto:your-
[email protected]"
class="btn">Email Me</a>
</div>
</section>
<section
"Contact" id="contact">:
section where The
visitors
can reach out.
<a href="mailto:your-
[email protected]"
class="btn">Email
email link with a Me</a>: An
call-to-action
button.
<footer>
<div class="container">
<p>© 2025 Ahmed Jhor Nurse |
Front-End
</div> Developer</p>
</footer>
</body>
</html>
<footer>:
copyright Footer section for
information.
---
CSS (style.css):
/* {Reset */0;
* margin:
padding:
box-sizing:0; border-box;
}
*: Universal
default selector
styles for all to reset
elements,
ensuring
browsers.uniformity across
/*
bodyGeneral
{ Styles */
font-family:
line-height: Arial,
1.6; sans-serif;
} background-color: #f4f4f4;
body:
of the General
page. styles for the body
font-family:
sans-serif. Sets the font to Arial or
line-height:
readability. Improves text
background-color:
background for theLight
page.grey
.container
width: 90%;{
margin:
max-width:0 auto;
1200px;
}
.container:
content, A class
with 90% for centering
width, and a
max-width of 1200px.
header {
background-color: #333;
color: #fff;
padding: 20px 0;
} text-align: center;
header: The header section.
background-color:
background. Dark
color: White text.
padding: Padding for spacing.
text-align:
header. Centers text within the
header navnone;
list-style: ul {
} padding: 0;
header
points navpadding
and ul: Removes
from bullet
the
navigation list.
header nav
display: ul li {
inline;
} margin: 0 15px;
header
items nav ulinline
display li: Makes
and navigation
addsthem.
horizontal spacing between
header
color: nav ul li a {
#fff;
text-decoration:
font-size: 1.1rem; none;
}
header navlinks
navigation ul li a: Styles
with whitethe
color,
removes
font size. underlines, and sets the
#about,
padding:#projects,
40px 0; #contact {
}
#about,
vertical #projects,
padding for#contact:
spacing Adds
in
these sections.
.project-card
display: {
flex;
justify-content:
margin-bottom: space-between;
30px;
background-color:
box-shadow: 0 4px#fff;
6px rgba(0,
0,border-radius:
0, 0.1); 8px;
}
.project-card:
for each project. Defines the layout
display: flex: positioning.
side-by-side Flexbox layout for
justify-content:
Distributes space-between:
space evenly between elements.
box-shadow: Adds a subtle
shadow for depth.
border-radius: Rounded corners.
#projects
padding: .project-info
10px 20px; .btn {
background-color:
color: #fff; #333;
text-decoration:
border-radius: none;
5px;
} font-weight: bold;
.btn: Button style,
background color, with padding,
rounded
corners, and bold text.
@media (max-width:
.project-card { 768px) {
flex-direction: column;
}.project-card
width: 100%; img {
height: auto;
}header h1 {2rem;
font-size:
}}
@media
Defines (max-width:behavior
responsive 768px): for
screens
(typicallysmaller
tablets than 768px
and mobiles).
Changes
to a column. the project cards layout
Makes
adjusts images
text full-width and
sizes.

---
This code builds
responsive a clean,
portfolio page with
sections
contact. for
The about,
CSS projects,
ensures and
the
design adapts
improving user to mobile devices,
experience across
devices.
further Let me know
explanation or if
anyyou need
adjustments!
In the code
include any Ispecific
provided, I didn't
adjustments
to the the
when navigation
screen bar
size (navbar)
is reduced
to
can750px
help or
you smaller. However,
implement a I
responsive navbar
when the screen that will adjust
width
decreases.
To make theatnavigation
responsive 750px or bar more
below, we
can
a modify
horizontal the CSS
layout to switch
to a verticalfrom
one
menu or use a
forBelow hamburger-style
better is
usability oncan
mobile
devices.
adjust how you
screenthe navbar for smaller
sizes:
Modifications to the existing code:
1. HTML:
Icon Add a Hamburger Menu
for Mobile:
Add
showna hamburger
when the icon towidth
screen be is
small.
make itWe'll later use
functional JavaScript to
if necessary.
<header>
<div class="container">
<h1>Ahmed
<p>Front-End Jhor
Web Nurse</h1>
Developer</p>
<nav>
<ul>
<li><a href="#about">About
Me</a></li>
<li><a
href="#projects">Projects</a></li>
<li><a
href="#contact">Contact</a></li>
</ul>
--> <!-- Hamburger Icon for mobile
<div class="hamburger-menu"
onclick="toggleMenu()">
<span></span>
<span></span>
<span></span>
</div>
</nav>
</div>
</header>
2. CSS: Style the Navbar for
Mobile:
We'll
sure update
the the turns
navbar CSS into
to make
a
vertical list and adds a
menu icon for smaller screens.hamburger
/* Style for Hamburger
.hamburger-menu { Menu */
display: none; column;
flex-direction:
} cursor: pointer;
.hamburger-menu
width: 25px; span {
height:
margin: 3px;
4px 0;
} background-color: #fff;
@media
header (max-width:
nav ul { 750px) {
display:
normal none; /* Hide the
navbar
*/ flex-direction: column;
align-items:
width: 100%; center;
} padding: 0;
header
width: nav
100%;ul li {
text-align:
margin: 10pxcenter;
0;
}
on/* small
Display hamburger
screens */ menu icon
.hamburger-menu
display: flex; {
position:
top: 20px; absolute;
} right: 20px;
/* When
the navbar menu
itemsis*/active, display
header nav.active
display: flex; ul {
}}
3.
onJavaScript:
Mobile: Toggle the Navbar
We needtoa toggle
function small JavaScript
theisnavbar
the hamburger icon clicked.when
function
const toggleMenu()
nav = {
document.querySelector('header
nav');
} nav.classList.toggle('active');
Explanation of Changes:
Hamburger
hamburger- Menu: Added a
menu
containsdivthree
insidespanthe nav tag that
elements to
create the hamburger
horizontal lines). icon (three
Media Query (@media (max-
width: 750px)):
At screen
below, we widths
hide of normal
the 750px or navbar
links
and (ul is set to display:
show the hamburger icon none)
instead.
We
stackuse
theflex-direction:
navbar itemscolumn to
vertically.
CSS for it's
default, hamburger-menu:
hidden. On By
smaller
screens,
and the it's displayed
three span with flex,
elements
represent
hamburgerthe lines in the
icon.
JavaScript
the hamburger (toggleMenu):
icon is Whenthe
clicked,
function
toggles
element, the active
which willclass
then on the nav
display
the ul items vertically.
Result:
When
smaller, the screen
the navbar size
williscollapse
750px or
into a hamburger
clicked, the links icon,
will and when
appear insize
a
vertical
is column. If the screen
willlarger
remainthan 750px, the
horizontal navbar
as before.
Let me know if you need further
adjustments!

You might also like