UNIT -II. Language-History and Versions Introduction JavaScript in Perspective-

Similar documents
Chapter 3 Style Sheets: CSS

HTML and CSS COURSE SYLLABUS

Working with JavaScript

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

Deccansoft Software Services

Introduction to JavaScript p. 1 JavaScript Myths p. 2 Versions of JavaScript p. 2 Client-Side JavaScript p. 3 JavaScript in Other Contexts p.

COMS 359: Interactive Media

2. Write style rules for how you d like certain elements to look.

JavaScript Lecture 1

CSC Web Programming. Introduction to JavaScript

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

The Benefits of CSS. Less work: Change look of the whole site with one edit

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

UNIT I. A protocol is a precise set of rules defining how components communicate, the format of addresses, how data is split into packets

Introducing Cascading Style Sheets. Cascading Style Sheet Basics Creating Styles Using Styles Manipulating Styles Text Formatting with CSS

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

JAVASCRIPT AND JQUERY: AN INTRODUCTION (WEB PROGRAMMING, X452.1)

Ministry of Higher Education and Scientific Research

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

Kurdistan Regional Government Iraq Ministry of Higher Education and Scientific Research, Duhok Polytechnic University

Tutorial 10: Programming with JavaScript

JavaScript CS 4640 Programming Languages for Web Applications

CGS 3066: Spring 2015 JavaScript Reference

Certified CSS Designer VS-1028

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

JavaScript CS 4640 Programming Languages for Web Applications

CSS: Cascading Style Sheets

This document provides a concise, introductory lesson in HTML formatting.

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

Web Design and Application Development

BEFORE CLASS. If you haven t already installed the Firebug extension for Firefox, download it now from

Varargs Training & Software Development Centre Private Limited, Module: HTML5, CSS3 & JavaScript

Client-Side Web Technologies. CSS Part I

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017)

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

Manju Muralidharan Priya. CS4PM Web Aesthetics and Development WEEK 11

JavaScript: The Basics

BIM222 Internet Programming

CSS THE M\SS1NG MANUAL. David Sawyer McFarland. POGUE PRESS" O'REILLr Beijing Cambridge Farnham Köln Paris Sebastopol Taipei Tokyo

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Hypertext Markup Language, or HTML, is a markup

CSS: The Basics CISC 282 September 20, 2014

COMP519 Web Programming Lecture 6: Cascading Style Sheets: Part 2 Handouts

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

Assignments (4) Assessment as per Schedule (2)

Create web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes

Creating Web Pages with HTML-Level III Tutorials HTML 6.01

Three Ways to Use CSS:

INTRODUCTION TO CSS. Mohammad Jawad Kadhim

welcome to BOILERCAMP HOW TO WEB DEV

Web Information System Design No.4 Put Style to Web Documents. Tatsuya Hagino

E ECMAScript, 21 elements collection, HTML, 30 31, 31. Index 161

Setting Up a Development Server What Is a WAMP, MAMP, or LAMP? Installing a WAMP on Windows Testing the InstallationAlternative WAMPs Installing a

Web Site Development with HTML/JavaScrip

COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018)

CE212 Web Application Programming Part 1

ABOUT WEB TECHNOLOGY COURSE SCOPE:

INTRODUCTION TO HTML5! CSS Styles!

How to create and edit a CSS rule

Web Design and Development ACS-1809

Princess Nourah bint Abdulrahman University. Computer Sciences Department

Chapter 3 Data Types and Variables

UNIT -I PART-A Q.No Question Competence BTL

Objective % Select and utilize tools to design and develop websites.

Client-Side Web Technologies. JavaScript Part I

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

Creating and Building Websites

8a. Cascading Style Sheet

Introduction to Web Technologies

ITNP43: HTML Lecture 4

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

CSS Cascading Style Sheets

CSS Cascading Style Sheets

Programming the World Wide Web by Robert W. Sebesta

IT6503 WEB PROGRAMMING. Unit-I

AIM. 10 September

Using Dreamweaver to Create Page Layouts

Alpha College of Engineering and Technology. Question Bank

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

JavaScript. History. Adding JavaScript to a page. CS144: Web Applications

HTML & CSS. SWE 432, Fall 2017 Design and Implementation of Software for the Web

Creating a Website: Advanced Dreamweaver

XML: Introduction. !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... Directive... 9:11

1 of 7 11/12/2009 9:29 AM

What is PHP? [1] Figure 1 [1]

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

Figure 1 Properties panel, HTML mode

IBM Forms V8.0 Custom Themes IBM Corporation

Index. CSS directive, # (octothorpe), intrapage links, 26

Revision for Grade 7 ASP in Unit :1&2 Design & Technology Subject

Session 16. JavaScript Part 1. Reading

Cascading Style Sheet

PHP 5 Introduction. What You Should Already Know. What is PHP? What is a PHP File? What Can PHP Do? Why PHP?

1.1 Customize the Layout and Appearance of a Web Page. 1.2 Understand ASP.NET Intrinsic Objects. 1.3 Understand State Information in Web Applications

UNIT 1: JAVA PROGRAMMING PART A. 1. What is meant by Object Oriented Programming?

Computing Science: National 5 and Higher skills, knowledge and understanding

INFS 2150 Introduction to Web Development and e-commerce Technology. Programming with JavaScript

Objectives. Introduction to JavaScript. Introduction to JavaScript INFS Peter Y. Wu, RMU 1

Transcription:

