HTML Notes
HTML Notes
How Web-wo0nks
request
U1l
DNS
(Unitoam ConveAts
Resouace
unl into IP addness
Locaton)
SNesponse
Bowse Database .e0)
dot abase.
lhe database uill not: undeastand the' usil given by the usea,
ahttps://www.google.com
paotocol
woald wide) {Domain
web
IP
OC0>TCP/TP- Thansmission cont9ol paotocol.
C BY NAVI
Yaotocols
hese ase the ules 0 paoceduses used to communtcate
.Static page
I n static web pages, Pages jll aemain same until someone
.
changes t manually.
I n static web pages. infoamation aae changing aaaely
N o page aeloading.
I n static web pages, database is not used.
PEL00gle, blogs,
Dynamic page
In dynamic web pages. contents of pages ase diffeaent fog
diffeaent visitoas.
In dynamic web pages, the infos9mation chonges aapidly.
Dynamic web page takes moae time fos loading than static web
page because of mose content.
In dynamic web pages.database is used
Ex stock paice, weathea infoamation:
Diffeaence blw Single-page, and multi-page applications
Single-page application
Only one html page.
Modean appaoach foa app development.
A SPA is an app that woaks inside a baowsea and does not
Ex Flipkaat. com
Ama zon. com
Web senven-
t is a collection of unrque websites
web-site.
he tunctionality of a web ses vea is hoisting the
HTML
Hypen Text Mankup Language
Link/
Pane-defined Communication.
Refeaence
Data/Tnfoamation
Intnoduced by Tim Besnens Lee in 1993
HTML is a maskup language: used to gaeating a stnuctuse
htm
shoatcuts to caeate html stauctuae
Type html and select the
be caeated.
vesion,the html stauctuae will
i Type ! and paess the tab key on the keyboand.
The pot num bea of Live seaven is 5500.
amount of andom. text
The Lonem tag ins ents. a speeitied
in the body tag
I f we specify,a paaticulan numbes aften Lo»em and paess
<img
input>
HTML elements
9 tag
Ez titlez Login /title>
content lostng ta8 >Element
openíng
tag
Heoding Togs
define headings of a pa9e.
The heáding tag is 'used in HTML to
Ihe heading
The heading tags ahe block level elements (1t tokes entine
Fomatting Tags :
s is used to change foamat of the tezt.
All foamatting tags a9e
paiaed tags. A
b Sup>
big u
ing
Ksmall Kdel».
stnong stsike
em
<sub
Depaicoated ogs
Taga which ane not in use. they ane betten handled by c9s.
HTML
ww
attaibutes
I t pnovides additional infoamation.
Always specified in staat tog
tag.
Name and value pain.
Eght style = "backgaound- coloa aed":> hello </hi
Cone attnibutes
Functionality of the element.
ID: It should be unique
Lettens.
type "I" The list items will be numbened with uppen case
TOvon 0man numbeas.
type "" The List items will be numbeaed with lowencase
9NOman numbens.
quote
o manquee tog
/ (two dots) denotes the paaent dizectoay ie, one level above
Anchon Tag
The HTML anchon tag defines a hypenlink that, Links page
one
syntox
a hnef ="unl"> link tezt </a>
Appeanance of HTML ancho tag:
By default. links will appean as follows in all ba0wsens
An unvisited link is undesilined and blue.
A Visited link is undealined and punple.
An active link is undenlined
and aed.
Anchon tag Attaibutes
haef- The mast impontant
attaibute of-the ca element is the
hnef attaibute. uhich indicates the links destination.ir
, tanget The tanget attaibute specifies wheae to open the.linked
document
D-selt opens, page in same tab/. window.
id-blank It opens page in new tab/wrndow.
m)topFt opens page in a top of window.
-paaent- It opens pages in a paaent windo).
Toble
A table is a stauctuned set of data made
up of. aows, and
columns (tabulan data).
The content 'of eveny table is enclosed
The
by these tuo togs
table </table>. Add these inside the
body. of goun HTML.
The <t element (tn
stands foa table now')
<td> element9 caeates a
single cell.
cell padding
.
cellspa cing
Deteamines the empty spacing between the boadens of
tuoo adjacent cells.
Ea: TABLE CELLSPACINGI
="10PX2
ROW-SPAN Meaging of.moe than two aows.
9 t d 910wspan= "2" >hello </td>
cOL-SPAN Menging of moae than two cotumns.
files
>Ihe most common way to discoven the type of a tile is to look
lag Descniption
aaticle defines an selt contained composition and indep-
SndRt in a web page. JMTH
aside Defines Content aside taom the page content
details Defines additional details that the usen can vieo
01 hide
figcaption Defines a caption foa a
<figuae> element.
<figuae Specifiesself-contained content.like illu_taations.
diagaams, photos.
Hooten Defines a footen toa a document o section.
headen Specifies a headen foa a
document 0 Section,
main Specifies the main content of a document.
& k Defines manked/highlighted text.
Tog Descaption
nav Defines navigation links.
H- Heade
D--Details.
A- Aside.
M-- MainMaak
:
N-- Nav
S- Section/Summaa
T - - Time
A-- Anticle
F--Figune caption7 Figune/ Foote.
HTML HTML5
div id <div id
'contents aside) çontent> aside
Navigation L
Main
Anticle
Aside
.
Asticle
Antiele
.
Footen
o FosimS
HTML tonms .aneequíiéd to collect data fnom the usén.
HTML form is a document which stones infoamation of a usen
on a webseaven
ype Desciption
button A push button wrth no default behavioza displaying
the value of the att»ibute, empty by default.
checkboz: A check boz allowing single /multrple values to be
selected/ desele cted.
colon A contaol foa specifying a colon; opening a colon
picken when active in supponting bsowseNs.
date A contaol fon enteaing a date (yean, month, and
day, with no time).
datetime- local: A contaol fon entening a date and time, with
no time zone.
email A field fon editing an email addaess.
file A contnol that lets the usen select a file. Use
the accept attaibute
to define the types of files
that the Contaol can select.
hidden: A contaol that is not displayed but whose value
is submitted. to. the
seqyen. The ne is an example
in the next column, but its hidden.
image A gaaphical submit button, Displays- an, im oge defined
by the snc ottaibute. The olt attnbute displays if
the image Sac is míssing.
month: A contaol foa ent aing, a month and yean,oith no
time zone.
.
numben: A cont»ol fon enteaing a numben. Displays a numeic
keypod in some devices with dynamic keypads
passwond: A single-line tezt tield whose value is obscuaed.
will alet usen,it site is not secuae.
Descaip-tion
autofocuS Automati cally focusing a foam.contnol.
autocomplete he souace of the
suggested values îs gene-
nally up to the bznowsen: typically, voalues
Come faom past values entened by the usen,
pattenn its like a nule
eg: 12345. [o-z]{5}.[A-2]{8}. [a-1}[A-Z|{3}.
Nequisied Tt spéciftes that the input field must be filled
out befon submttting the toam
min-length Tt should be taken minimum length of chanacten.
max-length tshould be taken matimum length of chanacten.
iead-only The input field connot be ne-wite.
I t is a pained tag.
The attatbutes of ifname co) sounce faame boadea height
and width.
o HTML Entities:
I t is used to.ceate,p eseaved symbols.
These ane some of the entities:
P Blts</P)
P),>s CP>
KP &negs</p)
P &coPy </p>©
P&euj0 <JP) E:
(P> &dollan; k/p>>>s