Professional Documents
Culture Documents
WT Bootstrap
WT Bootstrap
WT Bootstrap
Code: 8EC07
Prerequisite:
Data Communications and Computer Networks,
Object Oriented Programming through Java
TEXTBOOKS:
1. Web Programming: Building Internet Applications, 3rd Edition, Chris Bates, Wiley Publications.
2. Angular - The Complete Guide [2021 Edition], Maximilian Schwarzmuller, Packt Publishing.
3. Head First Servlets and JSP, 2nd Edition by Kathy Sierra, Bryan Basham, Bert Bates, O'Reilly Media, Inc.
Course Objectives
HTML 4 - List, Tables, Images, Forms, Div. (with all attributes and
sub-elements)
Cascading Style sheets 3 - Selectors (Basic, Combinatory,
Attribute, Pseudo-class, Pseudo Element) using properties (font,
background),
Bootstrap basics (Text Book 2)
JavaScript - Introduction, variables, objects (Boolean, Number, String,
Date, Math, Regular expression, Array), Function, Event handlers
(mouse, keyboard, window), Using CSS with JavaScript.
Introduction to Typescript.(Text Book 2)
Internet
A global computer network providing a variety of information and
communication facilities, consisting of interconnected networks using
standardized communication protocols
The World Wide Web
Web Technology refers to the various tools and techniques that are
utilized in the process of communication between different types of
devices over the internet
Clientside Technologies
● HTML
● CSS
● Java Script
● Type Script
● Angular JS
● Ruby on Rails
● jQuery
● Ajax
● Bootstrap
● VBScript….etc
Server side Technologies
● PHP
● Java
● Ruby
● JSP
● ASP
● Django
● Ruby on Rails
● Anngular
● Perl…. etc
HTML Introduction
1
3
1
4
WEB BROWSER
Web browsers are software programs that allow users to access the web’s
content.
Ex: Internet Explorer
1
5
Title bar
Menu bar
Tool bar
Address bar
Status bar
1
6
CATEGORIES OF TEXT
1
7
⮚ HTML is a language used to design web pages.
⮚ HTML is mother tongue of web browser
1
8
Html versions
● Since the early days of the web, there have been many
versions of HTML.
HTML 1991
HTML+ 1993
HTML2.0 1995
HTML 3.2 1997
HTML4.01 1999
XHTML 1.0 2000
HTML5 2012
XHTML5 2013
HTML Tags/HTML elements
⮚ HTMl elements gives the structure to the html document
and tells the browser how you want your website to be
presented.
⮚ The surrounding characters are called angle brackets.
⮚ HTML tags normally come in pairs like <b> and </b>.
⮚ The first tag in a pair is the start tag, the second tag is the
end tag.
⮚ HTML element : start tag , content ,end tag
⮚ HTML tags are not case sensitive, <b> means the same
as <B>
2
2
⮚ An HTML file is a text file containing small markup tags.
2
3
<html>
<head>
<title>
Title
of the page
</title>
</head>
<body>
Content of the
page
</body>
</html>
2
4
EXAMPLE
<html>
<head>
<title> This is my first web page !
</title>
</head>
<body>
<b> welcome to snist </b>
</body>
</html>
⮚ Tag <HTML> indicates this page is written in HTML language.
2
7
⮚ Attribute : keyword that is added INSIDE another tag in
starting tag.
⮚ Gives the additional information about an element.
⮚ Attributes come in name/value pairs like: name="value"
⮚ Use lowercase attributes.
⮚ For example, the BODY tag can contain the background
color,
<BODY bgcolor="BLUE">.
⮚ The end tag </BODY> does not have to contain the
attribute. The background color will be in effect
throughout the document.
⮚ General form: <tagname attribute=“value”>
2
8
HTML Comments
● Comments can be inserted into the HTML code to make it more readable and
understandable. Comments are ignored by the browser and are not
displayed.
● Example
● <!-- This is a comment -->
To view html code for a web page
● Right-click in the page
● select "View Source" (IE) or "View Page Source" (Firefox), or similar for other
browsers.
● This will open a window containing the HTML code of the page.
HTML
Basic HTML Tags :
1.<html> </html> 13.<s> <del> or
</s> </del>
2.<head> </head> 14.<p> </p>
3.<title> </title> 15.<img></img>
4.<body> </body> 16.<center></center>
5.<br> 17.<sub> </sub>
6.<b> </b> 18.<sup> </sup>
7.<i> </i> 19.<bdo> </bdo>
8.<a></a>
20.<q> </q>
9.<u> </u> 21.<big> </big>
10.<center> </center> 22.<small> </small>
11.<hr> 23. <pre> </pre>
12.<h1 to h6> </h1 to h6> 24 .<strong> </strong>
HTML 4
1. List
2. Tables
3. Images
4. Forms
5. Div.
(with all attributes and sub-elements)
Lists
HTML lists allow web developers to group a set of related items in lists.
An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
The list items will be marked with bullets (small black circles) by default:
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Lists
Unordered HTML List
The CSS list-style-type property is used to define the style of the list item
marker. It can have one of the following values:
Value
Value Description
Description
disc Sets the list item marker to a bullet (default)
disc
circle Sets the list item marker to a circle
Sets the list item marker to a bullet (default)
square Sets the list item marker to a square
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
Output:
</ul>
Lists
Ordered HTML List
An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Lists
Ordered HTML List : Example - Uppercase Letters
<ol type="A">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li> Output:
</ol>
Lists
HTML Description Lists
The <dl> tag defines the description list, the <dt> tag defines the term (name),
and the <dd> tag describes each term:
<dl>
Output:
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
Lists
Tag Description
Everything between <td> and </td> are You can have as many rows as you like
the content of the table cell. in a table; just make sure that the
number of cells are the same in each
Note: A table cell can contain all sorts
row.There are times when a row can
of HTML elements: text, images, lists,
have less or more cells than another.
links, other tables, etc.
Tables
Border Color
th, td {
border-color: #96D4D4;
}
Tables : Sizes
Cell Spacing
Cell spacing is the space between each
cell.
table {
border-spacing: 30px;
Table Colspan & Rowspan
<div style="background-color:orange;text-
align:center">
<p>Navigation section</p>
</div>
<div style="border:1px solid black">
<p>Content section</p>
</div> outpu
t
Cascading Stylesheets
(CSS)
54
⮚ To control the look and feel of HTML documents in an organized and
efficient manner with CSS.
⮚ Able to add new look to the old html
What is css?
❑ Styles define how to display html elements
❑ It makes the html document to display with different styles.
⮚ html was never intended to contain tags for formatting a document.
⮚ Html defines the content of the document like
<h1> this is a heading</h1>
<p> this is a paragraph</p>
⮚ To develop a large web sites, fonts and colors information were
added to every single page, became a long and expensive process.
⮚ To solve this problem, the www consortium (w3c) created CSS.
⮚ In html 4.0 all formatting tags were removed from the html
document, and stored in a separate CSS file.
⮚ Css supported by all the browser.
CSS selector
❖ these are heart and soul of css
❖ The selector is normally the html element you
want to manipulate(style).
css syntax
Selector{ property:value;}
Css declaration ends with ; and surrounded
by curly brackets.
Property- style attribute you want to change
value- it has value
Ex- h1{color:green;fornt-size:30px;}
Three flavors of CSS
1. internal style sheet
when you want to apply styles to single document
you must define internal styles in the head section
of an HTML page, by using style tag like this
<head>
<style>
p{ color:red;
text-align:center;
font size:20px;
}
</style>
</head>
<body>
<p> helloworld</p>
<p> this paragraph is styled with css</p>
</body>
2. External style sheet
❖ To apply the style to many pages
❖ you can change the look of entire web site by
changing one file.
❖ External css is a file that contains only css code and
is saved with a “.css” file extension
❖ Each1. html file
create css file should link to this 2.file using
Create html file<ling>
and link to tag.
css
test.css <head>
body{ background-color:gray;} <link rel=“stylesheet” type=“text/css”
p{ color:blue;} href=“test.css”}
h3{color:white;} </head>
<body>
Required. Specifies the relationship <p>SNIST in blue color</p>
between the current document and <h3> IT-IV year</h3>
the linked document </body>
Advantages
- keeps web site design and content separate.
- reuse css code for entire website.
- changes will be done in a single file
3. Inline css
⮚ coded in the body of the web page as an attribute of an HTML tag.
⮚ applies to the specific element that contains it as an attribute
⮚ This has highest priority over internal and external style sheets.
⮚ Inline overrides styles that are defined in external or internal by
using inline css.
example
<p style= “background:blue; color:white;”>hello world</p>
h3{
External.css
text-
h3{
align:right;
color:red;
font-size:px;
text-align:left;
}
font-
size:20px;
Selectors
● CSS selectors are used to "find" (or select) the HTML elements you want to
style.
● We can divide CSS selectors into five categories:
● Simple selectors (select elements based on name, id, class)
● Combinator selectors (select elements based on a specific relationship
between them)
● Pseudo-class selectors (select elements based on a certain state)
● Pseudo-elements selectors (select and style a part of an element)
● Attribute selectors (select elements based on an attribute or attribute value)
Selector by name
Selector by id
Selector by pseudo-class
Universal selector
Grouping selector
● Instead of this…
CSS: H1 { color: #FFFF00; }
H2 { color: #FFFF00; }
65
Combinatory
Pseudo-class
Pseudo element
<!DOCTYPE html>
<html>
<head>
<style>
p::first-line {
color: #ff0000;
font-variant: small-caps;
}
</style>
</head>
<body>
<p>You can use the ::first-line pseudo-element to add a special effect to the first line of a text
Some more text. And even more, and more, and more, and more, and more, and more, and
more, and more, and more, and more, and more, and more.</p>
</body>
</html>
CSS Background properties
Background-color
Background Image
Background-repeat
background-attachment
background-shorthand
CSS Fonts