COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

Similar documents
SYBMM ADVANCED COMPUTERS QUESTION BANK 2013

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

CSS CSS how to display to solve a problem External Style Sheets CSS files CSS Syntax

CSC 121 Computers and Scientific Thinking

HTML Tags <A></A> <A HREF=" CNN </A> HREF

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

A Balanced Introduction to Computer Science, 3/E

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

Summary 4/5. (contains info about the html)

Web Technologies - by G. Sreenivasulu Handout - 1 UNIT - I

HTML What is HTML Hyper Text Markup Language is a computer based language used to create WebPages.

HTML Hints & Tips. HTML is short for HyperText Markup Language.

Html basics Course Outline

INFS 2150 / 7150 Intro to Web Development / HTML Programming

Creating Web Pages Using HTML

A Brief Introduction to HTML

IMY 110 Theme 7 HTML Tables

CSC Web Technologies, Spring HTML Review

HTML Element A pair of tags and the content these include are known as an element

LAB MANUAL SUBJECT: WEB TECHNOLOGY CLASS : T.E (COMPUTER) SEMESTER: VI

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

Spring 2014 Interim. HTML forms

Overview of Forms. Forms are used all over the Web to: Types of forms: Accept information Provide interactivity

HTML. Asst. Prof. Dr. Kanda Runapongsa Saikaew Department of Computer Engineering Khon Kaen University

Shatin Tsung Tsin Secondary School S.3 Computer and Technology Web Page Design by HTML Introduction to HTML

Tables *Note: Nothing in Volcano!*

HTML Tables and. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

Creating a Web Page with HTML

Building Web Based Application using HTML

Indian Institute of Technology Kharagpur. HTML Part III. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T.

Hyper Text Markup Language HTML: A Tutorial

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

HTTP and HTML. We will use HTML as a frontend to our webapplications, therefore a basic knowledge of HTML is required, especially in forms.

HTML Forms. By Jaroslav Mohapl

UNIT-02 Hyper Text Markup Language (HTML) UNIT-02/LECTURE-01 Introduction to Hyper Text Markup Language (HTML) About HTML: [RGPV/Dec 2013(4)]

By Ryan Stevenson. Guidebook #2 HTML

(Refer Slide Time: 01:41) (Refer Slide Time: 01:42)

HTML & XHTML Tag Quick Reference

HTML. LBSC 690: Jordan Boyd-Graber. October 1, LBSC 690: Jordan Boyd-Graber () HTML October 1, / 29

Chapter 4 Notes. Creating Tables in a Website

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

Creating Web Pages. Getting Started

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

Selected Sections of Applied Informatics

WTAD Text Editors for HTML. Text Editors: Kate HTML. (HyperText Markup Language)

WTAD. Unit -1 Introduction to HTML (HyperText Markup Language)

Advanced HTML Scripting WebGUI Users Conference

WEB PAGE DESIGN. Structure

COMPUTER APPLICATIONS 10. HTML - Structural Tags SECTION-B

A website is a way to present your content to the world, using HTML to present that content and make it look good

COMP1000 Mid-Session Test 2017s1

HTML Tables and Forms. Outline. Review. Review. Example Demo/ Walkthrough. CS 418/518 Web Programming Spring Tables to Display Data"

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

THE ASIAN SCHOOL. Class-10. ch8. A. Check the Right Answer (1*9)

HTML Form. Kanida Sinmai

Lesson: 6 Database and DBMS an Introduction. Lesson: 7 HTML Advance and features. Types of Questions

HTML Tags Chart. To use any of the following HTML tags, simply select the HTML code you'd like and copy and paste it into your web page.

Tables & Lists. Organized Data. R. Scott Granneman. Jans Carton

MMGD0204 Web Application Technologies. Chapter 3 HTML - TEXT FORMATTING

Chapter 4. Introduction to XHTML: Part 1

Web Publishing with HTML

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

HTML 5 Tables and Forms

Introduction to HTML. SSE 3200 Web-based Services. Michigan Technological University Nilufer Onder

Certified HTML Designer VS-1027

Advanced Web Programming C2. Basic Web Technologies

2.1 Origins and Evolution of HTML

Name Related Elements Type Default Depr. DTD Comment

</HTML> </HEAD> </BODY> </TITLE> </I> </B> </U> </BLINK> </EM> </FONT> </FONT> </CENTER> </H1> </H2> </H3> </P> </BR> --!>

Tag Name Code Example Browser View. <!--This can be viewed in the HTML part of a document--> <a href=" Visit Our Site</a>

Advanced HTML 5.1 INTRODUCTION 5.2 OBJECTIVES

