0% found this document useful (0 votes)
5 views2 pages

CSS Profile Card Project Guide

1st year web designing skillbuilders for parul university students.

Uploaded by

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

CSS Profile Card Project Guide

1st year web designing skillbuilders for parul university students.

Uploaded by

nixarif126
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

09

Parul University

09

9
80

80
28

28

32

32
03

03

G0
UG

UG

UG
Name: praveen tamaraselli Scan to verify results

U
25

25

25

25
Email: vykuntaraodhanalaxmi@[Link]
Roll no: 25UG032809
Phone: 7386690978
Branch: Parul University
Department: CYBER1_Batch 1
Batch: 2029
Degree: [Link] - Cyber
9

09

9
80

80

80
28
32

32

32
PIET_WebTechnology_Course
03
0

G0
UG

UG

UG

U
25

25

25

25
CSS_Basics_SkillBuilder3

Attempt : 2
Total Mark : 10
Marks Obtained : 7

Section 1 : HTML

1. Problem Statement: Styling a Profile Card with Borders and RGB


09

09

09
Backgrounds
80
28

28

28
32
03

03

03
0
UG

UG

UG

You are tasked with creating a simple web page that displays a personal UG
25

25

25

25
profile card using HTML and CSS. This exercise is meant to help you
practice applying CSS border styles and background colors using RGB
values.

Objective:
Demonstrate your understanding of CSS by styling an HTML structure
using:
Borders with custom width, color, and style Background colors using RGB
09

09

09

09

values Tag and class selectors Requirements:


28

28

28

28
03

03

03

03
UG

UG

UG

UG

HTML Structure: Create a container div with a class of profile-card. Inside


25

25

25

25
it, include: An <h2> element for the user’s name A <p> element for a short
09

09

9
80

80
28

28
description An <img> element for a profile picture CSS Styling: The profile-

32

32
03

03

G0
card should have: A solid border with width of 2px and a custom RGB color
UG

UG

UG

U
A background color using an RGB value (e.g., rgb(230, 240, 250)) Padding
25

25

25

25
and margin for visual spacing The <h2> should use a different RGB
background and a border-bottom The <img> should be styled with: A
border using RGB color A fixed width and height (e.g., 150x150px)
Constraints: Do not use inline styles Use only class and tag selectors Use
RGB values (not color names or HEX codes) for all color-related properties
Example Behavior:

The profile card should appear with a soft-colored background. The image
is visible, sized properly, and bordered. The card has spacing, and the
9

09

9
80

80

80
28

header looks distinct due to background/border. All color values are


32

32

32
03
0

G0
specified using the rgb(R, G, B) format
UG

UG

UG

U
25

25

25

25
OUTPUT:

</strong>
TO RUN THE PROJECT:
Open the terminal and follow the commands below.
nvm use 14 To set the node version as 14npm start To install the
09

09

09
packages and start the serverAnd click the port 8081 to view your webpage
80
28

28

28
32
03

03

03
0

TO RUN THE TESTCASES:


UG

UG

UG

UG
25

25

25

25
Click on Run Test Case button to run the testcases.

NOTE:
Ensure that you adhere to the provided information in the sample
screenshot in order to successfully meet the test [Link] testcase will
be passed only if the port 8081 is running.
Answer
09

09

09

09

Status : Partially correct Marks : 7/10


28

28

28

28
03

03

03

03
UG

UG

UG

UG
25

25

25

25

Common questions

Powered by AI

The recommended technique for spacing elements in the profile card design is the use of padding and margin properties, which help improve visual aesthetics by providing adequate space around the content and elements .

To ensure the correct display of the profile card according to the task's expectations, the card should have a soft-colored background, a properly sized and bordered image, and spacing through padding and margin. The header should be distinct with a unique background and border. Test cases should only pass if the port 8081 is running, indicating the server and environment setup is correct .

Providing a border for the <img> element in the profile card structure enhances the visual distinction and separation of the image from the rest of the card. Styling with RGB color for the border adds to the cohesive styling, maintaining the uniformity and visual appeal of the card's design .

The HTML structure for creating a profile card requires a container div with a class 'profile-card.' Inside it, an <h2> element for the user's name, a <p> element for a short description, and an <img> element for a profile picture should be included .

The constraints imposed on CSS styling include not using inline styles, using only class and tag selectors, and specifying all color-related properties using RGB values instead of color names or HEX codes .

The profile card should be styled with a solid border with a width of 2px and a custom RGB color, and a background color using an RGB value (e.g., rgb(230, 240, 250)). The <h2> element should have a different RGB background and a border-bottom. The <img> should be styled with an RGB-colored border and specified dimensions (150x150px). Padding and margin should be used to provide visual spacing, strictly utilizing class and tag selectors with RGB values for all color-related properties .

The instruction 'nvm use 14' is for setting the Node.js version to 14, ensuring compatibility of the project with the specified runtime environment. The command 'npm start' is used to install the necessary packages and start the server, which is required to view the webpage on port 8081 .

Successful completion of the test cases in this profile card project is determined by adherence to the sample screenshot details, running the port 8081, and correct implementation of CSS styles as per the RGB requirements and project constraints .

The use of RGB values for colors is emphasized to ensure precise color specification and uniformity in styling, as RGB allows for detailed control over color hues compared to general color names or HEX codes. This requirement aligns with the task constraints that prohibit other color formats .

The three key learning outcomes expected from completing the profile card project include enhancing skills in applying CSS to HTML structures using class and tag selectors, understanding and implementing RGB color values for styling, and managing project environments and test execution successfully through terminal commands .

You might also like