CSE 301 - Mid - Assignment
CSE 301 - Mid - Assignment
CSE 301 - Mid - Assignment
1. Differentiate between ID and class. What is the use of box model in CSS? Explain
both with proper examples. [CO1] [ 2+3 = 5 Marks]
2. Assume you are given an HTML page to design using CSS. Now perform the
following tasks based on the HTML page: [CO2] [5 Marks]
i. Select and color with red only those <strong> tag elements that are inside
a class named “class01” and then nested within a paragraph. The rule
should not color any other <strong> tags.
ii. Assume any paragraph that comes first after an image that is considered to
be its caption in the given HTML page. Select all those captions only and
change their font style to italic.
iii. Select any <span> element that comes anywhere inside the class named
“class01” and color them with blue.
iv. Select only those elements that has a class name “class03” and nested
within a div that has an id “uniqueDiv”.
v. Write the required CSS selector to select only the bolded element from
HTML code fragment given below:
MZC, AC 183 (DA+DB)
<div id="header">
<h1>Hello World</h1>
</div>
<div id="content">
<h1>Hello World</h1>
<p>Paragraph 1</p>
</div>
3. Create a personal portfolio website using HTML and CSS maintaining the
following conditions:[CO3] [5 Marks]
Home Page-
- It must have 3 horizontal navigation bars in home page– Home, About,
Contact
- The background of home page should have your favorite color or your
favorite image.
5 Excellent All the HTML and CSS properties like HTML table, form,
CSS margin, padding, button etc. are implemented
properly to create Home, about and contact page.
4 Very Good All the HTML and CSS properties are implemented except
the "Send mail" button that prompts to your email
address.
3 Good Navigation bar style is not attractive, "Send mail" button is
not showing properly to prompt to your email address.
2 Average Navigation bar style is not attractive, "Send mail" button is
not showing properly to prompt to your email address.
Also, margin, Padding, alignment is not implemented
properly.
1 Poor Navigation bar, button, margin, padding, alignment,
HTML form no one is implemented properly, only HTML
table is implemented or webpage design is completely
same with another student.