HTML WORKSHEET Explain HTML HEAD Tag Title Tag BASEFONT Tag

How to use the Dealer Car Search ebay posting tool. Overview. Creating your settings

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 2 Introduction to XHTML

D B M G. Introduction to databases. Web programming: the HTML language. Web programming. The HTML Politecnico di Torino 1

2.1 Origins and Evolution of HTML. 2.3 HTML Document Structure

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

HTML Images - The <img> Tag and the Src Attribute

Working with HTML. must appear at the very beginning of your webpage. starts the first section of your page

Introduction to HTML. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

ITL Public School Mid Term examination ( )

Using Dreamweaver CS6

Creating web pages Chapter 5. Structuring contents

Using Dreamweaver 2 HTML

Introduction to using HTML to design webpages

The Hypertext Markup Language (HTML) Part II. Hamid Zarrabi-Zadeh Web Programming Fall 2013

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

Table Basics. The structure of an table

Title: Jan 29 11:03 AM (1 of 23) Note that I have now added color and some alignment to the middle and to the right on this example.

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

CSE 3. Marking Up with HTML. Comics Updates Shortcut(s)/Tip(s) of the Day Google Earth/Google Maps ssh Anti-Spyware

Final Exam Study Guide

HTML. Hypertext Markup Language. Code used to create web pages

2.1 Origins and Evolution of HTML

Table-Based Web Pages

HTML OBJECTIVES WHAT IS HTML? BY FAITH BRENNER AN INTRODUCTION

Transcription:

CHAPTER 1: HTML 1. What is HTML? Define its structure. a. HTML [Hypertext Markup Language] is the main markup language for creating web pages and other information that can be displayed in a web browser. b. HTML is written in the form of HTML elements consisting tags enclosed in angle-brackets within the web content. c. An HTML page is divided into 2 major sections: i. Head 1. The head (<head></head>) section contains underlying information about the page which is not displayed in the webpage. ii. Body 1. The body (<body></body>) section contains all the stuff (text, image, flash movie, etc.) that appears on the actual web page when someone happens to come along with their web browser. d. Note: Every page MUST begin and end with the HTML tag. e. E.g.:<HTML> <HEAD> <TITLE> Document s Title </TITLE> </HEAD> <BODY> Actual content of the web page. </BODY> </HTML> 2. Explain the following tags : a. <HTML> <HTML> tag denotes the document is a HTML webpage. Every HTML document should have <HTML> and </HTML> tags at the beginning and the end respectively. All other tags must reside within the <HTML>. </HTML> tag. E.G. : <HTML> <BODY> Demo Paragraph. </BODY> </HTML> b. <HEAD> The header of a webpage is denoted by <HEAD> tag. The Header section can be merged with the <TITLE> tag denoting the title for the webpage. </HEAD> denotes the end of the header area. E.G. : <HTML> <HEAD> <TITLE> Title 1 </TTILE> </HEAD> </HTML> 1

c. <TITLE> <TITLE> denotes the start of the title of the webpage which is displayed in the TITLE BAR. The title of a webpage should always be descriptive so as to help the user in searching and indexing the programs to name the webpage. No extra space should be kept between <TITLE> tag and the text of the title so as to make it compact. E.G. : <HTML> <HEAD> <TITLE> Title 1 </TTILE> </HEAD> </HTML> d. <BODY> The text between the <BODY> and </BODY> tags is the actual content of the webpage. The <BODY> tag can be accompanied by several attributes like BACKCOLOR, BACKGROUND, FONT SIZE, etc. E.G. : <HTML> 2 <BODY> This is a demo paragraph. </BODY> </HTML> e. <P> tag A paragraph of a text is indicated by a <P> tag. The </P> tag can be omitted as browsers understand that when they encounter a <P> tag, it implies that there is an end to the previous paragraph. A browser ignores the extra spaces encountered in the text file as it has its own set of rules on spacing that do not depend on the spaces of your source file. Hence it is specifically done with the help of paragraph tag. A <P> tag has one optional attribute align which helps the appearance/alignment of the text. E.G.: <P align=left> Values of align can be Left, Right, Center or Justify. f. <BR> tag The <BR> tag forces a line break with no extra (white) space between lines. The difference between <P> and <BR> tag is <P> tag elements for short lines such as postal addresses results in unwanted additional whitespace. E.G.: KANISHKA KHATRI <BR> F.Y.B.M.M. <BR> S.Y.B.M.M. <BR> F.Y.B.M.S. OUTPUT : KANISHKA KHATRI F.Y.B.M.M. S.Y.B.M.M. F.Y.B.M.S. g. <HR> tag The <HR> tag produces a horizontal line with respect to the width of the browser window. A horizontal ruler is useful to separate sections of a document. E.G.: <HR size=3 width=50% noshade>