UNIT -II Style Sheets: CSS-Introduction to Cascading Style Sheets-Features- Core Syntax-Style Sheets and HTML Style Rle Cascading and Inheritance-Text Properties-Box Model Normal Flow Box Layout- Beyond the Normal Flow-Other Properties-Case Study. Client- Side Programming: The JavaScript Language-History and Versions Introduction JavaScript in Perspective- Syntax-Variables and Data Types-Statements-Operators- Literals- Functions-Objects- Arrays-Built-in Objects-JavaScript Debuggers. 1. What are Style Sheets? A style sheet provides a great deal of control over the presentation of a document. 2. Mention the need for cascading style sheets. Need for CSS Allow the information in the document to be presented without change in a variety of ways Relatively easy to give all of the elements on a page consistent appearance Both the document author and the person viewing the document can specify aspect of the document style as it is displayed by the browser 3. What is the use of @import at-rule? The @import at-rule is used to input one style sheet fie into another one. For e.g @import url( common.css ); will first read in rules from the file common.css before continuing with the other rules in this style sheet. 4. What are external style sheets?

The style sheets which has been stored in separate files and included in an HTML documents through the use of a link element are known as external style sheets. 5. What are embedded style sheets? A style sheet that is included in the content of a style element is known as an embedded style sheet. 6. What are the two methods of implementing style sheets? The two methods of implementing styles to HTML elements are Rule Cascading Inheritance 7. Give the syntax of CSS rule. (NOV/DEC2011) A CSS rule has two main parts: a selector, and one or more declarations: The selector is normally the HTML element you want to style. Each declaration consists of a property and a value. The property is the style attribute you want to change. Each property has a value. 8. Who could be the origin of the declaration? The origin of a style sheet declaration is who wrote the declaration, the person who wrote the HTML document, the person who is viewing the document, or the person who wrote the browser software that is displaying the document. Specifically the origin can be one of the following. i) Author ii) User Agent iii) User 9. List out some primary CSS text properties. Some of the primary CSS text properties are: TEXT-DECORATION, LETTER-SPACING WORD-SPACING TEXT- TRANSFORM

TEXT-INDENT 6 TEXT-ALIGN WHITE-SPACE 10. Explain Normal Flow Box Layout. It is a browser s standard rendering model (normal flow processing), where every HTML element rendered by the browser has a corresponding regular box that contains the rendered content of the element. 11. List out the five priority bins of element declarations Important declaration with user origin Important declaration with author origin Normal declaration with author origin Normal declaration with user origin Any declaration with user agent origin 12. What is the use of list style property? The list-style-type property can be used to vary the default styles used for bulleted and numbered list items. It can be applied to the li, ol, ul element types 13. Write the expansion for the following? i) ECMA ii) CSS iii) XHTML iv)xml ECMA- European Computer Manufacturers Association CSS- Cascading Style Sheets XHTML- Extended Hyper Text Markup Language XML- Extensible Markup Language 14. What is a Javascript statement? Give an example. (NOV/DEC2011)

A JavaScript statement is a command to a browser. The purpose of the command is to tell the browser what to do. This JavaScript statement tells the browser to write "Hello Dolly" to the web page: document. write ("Hello Dolly"); It is normal to add a semicolon at the end of each executable statement. Most people think this is a good programming practice, and most often you will see this in JavaScript examples on the web. 15. Why JavaScript has been called dynamically typed language? JavaScript performs many conversions between data types automatically. It is also possible to store different data types in the same variable which is not possible in other languages like Java and C++ which are called statically typed languages. According to the data type stored the type of the variable is determined and it is not necessary for variable type declaration. Hence JavaScript is called dynamically typed language. e.g i=3 i= text 16. Explain array creation in Java script with example. (APRIL/MAY 2011) Array can be defined in three ways i. Using the array constructor directly in a call with no argument. E.G: VAR ARY1=NEW ARRAY(); ARY1[0]=4; ARY1[1]=TRUE; ARY1[2]= OK ii. By supplying two or more arguments to the array Constructor VAR ARY2=NEW ARRAY(4,TRUE, OK ); iii. The Array built-in object can be used to construct object with special properties and that inherit various methods VAR ARY2=[4,TRUE, OK ]; 17. What are the types of positioning? Normal flow positioning Relative positioning Absolute positioning Float positioning 18. Define font family?

Font family is a collection of related fonts, and a font is a mapping from a character (Unicode Standard code point) to a visual representation of the character (a glyph). 19. Define the term glyph. Glyph is a rectangular character cell or the characters content area. 20. List out the class of selectors i. ID Selectors ii. Class and pseudo-class selectors iii. Descendent and type selectors iv. Universal selectors 21. What are Interpreted languages? Programming languages that does not need to be compiled before execution are known as interpreted languages. 22. What are host objects? Objects that are required by the ECMAScript definition for Javascript implementation is provided by the hosting environment are known as host objects. 23. What are native objects? A built-in object is a native object that is automatically constructed during scripting engine initialization rather than being constructed during program execution. E.g. window 24. What are the two components of Javascript implementation?

The primary component is a scripting engine, which includes a Javascript interpreter as well as core ECMAScript functionality that must be present regardless of the scripting environment. The second component is a hosting environment, which provides environment specific capabilities to Javascript programs running within the environment. 25. What do you mean by global object? Global object is named window as global variables declared by your program are actually stored as properties of this object. All built-in and host objects are also stored as properties of global object 26. List out some of the built-in objects of JavaScript? Built-in objects of JavaScript are STRING, NUMBER, BOOLEAN, DATE, MATH, REGEXP. 27. What are the six JavaScript data types? i. Number ii. String iii. Boolean iv. Null v. Object vi. Undefined 28. What is the use of typeof operator? typeof is an operator that provides information about the data type of a value stored in a variable and also its use is to test that a variable has been defined before attempting to use it. 29. What are the three types of statements in JavaScript?

Expression statement: that consists entirely of an expression Block statement: that consists of set of statements enclosed in braces { } Keyword statement: that begin with keywords such as var, if, for etc