← Back to practice projects
HTML & CSSEasy
7 viewsBuild a User Profile Card
In this project, you'll create a static user profile card using HTML and CSS. This card will display a user's avatar, name, title, and a short bio or description. It's a great way to practice fundamental HTML structure, basic CSS styling, and introduces simple responsiveness.
Requirements:
- HTML Structure:
- The card should be contained within a single
divelement. - Include an
imgelement for the user's avatar. - Use an
h2for the user's name. - Use a
pelement for the user's title/job role. - Include another
pelement for a short bio or description.
- The card should be contained within a single
- CSS Styling:
- The card should have a distinct background color and a subtle
box-shadoworborder. - Center the entire card horizontally on the page.
- Apply appropriate
paddingandmarginto the card and its internal elements for good visual spacing. - Style the user's avatar to be circular (using
border-radius) and a fixed size (e.g., 120px by 120px). - Choose appropriate
font-family,font-size, andcolorfor the name, title, and bio. - Ensure text is readable and well-aligned within the card (e.g., centered).
- The card should have a distinct background color and a subtle
- Responsiveness:
- The card should have a
max-width(e.g., 350px) to prevent it from becoming too wide on large screens. - Ensure the card and its content scale down gracefully on smaller screens without horizontal scrollbars, utilizing
margin: autofor centering. - Text should wrap naturally.
- The card should have a
Submission Includes:
- An
index.htmlfile containing the project's HTML structure. - A
style.cssfile linked toindex.html, containing all the project's CSS. - Any image files used for the avatar (or use a placeholder image URL).
Submit your code
The AI reads your code and gives you a score and feedback — no login required.
Upload your project as a .zip file
Only one file is accepted — if your project has multiple files (e.g. index.html + style.css + script.js), zip them together first and upload that.