The above statement will produce a ruler of 3 pixel spread around 50% of the browsers screen and will not produce and shade. h. <PRE> tag The <PRE> tag (stands for Pre-formatted ) generates a text in a fixed-width font. This tag also recognizes spaces, new lines, and tabs significant (multiple spaces are displayed as multiple spaces and lines break in the same locations as in the source HTML file). The text appears in mono space form. E.G.: <PRE> * * * * * </PRE> 3 Will be displayed as: * * * * * i. <B> tag The <B> tag specifies text that should appear boldface. E.G.: This morning is so <B> Good. </B> Will be displayed as : This morning is so Good. j. <I> tag The <I> tag specifies text that should appear as italic. E.G.: This morning is so <I> Good. </I> Will be displayed as : This morning is so Good. k. <U> tag The <U> tag underlines text in a document E.G.: This morning is so <U> Good. </U> Will be displayed as : This morning is so Good. l. <SUB> tag The <SUB> tag indicates a subscript text. It is bit lower that the normal text. E.G.: H <SUB> 2 </SUB> O Will be displayed as H 2 O m. <SUP> tag The <SUP> tag indicates a subscript text. It is bit higher than the normal text. E.G.: (a + b) <SUB> 2 </SUB> Will be displayed as (a + b) 2 n. <STRIKE> tag <STRIKE> tag is used to strikethrough a text. The text enclosed within <STRIKE> and </STRIKE> tags will have a line drawn through the middle of the text. E.G. : <STRIKE> Strikethrough text </STRIKE> Output : Strikethrough text

o. <BIG> tag The <BIG> tag displays the enclosed text larger than the surrounding text. It has the same effect as <FONT SIZE= +1 >. If the size of the text is maximum, <BIG> tag is ignored. E.G.: <BIG> This is a big text </BIG> Output : This is a big text p. <SMALL> tag The <SMALL> tag displays the enclosed text smaller than the surrounding text. It has the same effect as <FONT SIZE= -1 >. If the size of the text is minimum, <SMALL> tag is ignored. E.G.: <SMALL> This is a small text </SMALL> Output : This is a small text q. <FONT> tag <FONT> tag specifies font characteristics for the text of the document, including color, size and face. Attributes : SIZE =. specifies relative font size on a scale of 1 through 7. You can also specify the relative size by using + or sign, e.g. +2 COLOR =. specifies font color in #RRGGBB numbers or with color names. FACE =. specifies type faces as a list of possible faces, in order of preference, separated by commas for example Times New Roman, Arial, Monotype Corsiva E.G.: <FONT FACE= TIMES NEW ROMAN SIZE= +2 COLOR= BLUE > r. <IMG> tag Images are placed in a HTML file using <IMG> tag. Few attributes of <IMG> tag are : [shortcut : SAHAB W] a. SRC : specifies the source file of the image. b. ALT : specifies an alternate text describing the image in short. c. HEIGHT : specifies the height of the image d. ALIGN : specifies the alignment of the image. For inline images, values are TOP, MIDDLE and BOTTOM. For floating images, values are RIGHT and LEFT. e. BORDER : displays the border of the image. By default the value is set to 0. f. WIDTH : specifies the width of the image. E.g.: <IMG SRC= 1.jpg height=150 width=150 border=1 > 3. Explain <table> tag. A table is a good way to present rows and columns (cells) of data. Table starts with <TABLE> and ends with </TABLE> tag. Note that all the elements of the table will be ignored if they are not enclosed within a <TABLE>. </TABLE> tag. Designing a table starts by creating a row first (<tr>) proceeded by entering the table data (<td>) from left to right. Inserting the table data will automatically insert columns which complete the designing part of one cell. Table heads (rows/columns/both) are specified by <th> and </th> tags. Attributes of <table> tag are : [shortcut : BW A(BC) 2 ] 4

a. Border : displays the border of the table and the cells. By default the value of border is set to 0. b. Width : specifies the width of the table with respect to the webpage. c. Align : specifies the alignment of the table. By default the align attribute is set to left. d. Bgcolor : specifies the background color of the table. e. Bordercolor : specifies the color of the border. f. Cellspacing : decides the amount of space between the cells. g. Cellpadding : decides the amount of space between each cell border and its actual content/s. Attributes of <TD>, <TH> and <TR> tags : [shortcut : Ali Vali B] a. Align : specifies the horizontal alignment of row or column. By default the value is set to left. b. Valign : specifies the vertical alignment of row or column. By default the value is set to left. c. Bgcolor : specifies the background color of the row/column. Attributes of <td> a. rowspan : merges the number of rows specified. b. colspan : merges the number of cols specified. E.G.: <table border=1 align=center> <tr > <td rowspan=3> 1 </td> <td> 2 </td> <td rowspan=2> 3 </td> </tr> <tr> <td> 5 </tr> <tr> <td colspan=2 align=center> 8 </td> </table> </tr> OUTPUT: 5

