Академический Документы
Профессиональный Документы
Культура Документы
PROGRAMMING
PRESENTED BY,
MANOJ KUMAR D S,
ASSISTANT PROFESSOR,
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING.
USAGE OF INTERNET
Applyforjobsorschools
Filloutgovernmentforms
Checkbankaccounts
Communicatewithfamily,friendsandco-workers
Doresearch
Learnnewskills
Readnews
Watchvideos
Your computer
Landline
ISP
Internet
Travelsthroughfiber-opticcablesunderground
NeedstobeconnectedbyaModemtoyourcomputer
Modem:AhubthatconnectsthecomputertotheInternet
FasterthanDial-up
YourcomputermustbeaWirelessenableddevice.
Yourcomputercanpickupsignalsfromdifferentwirelessnetworks.
Somenetworksrequirepasswordsorasubscription,othersarefree.
Thisiswhatthewirelesssymbolwouldlooklikeifyourcomputerwas
connected.
WirelessFidelity(WI-FI)
Web Browser
Aweb-basedprogramthatdisplaystheInternet
CommonWebBrowsers
Safari: forApples/Macintosh
Internet Explorer: forWindowsonly
Google Chrome: createdbyGoogle
Mozilla Firefox: worksonMac&WindowsPC
IF FACEBOOK WAS A
SCHOOL I WOULD HAVE GOT
100% FOR ATTENDANCE
-UNKNOWN
HTML
Hyper Text Markup Language, commonly referred to asHTML, is the standardmarkup
languageusedtocreatewebpages.
It is written in the form ofHTML elementsconsisting oftagsenclosed inangle
brackets(like<html>).
The first tag in such a pair is thestart tag, and the second is theend tag(they are also
calledopening tagsandclosing tags).
HTMLelementsformthebuildingblocksofallwebsites.
HTML allowsimages and objectsto be embedded and can be used to
createinteractiveforms.
Itprovidesameanstocreatestructureddocumentsbydenotingstructuralsemantics
fortextsuchasheadings,paragraphs,lists,links,quotesandotheritems.
It can embedscriptswritten in languages such asJavaScriptwhich affect the
behaviourofHTMLwebpages.
WebbrowserscanalsorefertoCascadingStyleSheets(CSS)todefinethelookand
layoutoftextandothermaterial.
TheWorld Wide Web Consortium(W3C), maintainer of both the HTML and the
CSSstandards,hasencouragedtheuseofCSSoverexplicitpresentationalHTML
since1999.
HTML Tags
ThemostbasictagistheHTMLtag.
This is used so the browser will know that the content to follow is HTML
code/content.(Mostbrowsersassumethisbydefaultevenwithouttheuseof
theHTMLtag.)
<HTML>
</HTML>
Tosetsomethinginbold,usethe<B></B>tagsandincludethepiecetobesetinboldinbetween.
Example.
<HTML>
Thepurposeofthisexperimentistolearnmoreabouttheway<B>people</B>understand
<B>machines</B>.
</HTML>
Example.
<HTML>
Althoughtheaveragescoreinthissampleis4.23,<I>yourscore</I>was6.32.
</HTML>
Note:Thefonttagisthefirstofseveraltagswewilldiscussthathaveattributes.Forexample,
whensettingthefont,youcanadjusttheface,thesize,andthecolor.
Example
<HTML>
<FONTSIZE=2FACE=arialCOLOR=blue>
Welcometoourlabwebpage!
</FONT>
</HTML>
Line spacing
InHTML,carriagereturnsarenotcodedaslinebreaks.Youcanusethemallyouwishtoformat
yourfile,butthepresenceofareturninthecodewillnotaffecttherenderingofthetext.
Toinsertalinebreak,youmustincludeatagforit.
Thelinebreaktagis<BR>.Thereisnoclosingtag.
Line spacing
Example.
<HTML>
<FONTSIZE=3FACE=arialCOLOR=blue>
PersonalityResearchLab
</FONT>
<BR><BR>
<FONTSIZE=2FACE=arialCOLOR=blue>
Welcometoourlabwebpage!
</FONT>
</HTML>
Centering Text
Tocentertext,usethe<CENTER>and</CENTER>tags
Example.
<HTML>
<CENTER>PersonalityResearchLab</CENTER>
<BR><BR>
Thepurposeofthisexperimentistolearnmoreaboutthewaypeopleunderstandothers.
</HTML>
Creating Links
Alinkisaportionofthepagethat,whenclicked,automaticallytransportstheusertoanewpage.
HTMLcode:
<AHREF=http://www.google.com>clickheretogotoGoogle</A>
Note:TheAstandsforanchor.TheHREFattributeistheURLforthepageyouwantthe
usertogotowhenthelinkisclicked.Thetextinbetweenthetwotagswillbewhattheusersees
asthelink.
Tables
Tablesareavaluablewaytoorganizetheplacementoftextonawebpage.
Afewimportantthingstoknowaboutthewaytablecodeisprocessedbybrowsers.
-Rowbyrow
-Lefttoright
Tables
Anytextthatisplacedin-betweenthesetagswillberenderedbythebrowser.
Example.
<TABLE>
</TABLE>
Tables
The<TR>and</TR>tagsareusedtodenoteanewTableRow.
<TABLE>
<TR>
</TR>
</TABLE>
Tables
The<TD></TD>tagsareusedtodenoteacellwithinarow.
Anytextthatisplacedin-betweenthesetagswillberenderedwithinthatcellinthetable.
Example
<TABLE>
<TR>
<TD>cell1</TD>
<TD>cell2</TD>
</TR>
</TABLE>
Tables
Modifyingtableattributes:
<TABLEBORDER=1BGCOLOR=gray>
<TR>
<TD>cell1</TD>
<TD>cell2</TD>
</TR>
<TR>
<TD>cell3</TD>
<TD>cell4</TD>
</TR>
Thisisespeciallyinconvenientwhenworkingwithtablesbecausethetexthastobeformatted
separatelywithineachcell.
CSS provides a means for separating style from content and is an efficient way to add
personalitytoyourwebpages.
CSS
Adjustingthewayinwhichlinksbehave.
<HTML>
<styletype="text/css"media="all">
a:link
{color:blue;}
a:visited
{color:navy;}
a:active {color:pink;}
}
</style>
Welcometomywebpage!<BR>
<AHREF=http://www.google.com>clickheretogotoGoogle</A>