Professional Documents
Culture Documents
Unit 1&2 Computer Science Full Notes
Unit 1&2 Computer Science Full Notes
Heading 31>hot Heading 60> 1.2.6, Paragraph element Paragraph element is denoted with sp> and all the tags placed between the
and < P>tags form one paragraph, When the browser renders & paragraph, a blank line usually precedes and follows paragraph text, Example: > The internet is a global system that consists of millions ef publis, Private academic, business, = Scanned with CamScannerch rt the computers connected to jt 4, and government networks of local to global scope. It allows exchange information with one another.
~ To make communication possible, com ' called protocols. The standard TCP/IP suite is used by the Internet to millio
1.2.7, Examples puters on the internet use a common set of rules, ns of users worldwide. First HTML program ‘Siz thisis fire HTML progam —> HTML comments Sle first html ~ > |
shead> ‘ This is first program Welcome to HTML
| Headsection Body. section. Output for the above program: Scanned with CamScannerHTML 1,2.8. Some important tags in HTML ar Opening tag Closing tag Description ——
This tag is used for indicating the head section of the html document title The text within these tags is displayed in the browser's title ba. This tag is used for indicating the main content of the html document. <> This tag makes the enclosed text bold. -this text is bold <> This tag makes the enclosed text italic. this texts italies/i> ‘This tag makes the enclosed text underlined. this text is underlined This tag is used to insert line break.
This tag is used to insert horizontal rules. “This tag is used for indicating pre-formatted text — This tag is used for defining subscript —— This tag is used for defining superscript This is used for indicating emphasis. This tag is used for indicating a citation. This tag is used for indicating a definition. —— This tag is used for indicating the text to be entered b the user.This tag is used for indicating a piece of code. — This tag is used for indicating sample output from 2 computer program. It suggest the text is variable.
‘This tag is used for indicating stronger emphasis than the +=5 danger work in progress \UseA\Desktoplexamplellogicalstyles mt | it Favorites | sp @) Suggested Stes © @) Web Sice Gatey © «| Bepsin tint o » Bor Gh > Page Sslety~ Tooke Ov |] googlecoin _| web server Web serves is a computer runing software which is connected with the internet. || this tag is used for emphasis ee |] enso texe nao to be entered by ene user |] ASCII code for Ais 65 | |] When you select delete option you wil be asked aze you sure Yes/to cick oa yes danger work in progress Scanned with CamScannerHTML, ett eens ne Font tag This tag is used to change font of the text, The attributes that can be used are Face: this attribute is used t change style of the text. Color: this attribte is used to change the color of the text. Size: this attribute is used to change the size of the text. Example: WEB TECHNOLOGIES Hr tag This tag is used for creating a horizontal rule. Attributes are : Align : this attribute is used to align the horizontal rule. Options are left, right and center. Noshade: this is used to remove the usual shading effect Size: this used to specify the height of the horizontal rule. ‘Width: this is used to specify the width of the horizontal rule. Example: .tag. —— This tag is used for specifying large text, It increases the font size by 1 each time itis used.(maximum size is 7 and default size is 3) — This tag is used for specifying small text, The font size decreases by 1(default size is 3). This tag wanders tele type text.
__This tag is used to strike to middle of the text : 7 = Scanned with CamScannerExample:shiml> ~ this text is bold this text is italic this text is underlined this text is bold this text is italic is text pe ’ # Computer| Protected Mode: Off Example 3: Stitle>tags in html Scanned with CamScannerHTML BVK COLLE DWARAKA NAGAR VISAKHAPATNAM ANDHRA PRADESH INDIA EARTH old Rate Rs 1 000new Rate Rs 900 X2+Y2=Z2 2H2+202 —-> 2H2O gt nl - Windows Internet Explore QO e le. cavientiendestoreampiephsiaiyiestint [4] x] [7 ting oy x Grerton Q J search| ‘He Fovorites «sy @) Suggened Stes + ge) Web Sti | Bein Be Bre Peer Sey Toke Oe” | tery © | | DWARAKA NAGAR VISAKHAPATNAM ————_————SBEEOO—vm['m'"n rrr Scanned with CamScannerExample:tags in html google.co.in oftwareweb server Web server is a computer running S' which is connected with the internet. this tag is used for emphasis this text has to be entered by the user ASCII code for A is 65
‘When you select delete option you will be asked imp> click on yes Are you sure Yes/Nox
Review Questions 1. Explain about HTML in brief. 2. Write about HTML document structure. 3. How'is a comment shown in HTML? 4. What are HTML tags? How do the tags that switch a format on differ from those which switch it off? 5. How can the font size, colour and style be changed in HTML? ea Scanned with CamScanner[CHaPTER | HYPER LINKS . Introduction to Hyper Links ing + Ryperlinking 10 an E-mail address + Basic pes of links * Changing link colours * Internal linking + Linking 10 other web pages 2.1. Introduction One of the most important HTML feature is the hyperlink, which references(links) other ©. such as HTML documents and images. When a user clicks a hyperlink, the browse tries to execute an action associated with it. In HTML, both text and images can act as hyperlinks Web browsers underline text hyperlinks and color their text blue by default, so that users cas .yperlinks from plain text. distinguish 2.2. Linking Link otherwise known as Hyper Link. Anchoring tag: ... ~ This tag is an anchoring ti This tag is used to link to other web pages. Attributes of anchoring tag: Scanned with CamScannerHypor Links 2 ef (Hyper text reference) - 1 ; ae YP Set naeee ~ This attribute of an anchoring tag. The value of href Be tute species the location of a linked resource, such as a webpage, a file or an e-mail address. Example: first + name : this attribute is used to make links jump to other sections within the same page. Example: First para + tabindex this attribute sets the order in the tabing index, for using the tab key to move to links ina page. third first second '3">third Andhra University Scanned with CamScanner2 are relative to the current page, The ie site to another, . the path names that + Relative links : these link types of links are commonly used to link from one page in th 2.5 Changing link colours The general colour of text links is specified in the body tag. + Link : standard link to a page (standard colour is blue) + Viink : visited link to a page ( standard colour is purple) Alink: active link, the color of the link when the mouse is on it(standard colour is red) Example: 2.6 Internal linking Internal linking is a mechanism that enables the user to jump between locations in the sane document. Internal linking is useful for long documents that contain many sections. Example :HTML basie structure116633">
basic tags
'>comments
background
Scanned with CamScannerLinks ictureEvery HTML document starts wi a s tells browsers that ‘arts with th g. this s that it is E sume he tag. this tells browsers that it is This may appear anywhere in the document. this tag is an embedded tag.
basic tagsthese tags have simple functionality and are used to create simple HTML documents.
commnetsAn HTML comment is not really a tag. it starts with
. Everything within these character sequences will be ignored by the browsers and will not be parsed. Comments are used to explain the purpose of critical tags in an HTML document. Comments can be placed anywhere in the document.
backgroundThe background of an HTML page is specified in the
tag. you may use pain color or an image as background. if'an image is uded, loading the page takes more time than when plian color is used.
Se Scanned with CamScannerChapter 2avaiger tae See eames Aram M osicstostuce, a ssoments tokeood Nake strectere ony HIME dose sty yh the tg i es yer tha iti the gina of aw HTM, document Ths oy appear anytete ‘nthe document tus te ican embstd 98 tose Dank tags ‘these tags have simple fanctionality ond are use to cteate simple HTML doctments bates commects ‘An HTML comueat is not really ata. i stars with Everything within these character sequences willbe ignoted by the browsers and tall aot be parsed Coenen ae usd to explain the purpose of critical tags in an HTML document, Comments can be placed anywhere smite document el so eae : ea] bask tags hese taps have snp functionality and are wed to create simple HTML. doertents tad touce ‘An HTML ccament i ot really a tag i starts wu , Everything within theve chiacter sequeuces will be ugnoved b ‘pal oct be porved) Comucits ate used to explain the purpose of cttical tgs ivan HTML dssumeut. Comments an the document be owes an be placed auswbcte background The background of an HTM page is ypeciied an the ty yo the page taken more tune than whe pia coloe use pun color ovat nage as background, if an image ty do long 16 Scanned with CamScannerLinking to other web pages — _ _—_ menu oe this is first web pages/title> first web pagesbi/> Back ~ Hyper Links " accesskey="a">first
accesskey="b">second
accesskey="c">third
Scanned with CamScannera earn ENthis is second web page second web page
Backthis is third web page third web page
Back yous @ ote menu Scanned with CamScanneryr Lin con first web page ‘ SEPISIO! o|Mlalao ye REST ss: | nd web page ESI Pol! o |W ilaale + comes third web page Back Scanned with CamScannerChaptor 2 i ns Review Questions 1, Discuss the difference between relative and absolute paths in hyperlinks. 2. Explain about internal links. 3: Explain about external links. 4. Explain attributes of anchoring tag. 5. Explain hyperlinks in HTML. Scanned with CamScanner