Exp 2
Exp 2
– 2
Program Execution/
formation/ Timely
Viva Experiment Sign with
correction/ Submission
(03) Total (10) Date
ethical practices (01)
(06)
Experiment No. 2
2.1 Aim:- Write a program to demonstrate the appropriate CSS tags to format data on a
webpage(SyntaxInclusion,Color,Background,Fonts,Tables,lists,CSS3selectors,Pseudoclasses,
Pseudo Elements).
2.3 Learning Objectives: To learn the JavaScript functionality to web pages using CSS tags
CSS Basics
2.6 Procedure:
● Open index.html.
● Add basic HTML structure including <!DOCTYPE html>, <html>, <head>, and
<body>.
● Include essential tags such as headings, paragraphs, lists, tables, and links.
● Open styles.css.
● Write CSS rules to style different HTML elements, including setting colors,
backgrounds, fonts, tables, lists, and more.
Apply Pseudo-elements:
● Use pseudo-elements like:: before and ::after to add content or styles before or after
elements.
2.7 Program and Output:
Code of resume:
Output:
Code of hospital registration form:
Output:
2.8 Conclusion:
Hence, we have understood how to demonstrate the appropriate CSS tags to format data on a webpage through
a program.
2.9 Questions:
MCQ 1:What is the purpose of using media queries in responsive web design?
Correct answer: A
MCQ 2:Which unit is commonly used to create fluid layouts in responsive web design?
A. Pixels (px)
B. Inches (in)
C. Percentages (%)
D. Points (pt)
Correct answer: C
A. width: 100%;
B. height: auto;
C. max-width: 100%;
Correct answer: D
MCQ 4:What does the viewport meta tag do in responsive web design?
Correct answer: B
MCQ 5: Which CSS framework is widely used for creating responsive web designs?
A. Django
B. Bootstrap
C. Flask
D. React
Correct answer: B