Unit3_WT
Unit3_WT
WEB TECHNOLOGY
Unit: 3
Web Technology
ACSE-0505
Rajat Kumar
Assistant Professor
B.Tech 5th Sem CSE Department
• Certificate of Recognition for role as Faculty in MOOCs Course Python/CSS from E & ICT Academy, IIT
Kanpur.
• Worked on Internet of things (IoT) technology under the topic Energy efficient technique for data aggregation
in M.Tech.
• Published paper in International journal of research in electronics and computer engineering (IJRECE) on
“Energy efficient technique for data aggregation in IoT” (April-June 2019).
• Area of Interest: FullStack Development, Information Retrieval and Machine Learning.
JavaScript Essentials: Introduction to Java Script , Java script Types , Var, Let
and Const Keywords, Operators in JS , Conditions Statements , Java Script
Loops, JS Popup Boxes , JS Events , JS Arrays, Working with Arrays, JS
Objects ,JS Functions , Using Java Script in Real time , Validation of Forms,
Arrow functions and default arguments, Template Strings, Strings methods,
Callback functions,
Object de-structuring, Spread and Rest Operator, Typescript fundamentals,
Typescript OOPs- Classes, Interfaces, Constructor etc. Decorator and Spread
Operator,
Difference == & ===, Asynchronous Programming in ES6, Promise
Constructor, Promise with Chain, Promise Race.
Text books:
1. Steven M. Schafer, “HTML, XHTML, and CSS Bible, 5ed”, Wiley India
2. Ian Pouncey, Richard York, “Beginning CSS: Cascading Style Sheets for Web
Design”, Wiley India
Sample Applications
Desktop GUI Applications
Mobile Applications
Enterprise Applications
Scientific Applications
Web-based Applications
Cloud-based Applications
Web servers and Application servers
Software Tools
• 1. Engineering knowledge:
• 2. Problem analysis:
• 3. Design/development of solutions:
• 4. Conduct investigations of complex problems:
• 5. Modern tool usage:
• 6. The engineer and society:
• 7. Environment and sustainability:
• 8. Ethics:
• 9. Individual and team work:
• 10. Communication:
• 11. Project management and finance:
• 12. Life-long learning
01/24/2025 Rajat Kumar ACSE0505 (Web Tech) Unit 3 16
CO-PO Mapping
Mapping of Course Outcomes and Program Outcomes:
• PSO1: Identify, analyze real world problems and design their ethical
solutions using artificial intelligence, robotics, virtual/augmented
reality, data analytics, block chain technology, and cloud computing.
PSO2:Design and develop the hardware sensor devices and related
interfacing software systems for solving complex engineering
problems.
PSO3:Understand inter-disciplinary computing techniques and to
apply them in the design of advanced computing.
PSO4: Conduct investigation of complex problems with the help of
technical, managerial, leadership qualities, and modern engineering
tools provided by industry-sponsored laboratories.
CO1 3 1 1 1
CO2 1 2 3 1
CO3 2 3 2 1
CO4 3 2 3 2
CO5 2 1 2 3
B TECH
(SEM-V) THEORY EXAMINATION 20__-20__
Time: 3 Hours Total
Marks: 100
Note: 1. Attempt all Sections. If require any missing data; then choose
suitably.
SECTION A
1. Attempt all questions in brief. 1 x 10 =
10
Q.No. Question Marks CO
1 1
2 1
. .
10 1
SECTION B
3. Attempt any five part of the following: 5 x 6 = 30
1 6
. 6
7 6
01/24/2025 Rajat Kumar ACSE0505 (Web Tech) Unit 3 23
End Semester Question Paper Templates
1 10
2 10
5. Attempt any one part of the following: 1 x 10 = 10
Q.No. Question Marks CO
1 10
2 10
6. Attempt any one part of the following: 1 x 10 = 10
Q.No. Question Marks CO
1 10
2 10
1 10
2 10
Objective of Unit 3:
• To learn about web development strategies with Creating style sheet,
Creating Properties
• To understand the basic concepts to develop the Working with block
elements and objects.
• To understand Bootstrapping and Bootstrapping Components.
• To understand to register a domain and maintain CSS Style Sheet.
•To get the knowledge about the CSS Style and Tools.
01/24/2025 Deepshikha
Rajat Kumar WT
ACSE0505 (Web Tech) unit-3
Unit 3 31
Concept of CSS 3: Creating Style Sheet
Java Script is used insert dynamic text into HTML (ex: user
name)
01/24/2025 Deepshikha
Rajat Kumar ACSE0505 WT
(Web Tech) Unit- Unit
3 3 33
Concept of CSS 3: Creating Style Sheet
+ =
01/24/2025 Deepshikha
Rajat Kumar WT
ACSE0505 unit- 3
(Web Tech) Unit 3 34
Concept of CSS 3: Creating Style Sheet
Variables:-
01/24/2025 Deepshikha
Rajat Kumar WT
ACSE0505 (Web Tech)unit3 Unit 3 36
Concept of CSS 3: Creating Style Sheet
same operators: + - * / % ++ -- = += -= *= /= %=
methods: abs, ceil, cos, floor, log, max, min, pow, random, round, sin, sqrt,
tan
properties: E, PI
Q 16. Which CSS property is used to control the space between lines of text
in an element?
A. letter-spacing B. word-spacing
C. word-spacing D. text-spacing
Q 17. How can you make text inside an element italic in CSS?
A. text-style: italic; B. font-style: italic;
C. text-decoration: italic; D. font-italic: true;
Q 18. Which CSS property is used to create rounded corners on an
element's border?
A. border-radius B. border-style
C. border-width D. border-corner-radius
Q 19. The CSS property "text-align" is used to:
A. Set the color of the text inside an element.
B. Control the alignment of an element's border
C. Align the content of an element to the left, right, center, or justify
D. Define the font size of an element's text.
01/24/2025 Rajat Kumar ACSE0505 (Web Tech) Unit 3 49
Daily Quiz (Cont..)
Q 20. How can you apply a 1-pixel solid red border to an element with the
class "box" in CSS??
You can assign your own event handler functions to HTML elements
Computed
value
of font-
size
property
• Inheritance of line-height:
• Specified value if normal or unit-less number
• Computed value otherwise
any order
01/24/2025 Rajat Kumar ACSE0505 (Web Tech) Unit 3 65
Concept of CSS 3:CSS Styling
a) CSS is used to structure the content of a web page, such as defining headings, paragraphs, and lists .
b) CSS is used to add interactivity and dynamic behavior to a web page, such as handling user interactions and
form validations
c) CSS is used to define the layout and presentation of a web page, such as setting colors, fonts, and spacing
d) CSS is used to define the server-side logic and database connections for a web application
Q 2 Which CSS property is used to change the text color of an element?
e) text-color
f) color
g) font-color
h) text style
Q 3 How can you apply external CSS styles to an HTML document?
i) Using the ‘<style>’ element within the HTML file.
j) Using the ‘style’ attribute in HTML tags.
k) Using the’link’ element with the ‘rel’ attribute set to ‘stylesheet’.
l) Using the ‘css’ in the head section of the HTML file.
01/24/2025
c) adjust the spacing between an element's ACSE0505
Rajat Kumar
border and content.
(Web Tech) Unit 3 81
d) align an element horizontally within its parent container.
Daily Quiz(cont..)
Q 17 What will be the total width of an element with a width of 200px, a padding of 20px on the left and right sides, and a
border of 2px on the left and right sides?
a)224px
b) 242px
c) 204px
d) 220px
Q 18 If an element has a width of 300px, padding of 10px, and a border of 5px, what will be the total width of the element
when "box-sizing" is set to "border-box"?
a) 300px
b) 320px
c) 330px
d) 340px
Q 19 The "padding-bottom" property in CSS is used to set:
b) the space between an element's border and its content on the bottom side.
b) the space between an element's border and its content on all sides.
c) the space between an element's border and its parent container on the bottom side.
d) the space between an element's border and its parent container on all sides .
Q 20 The "margin" property in CSS is used for:
c) adding space between an element's content and its border.
b) setting the width of an element's border.
c) positioning an element within its parent container.
01/24/2025 Rajat Kumar
d) adding space between an element ACSE0505elements.
and its neighboring (Web Tech) Unit 3 82
Concept of CSS 3:CSS Advanced(Grouping styles)
You can give the same properties to a number of selectors without having to repeat them by separating
the selectors by commas. It is a useful thing for reducing file size.
Example
h2
{
color: red;
}
.thisOtherClass
{
color: red;
}
.yetAnotherClass
{ color: red; }
h1, h2, h3, h4, h5, h6
h2, .thisOtherClass, .yetAnotherClass {
{ color: blue;
color: red; }
}
If the CSS is structured well, there shouldn't be a need to use many class or ID selectors.
This is because you can specify properties to selectors within other selectors.
a[href $='.pdf'] {
padding-right: 18px;
background: transparent url(icon_pdf.gif) no-repeat center
right;
}
This would attach a pdf icon to the right of any hyperlink who's
URL ended in '.pdf' like this. This was pretty exciting and heady
stuff. It meant I could show the file type visually with that
application's icon just by including a few lines in my master css file.
I didn't have to worry about it at all in my html, css would add the
icon for me automatically.
span[id ^='google'] {
background-color: green;
}
• Any span which has an id which starts with 'google' will be assigned a green
background.
• More Examples
• Bootstrap is the most popular HTML, CSS, and JavaScript framework for
developing responsive, mobile-first web sites.
• Mobile –First approach: In Bootstrap 3, mobile first styles are part of the core
framework.
• This is the strongest part of bootstrap framework. Bootstrap offers a 12 column grid
system. The grid system is responsive, that it adjust itself depending upon the
device resolution of the client. These grids have further classes that have been
defined in sync with the device resolution that they are represent.
• These grids have classes xs, sm, md and lg each representing a device resolution.
All the developer needs to do is include these classes while defining the visibility
of element in the mark-up and hence come up with a responsive website. The
responsive grid makes developing responsive websites really easy using bootstrap.
Bootstrap Components
Bootstrap.css
This is the basic Bootstrap package that you will need to download. CSS is a style
sheet language for static information.
Bootstrap.js
A JavaScript/JQuery library that powers up certain components of Bootstrap such
as animation, scrolling, and interactivity.
Glyphicons
Glyphs are elemental symbols with typography, such as the English Pound symbol
(£). Bootstrap has a huge list of embedded glyph icons that are available for free.
a) 6
b) 9
c) 12
d) 15
Q 17 Which CSS classes are used to create a row in the Bootstrap grid system?
a) .row
b) .container
c) .col
d) .grid
Q 18 What class is used to make an element visible only on small devices
in Bootstrap?
a) .hidden-md
b) .visible-sm
c) .hidden-xs
d) .visible-md
• Ivan Bayross,” HTML, DHTML, Java Script, Perl & CGI”, BPB Publication
https://youtu.be/Zopo5C79m2k
https://youtu.be/ZliIs7jHi1s
https://youtu.be/htbY9-yggB0
Unit 2
https://youtu.be/vHmUVQKXlVo
https://youtu.be/qz0aGYrrlhU
Unit 3
https://youtu.be/1Rs2ND1ryYc
Unit 4
https://youtu.be/-qfEOE4vtxE
https://youtu.be/PkZNo7MFNFg
Unit 5
https://youtu.be/_GMEqhUyyFM