4. Explain <OL> tag <OL> tag is used to create an ordered list. Ordered list contains a list of items having a particular sequence. Types of ordered list 1, 2, 3, A, B, C,. a, b, c, I, II, III, i, ii, iii,.. Ordered lists are preceded by Roman numerals, Arabic numerals (upper and lower case) and alphanumeric (upper and lower case) characters.. <LI> tag is used with <OL> tag to indicate List Index. By default, an ordered list is numbered in Roman fashion. Other attributes: 1. Start : specifies the beginning of list (can be used in case the user needs to start with a number other than 1. E.G.: <center><ol><b>types of Ordered List</b> <li> Type 1 </ol> <ol type=a><li> Type 2 </ol> <ol type=a><li> Type 3 </ol> <ol type=i><li> Type 4 </ol> <ol type=i><li> Type 5 </ol> OUTPUT: 6

5. Explain <UL> tag Unordered list (also known as bulleted list) are handy and without a sequence number. This list starts with <UL> and ends with </UL> tag. Steps : 1. Open a list using <UL> tag. 2. Enter the list Item using <LI> tag. </LI> is optional. 3. End the entire list with a closing </UL> tag. They can be preceded by several styles like a disc ( ), a hollow circle ( ) or a square ( ). The default appearance for an unordered list is a disc. E.G.: <ul>subjects <li>eng</li> <li>hindi</li> <li>it</li> <ul type="square"> <li>html</li> </ul> <li>bk</li> <li>oc</li> <ul type="circle"> <li>blank</li> </ul> </ul> OUTPUT: 6. Explain different Form Elements. HTML forms are used to pass data to a server. An HTML form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and more. A form can also contain select lists, textarea, fieldset, legend, and label elements. The tag is used to create an HTML form: 7

. input elements. HTML Forms - The Input Element The most important form element is the <input> element. The <input> element is used to select user information. An <input> element can vary in many ways, depending on the type attribute. An <input> element can be of type text field, checkbox, password, radio button, submit button, and more. Text Fields <input type="text"> defines a one-line input field that a user can enter text into: First name: <input type="text" name="firstname"><br> Last name: <input type="text" name="lastname"> How the HTML code above looks in a browser: First name: Last name: Note: The form itself is not visible. Also note that the default width of a text field is 20 characters. Password Field <input type="password"> defines a password field: Password: <input type="password" name="pwd"> How the HTML code above looks in a browser: Password: Note: The characters in a password field are masked (shown as asterisks or circles). 8

Radio Buttons <input type="radio"> defines a radio button. Radio buttons let a user select ONLY ONE of a limited number of choices: <input type="radio" name="sex" value="male">male<br> <input type="radio" name="sex" value="female">female How the HTML code above looks in a browser: Male Female Checkboxes <input type="checkbox"> defines a checkbox. Checkboxes let a user select ZERO or MORE options of a limited number of choices. <input type="checkbox" name="vehicle" value="bike">i have a bike<br> <input type="checkbox" name="vehicle" value="car">i have a car How the HTML code above looks in a browser: I have a bike I have a car Submit Button <input type="submit"> defines a submit button. A submit button is used to send form data to a server. The data is sent to the page specified in the form's action attribute. The file defined in the action attribute usually does something with the received input: Username: <input type="text" name="user"> 9

<input type="submit" value="submit"> OUTPUT Username: Submit Reset Button <input type="reset"> defines a reset button. A reset button is used to reset/clear form data. Username: <input type="text" name="user"> <input type="submit" value="submit"> <input type="reset" value="reset"> How the HTML code above looks in a browser: Username: Submit Reset Dropdown List A SELECT menu, or a pulldown menu has 3 attributes - name, size, and multiple. The SELECT item needs the OPTION element to list the values. A SELECT box of SIZE=3<BR> <SELECT SIZE="2"> <OPTION>ONE <OPTION>TWO <OPTION>THREE </SELECT> <br><br> A SELECT box of with no SIZE specified: <BR> <SELECT> <OPTION>ONE <OPTION>TWO <OPTION>THREE </SELECT> 10

OUTPUT 11