Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
49 views14 pages

Web Technologies Short Answers

Web Technology

Uploaded by

Mohammed Mubeen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
49 views14 pages

Web Technologies Short Answers

Web Technology

Uploaded by

Mohammed Mubeen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 14
PART-A SHORT QUESTIONS WITH SOLUTIONS Q1. Write about difforent formatting tags Answer | ormatting the text content present in a web page can be done by using formatting tags. Various formatting tags in HIME are 1. Paragraph The lag ~ p> allows the text to be written in a paragraph (i.¢., block-wise). 2. Center Tag The tag ~ center> allows the text to be written in center of a page. 3. Break Tag The tag
shows a line break. 4. Bold Text The tag ~b> displays the text in bold format. 5. Italic Text The tag ~1> displays the text in italicized format. 6. Marked Text The tag ~mark> displays the text by highlighting or marking it. 7. Underlined Text The tag ~u> displays the text in underlined format. 8. Subscript The tag ~sub> displays the text in the subscripted format. 9. Superscript The tag displays the text in the superscripted format. 10. Bgcolor The tag provides color to the background of a page. This tag is used in the body of htm! document. Q2. Write about various controls of forms. Answer : ‘Model Paper, 08 Form Controls (i) The BUTTON Element In HTML, button is generally used to trigger appropriate code of javascript. Syntax Example (ii) The TEXT Element In HTML, Text elements are considered as data entry fields. These fields generally accept single line of text. Syntax Example INPUT TYPE = “password” NAME = “emp_id” VALUE = “default"> ‘SIA PUBLISHERS AND DISTRIBUTORS PVT. LTD. Model Papert, og | follows, xt” Name = “name of text field” VALUE = “default value"> JOHN"> NS Introduction Ln 3 uN gubmit Buen «HTML. the submit button sends the data ir the foe tothe Web server Ne data entered syntax yNPUT TYPE submit” NAME trmut burton” VALUE name of the “submit button label Example INPUT TYPE = "SUBMIT! NAME VALUE “NALIDATE™ employee” How to create col as. values in HTML? Explain. answer! color Values in HTML JoHTML colors are specified through the use a Fey colot combination of fed, green and blue values from Sets Avolor Value can be set through the attribute equal we hend dectmal value. A pound sign must precede the vac value Example The above statements creates the web page with (4. Write about ALT attribute. Answer : ALT stands for alternative text. ALT attribute may certain times that, the browser may fail to display the required image due to several underlying reasons. In such cuanons there should be certain (text relative to the image) dssplayed on the account of its (image) absence. This can be done using ALT attribute. ‘Syntax “Text with each " Here, anally the entire teat 1s ert laps
    text to be displayed « independent sentence initiating with «10» and ct wath These Iists are used when user ts willing to display tests ally using bullets hers, small wn sequer Syntax sol» Definition Lists This a special type of list that Insts terms and their definitions. Itis created using (define Ist) dl - tag A term in a definition lst is specified using ~dt «(define term) tag and its definition 1s specified using ~ dé (define definition) tag Syntax
    .
    .
    ite Q6. Write about the tags used for creating table. Answer : Mode! Paper at Qt In HTML, data can also be represented in tabular format, This format is considered as one of the traditional approach of data management. In this approach a data 's usu ally organized in terms of rows and columns. The tags and attributes that helps in creating HTML table are as follows re a ..~/TABLE> .. STHEAD> ~ TROOP _—_— SIA PUBLISHERS AND DISTRIBUTORS PVT. LTD. ° WED TECHOLED:2) \ 7) Wenat 19 0 froma MTEL? Given cn oncmplo, — Acoocr | ode! Papers oy Fromo Tes cxspat ccrcen of every HIME application nothing but frame Hence frame can be define a the region of the rowan deploying certain ouput, The region of the Browser can he divided into’ multiple regrons, hence they cen by rosea «where cach region corresponds to an independent frame) Here each independent freme ec referred 63 Oc! us files can be viewed at one glance delay en indopendent “HTML.” file. Hence within a single window, Encmpo Fremo.himl Codestin Search App FRAME example teg in HTML. hunt ° y Acower 1 tay style ~ “background-color-blue”.> Image tag is used to add an umage to the page. This cps sFRAME-2

    is dome by prov ding suitable image source 1m the 18 ody Syntax of image tag #8, nemi> rrome-3 ‘Aniributes supported by the image 18 aFe> (a) se (b) Alt

    chl>FRAME-3h1>

    (©) Align (d) Border (e) Hight ‘Width Program Main Prog (0) Hspace/Vspace (g) Longdese (hb) Name. ‘Frameset page “ead < hom! Hello SIA GROUP!

    Hello SIA GROUP!

    output Hello SIA GROUP! Hello SIA GROUP! Q4. Write about style rule. Answer : Mode! Papers. a7 Style rules for CSS file define the appearance of a document. They are easy to write and understand style rules which express the characteristics of an element. Set of style rules together form a style sheet. Style rules are placed in a separate document which stores only the rules related to the appearance/presentation. A style rule is composed of two units, (a) Selector It represents the elements to which the rule applies. (0) Declaration It represents the properties of an element(i.e., color, font-style, etc). ‘Syntax Selector (Declaration;) Selector (Property-value:) Example bl (Text-align:cemter;) ‘SIA PUBLISHERS AND DISTRIBUTORS PVT. LTD. “ wen TecHMOLOGKR, QS. What is a filter? Why It is used? Anewer : out any time delay. This is because indy vo some HTML objects and some othey asually applied to text and graphic, A Gilt in DHTML isa feature that provides visual effects to web pages with ot take time for provessing on servers's machine. Its used to apply visual effects t objects like button, div, img, marquee, input, span, table, ete. In HTML, filters afe DHTML provides a wide variety of filters. Some of them are as follows, 1 Flip 2. Flipv 3. Blur 4. Wave 5S. Chom 6. Glow 7. GrayScale 8 Invert 9 Mask 10. Shadow. Q6. Write « short note on transitions. Answer: Model Peper, ar Transitions are filters that provide effects to the content of web page. They are responsible for visually changing the control/moving a page from one state to another. They provide time-based effects thereby allowing the user to create animation in images. Transitions provide a wide variety of style effects that enable the users to create slide shows in web pages. Internet Explorer 4.0 supports two types of transitions. They are, 1. Reveal transition filter —— ile tm ih Fe Q7. What is reveal transition fitter? Also write its syntax. Answer: Reveal Transition Filter nem, The reveal transition filter written as RevealTrans is applied to multiple visual objects together inorder to show/hide Syntax (“fiher-revealtrans(duration = value, transition = value)} Here, duration is the value/time duration taken by the transition. It is exposed in “seconds milliseconds”. For example, 4.3 is illustrated as 4 seconds. 300 milliseconds. Q8. List out the advantages of CSS. Amower : Model Paper, at The advantages of CSS are as follows, () CSS moves HTML towards its goal of device independence (ii) It reduces the proprictary nature of the elements. (iii) It gets flexible control on the layout. (iv) It separates the presentation of the document from its content. (v) _ Itallows the developers to concentrate on the development of the document without concerning about its visual presentation. (vi) It reduces the development time by allowing the document writers to apply the same stylesheets on differest documents. SLA PUBLISHERS AND DISTRIBUTORS PVT, LTD, Qt. What is JavaScript? What is its use? Pape Mode Answer; iad JavaScript logies. It faci Jasa scrips programming language will direct support to object oriented methodol: me nly oof certain executable data along with it Uses of JavaScript well as server side. (9) Java script is multi-functional ie, it can be used at a client side scripting as well as it can manipulate almost al of ye. (1) Itty used to provide an easy way of accessing document objects as objects (11) 111s used to provide altractive animations with a less download time for the multimedia data types, (1) __I supports event based programming, Q2. List the foatures of JavaScript. Answer : The features of JavaScript are as follows, (1) Ihsan object-based language that is confined to run within the web browser only. (0) Its an interpreted language and requires no compilation. ) It can be directly embedded in to HTML files. The HTML files with embedded JavaScript commands can be interpreted by any browser that is JavaScript enabled. (0) Itis a loosely typed language i.e. one data type can be automatically converted into other types without expiici, conversion (8) Itsupports event-based programming. (31) [Lis multi functional i.e., it can be used at a client side scripting as well as server side. Q3. What is the difference between HTML and java scripts? HTML Java Script | ] HTML is server-side mark up language. Java script is client-side scripting language. 2 | tis used to create static web pages. It can add interactivity to the HTML pages. tis compatible with all browsers. It’s functions are not always compatible with all browsers. Itis used to customize web page Itis a programming code. uses Java language along with markup language. I defines how a page looks like. 5 | Itis nota programming code. pure markup language. Q4. Write the structure of java script program. Answer: The structure of javascript code begin with the tag “

    ..TH™ ./TD>