Unit 2
Unit 2
Locosts an ons
Markup Language
**
A markeep
Language
defines the structures and presentation of a
document.
Markup
Language
paragraphs,
costs,
use
is
a
Structure tastroostoodwai"
Version HTML 5, (not case
sen
roat element of an HTML page.
dditive
)
<body
>
Title <title)-
→
(end)
(a) specify
a title
Ood (d)
рад
е
of
HTML
page
→ defines the document body.
रायो
→
Pag
e
Structure
(HTML)
<tme
<head>
<title></title>
</head>
(body)
(nt)
<P>
K<P>
mes a
paragraph.
-
<proctay
?
** <head> Element **
<head> - meta data
(021) 2 (gata about day)
No placed. bet "<tml)
<body>
tags.
(i
)
<titl
e)
mu
st
be
text
1. (11) " ( (
11)" (X/
(H) (m)
2P3
i only
<style) - style
information
body {
background-color:
ni {color:red;} P {
color: blues &
<Link) - defines the relationship bel the current
document
-tag
and an external resource.
view post →
1)
"viewport"
content="width=device-wi
<script> - used to define client-side
javas coopt.
• initial-scale=1.0"
JMTH
to treat Food
Formatting
Tags:
coits and pi stom
<pre>
124
("body")
العلم
Bridesalt tavit
<td>
Lex <p>
<strings.
string
(importance)
-
<strong>
UP)
(bad)
Same
LP)-
(pasa)
(ATH)
(Italic, Emphasis
(em)
>>small<<small> This
<Ismall)
1
•
Mark (P) This <mork) www << Mork
XP)
del <P) Blue <der) red/del) is my far
col (1P) ins <P) Blue, <ins) red (lins)
Sub (P) blue (sub) red (sub) text(IP) ofp-
Blueged
undo:PXu) Blue Reg, both are
my fav (m)
(IP)
Strikethrough (Not madale supported
in 5)
16:60/05
601057 IN
Text.
mi
Paragraph
<P> * Anchor
(a).
*
from
of the
one
page to another.
important
attribute
hyperlink, which is used to
Link
pomi as
& purple tud
-A active Link is underlined & reed.
If the bref attribule isn't present, the <ay tag
will not be a
ex
as
a link
image
<a href
ce
hyperlin
k.
https://
www.google.com">pm2)
<img border="0" alt="W3Schools"
src=
Westro cant skrods for hi
spook
Lia)
" Logo
gi
width = ""100"
height="100">
<"body"} std is thick Jog href=
hypertext Reference
9/p-
da
l pod 2)
Link
Google K
click
**
www.
open 1x
google.
c
COM
아
190 twoadA-
shadew
spomimo
to an
email address
@
J90
lin
g
src a
**
are
provided as attributes.
www.google.jpg"
alt="google.com" wrath="
<img> →→
empty tag xx
→
2 Indist height =
"9242"
toolles Ad
lo4"
img-
girl.png"
り
***
Absolute URL
on another
Link to
websites.
1 src=
Relative URL
1
N
O
N
G
ND
сс
NEW SON
ده مج او ار
دارد
external
an another image that is
hosted
https://
www.
//
www.google.com/
images/ings.
Link to an image that bosted
withing website. Here the URL doesnot
require domain name if URL start without a
slash() ex src="img-gist.jpg
(11) (poppp and of pent-200M)
spatoss
الم مليم
ANTH
style attribute in
(a) tag
<P style="color: red; ">
<ni style=
attribute
ce color!
"green;"
">
This is a
As a
pasagsapi/p
y
iniy
(3)
4)
Lang
(Lang="en-US" wood
HTML style!
bas (pl). pd penitop of alles
sidor sidet sut abroke (lots
<html lang="en" ang
"en-
(
sspoolt ST-
red;">
(CH) SMOK
">
(Wit) the slop A
(NI)
(NAS
✓ body style = " backgroun of
color: blue;"
<P>
147
tophe two different color
(PM)eoNaoddue (pp)
(b) CAN
✓//bi style="background-color:
powerblue;"> <h2
style="backgroun of 4-color:
tomato, ")"
C Text Color
<m style="color: blue;"> This is a
(P style
Гр
Would bijod
Le
4 Text
alignment
heading
(IM)
paragraph
(IP)
रात्र
poood olan O
boned
Voor dibina sluts olde
ر
// +
// +d) tag. pro
! (1)
<140)
tagiles)
is defined by (tr)
and
11 44 > & 4th)
tag
=> Table Header is
ex (!DOCTYPE htm()
<html>
<body
>
to
सफ>
MTH
bps of pace & studiathe
(slute)
<table style="width: 100%" boarder =
"2pn solid"
Wool.
(th) Roll Noth)μld
blue"
>
+601059
Cellpadding
(cell's boods
the content
present on
Texis Text 2
Text 3
T5
16
73
Tely
• cell spacing
(indivisual adyeart
alpte
(d) 123456789 (/+9)
pared
L+d) ABCD [Hel)
Ad) 12345678 9 (149)
<tr>
(Hable
>
dood
rol09
slpta
1 Table Boarder
<table style="width:
100%."
@ Cell
✓
• box:60100
ماجرا
ه
board "1px solid black)
Cell padding (cell edges and cell
content)
table border="1"
cellpadding="0">+x1)
cell spacing (beth each cell) borden
cellpadding
3 Height
O means no
no
table border="1"
cellpadding="
5"
2
ex DOCTYPE html
pH):
4 (pis
<html>
<body
>
<table boarder = "1"
cellpadding="0") - A
(tre)
<th colspan="2"> Name (th)
<th> Age (4b)
<tr>
23
Name
Age
9000
<style>
table, thAd{
lerth
[dot]
border: 1pm So
</td> dit Ltd) A Ltd) of clos
</th>
<tr>
<td>
x
<tr>
real: H
(ery
Ltdry Ltd)" (ta) B (/td.). border-collapse:
دا بر
او
راه او
collapse
Rowspan
u
123:14
phone
456
</td>
<tr>
Hinta 456/td)
(PH) CHA
[Exampl
es
(PM)
CPA)Y CAP
padding
border
spaci
<!DOCTYPE
html>
(PH)
X
<html>
N
A $1.
(3)
<body>
( ))
<table border = 2
cellpadding
= 10"
cellspacing="
0">
<tr>
<td>x (rta)
(tg) & (tg)
Ltd) y (Itel)
(ta) Alita)
kury
(Lor)
ex 2
&
XY
"
<table border="1" cellspacing="0"
cellpading = "10">
<tr>
<td>xtq)
</tr>
(to)
aa> Xray
<tr>
((table),
13)
d
Width F
-> Space)
(%)
(tr>
सर्व
(d) x (H)
3
Adry (Ita)
(tr)
Право
ст
Food sidos
(dly smol ("spodeles de
(A) SPA <->
༡ ༢༣༨
(tr)
रसफ
L+h) Age
(Hb)
Letry
neight (↑ space)
(ph)
Yood doin
9/812
or sidnt
<tr><th> -
<1th)
(mm) -
(4th)
200pn
set neight of 2nd row.
/ table style="width: 150%"
sellspacing="0"> (mt) | 248 style =
height: 200pn">
सखर पर
1799
सव) Y(HI)
(th) -
(1th)
<tr>
<td>2 (1+d)
<tr>
3y001)
wbed
Bribbagli
as
spood Hot
PJUA (2
་་
ི་
HTML Lists
of
related
3 Description List.
2 Order List
die
paasdman ad in-s
an ad lliw N
Lue/Li)
Rose (Li)
(lé: Lili
• Rose
• Lili
Jsolt. Je
༢༡ ་》
Ordered List
The HTML COLY
20 JNTH
11
numbered with Lowercase roman numb
abun
C type "I'= will be numbered with
uppercase román.
Lol type = "1">
(li) coffee (li)
८०८१
12tex (ol type = "A") dope
otope het!!
3RX
COL
YON type = "I">
borex LoL
type="i")
ex (ol type = "a">
sh 5
Goles List
اسم
ma
8344.
Ai) orange sead
You 48)
orange
Orange 1
(ILi)
(POL)
(li)
<>
(Li) orange
2 <li>
(2) Mango
(Ile)
Mango/li>
༡༠༦
>
219209
Zups (505
االسالم
HTML Forms
An HTML forms is use of to collect
user
most
سول
90000
24)
همدلته
الملول
→ Different
The
-
21:
submitting
the
the
fm)
<input type="submit"> - submit
button) (for subr <input
type="button"> - displays a cliable
button.
Text field
<form>
Kod Woods
set is doi
sof Jador)
entor Taman Jutt-pi "xod Woods" - sept und of (Label
for="FNAME"> First Name: <input
type="text"
id = "-FNANE" name = "FNAME "
value="sh"
</Lable)
"LNAME"
value="/
(Label for= "LNAME) Last Name: <1 label)
<input type="text" id="LNAME"
name=""
• Type Date (Datetime - Local)
2009 <form>
<label for="birthday"> Brothday:
(Label)
INT
<form
>
01-
INTH
= "Cascording style
sheet" vale (
et (input type="radio" id="Javascript"
name="Javascript" value."
<lable for = "Javascript")
Is Llable).
Op 10 HTML
ор
of moller
• Submit
O css
OJS
HTML
Dess DJS
<input type="submit"
value="submit">
**
u
HTML"
value="HTML">
MALI
not ide
4Kbr>
by mean 4 spaceas
name:
"favenlor"
value="Blue
00: #ff0000
(Label for="Favcolor"> Select the color
(/Label)) <input type = "color" id="fav color" n
Email
to input type = "Submit"> Label for="email,
input-emal"
Beform
?
Nepiltold Image Lnaw
"dua"
Fname, name
Linput type="image" src = "Link"
alt="Subirt
HTML
Input Types ad about cheats
Coito)) Different types of input y'pe you can
add-
02JA-
is
-
32673.
47
2) Target attribute - specifies
where to display
the
response that I received after submitting the form.
del) sta
displayed in a new window or tab
-blank, oset
self the current window.
-parent- the parent from frame v
lov " -top - full body of the
window
-
Get Method
do
awlor portge)
رای
داوران
(HTTP Method)-1, "Post
Method
blit
12
get
290
د معيدًا لقمه
From Elements
०४
spomen
<o>
C input
1
2 Label
3
$11
Prinol
d
(Select) - defines the drop dan
Irst
2
</cabel} i
"cans">
ex Latel for="cars") choose a car
cars" I choose a car
</cabel> <select id= "cars" name <option
value= <option value = "Saab'
(1s elect)
6los ollalt
u
specif
y
use
be selected
name N
</option): ^
in corts A
<option value = a volva" volvo
</option>..
(Ielect)
attribute (1400) 00420 000)
Allow multiple selection to allow the user to sellect more
• than one value. 100w 2017+ 1994
'4'
bo
'Setee' (Label for=""cans"> choose a
dost (select id="cans"
ane" popolda
can label)
'choose a cor,
<form>
textarea name=
a
51
message" rows="10"
cols="30">
was
The
girl
playing uite
(textarea)
Jedo in the
200
The
ground
<input type="submit"> "="" = bot
1545)
21 for
>
جمة
4505 -pt Jo
Intov potgo
gulor crit qe>
was so
[/
body>
Click Me! (I button)
Rx
Mad wor
900
personalia-
Frame
2012 الدوhd
HTML Frame
الله
Frisian prom
instras pas reprod
18+ tags daripeon
sdgisdaipoon
20
red Hear
HTML frame is used to devide a web browser windows sotto
multiple sections, such each capable of
Loading content
independent
ly.
Syntax
Attribute
L
frameset cols="50%.
50%.
< foame src=
frame sre
<15 Dameret>
=
a
50Y.
">
"pagel. htme
"Page2.html
"}
give
names to the frame
name -> attoibute to used to
4
S
→
20">
the space bett
20
1
012
912
929 01
SOUT
annotat of coups avip of peow
of Indialthi
B
Judith
Frameset
(element)
MTH
border-
Specify
fasade
"Specify
the
อ
of
rows and their size within
bow
(frameset cols = "Box. nov: -50%." 2005 (
foame name = "top"
src=
raporu
<pbod
)
a
ท
171) Sree!
< frame name = "main"
sree=
< frame name=
<iframevet
)
(٩١)
[Jebod
e
HTML 5
- Also
ходхо
230
graphies,
media an
mayo
r
browser
2103
and
fond
generally supported
by all
bolong many aspects such as
graphics.
1 Section)
element
Defines a section in a dowment, deviding the content
into
A section means - A thematic
thematic
need
brod odt
तान
Sections & subsections.d
grouping of
content
Grod
grouping means
chapters
th17
HAWUni>
swehi>
<P>
Lisection
)
(section
)
<P>
<section
>
[Phod
ey)
-
YO
در
10
Nami
d
Introduction parts
News items wood)
Contacts
Informations.
(IP)
Article
forum post
Blog post
-user comments
Product Cards
-
(article)
Newspaper
articles.
sense on its own.
<h2> Google </h2>ot state
waited
<P> Google chrome is a web browser
developed by Google, released in 2008
</P> (ester)
(article)
रात्र
ferd
<P> open-source web browser
devloped by Mozilla.
Q'
Mozilla firefox.
(8)
2018
(popula
r)
→ 2015
VDA
Microsoft Edge
7
Header x
Represents
Set
a
of of navigational <header)
- </header)not the astide tag)
elements of <header) Element
headi
ng
elemets (hi) -
<h6>
Logo
icons
authorship Information.
narization Links
Search bar
<article>
<header
>
270rto
N
<P>
2929 blooda slitest
Navizatim Link
<header>
<a href=
D
<a href=
1204 CASTO
fox bond
4 Footer
Defines a footer for a dociment
(IN)
(367/001
)
ollises
<nav
>
-"com") -
[[3XP1)
rizwood den 002
Jpb3
"
50 900
2nd
To main intent
mixtes put.
Corbus)
/h2> Leasing html
</h2>
2904002 'it us
(μbod)
Aton- Saamentiz
Tribuot
+Header)
09
(Nav
o
(div)-tag
the content.
-King>
Hable)
is block -level
element (article) wed
for
grouping and structur
confent.
provide a container to
organize and style
section of a webpage.
<div>- <1 div>
<styl
ex
そ
divg
Ş
५.
diver {
1style
mar
gin: 2pn,
foot- SDe: 25pm;
background color:-) -
Span
(article)
footer
of white
colortenty
divat
air tagy
2
tag1 </pm>
:green">
spn style = "red"> taga (sh) </P> </body>
~<body
>
<div class = "div 1">
Div-tag (Hiv)
(div clan - "div2">
5
</div>
es
(abian)
a sound (LIP): Go Now (d)
oot aboots NTH
ir darsanravel
"durs anrawal songs, mf
3 > type="sudo
mp
3
Sa argit singh songs mp3
type: "and" / "49)
Ho
(1
Video)
Joved
"m/$9"
type="video/mp4")
(nog)
(vi)
110,000
داوم
front but would ai pot
St.-
(vik)
Caboo
("svip - not vis)
1925: 202/07