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

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

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

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

Web Publishing with HTML

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

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

Programmazione Web a.a. 2017/2018 HTML5

Comp-206 : Introduction to Software Systems Lecture 23. Alexandre Denault Computer Science McGill University Fall 2006

HTML and CSS COURSE SYLLABUS

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

SYBMM ADVANCED COMPUTERS QUESTION BANK 2013

Deccansoft Software Services

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

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

Hyper Text Markup Language HTML: A Tutorial

Web Designing HTML5 NOTES

CSC 121 Computers and Scientific Thinking

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

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

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.

CSC Web Technologies, Spring HTML Review

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

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

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

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

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

Introduction to using HTML to design webpages

Appendix D CSS Properties and Values

With HTML you can create your own Web site. This tutorial teaches you everything about HTML.

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Review Question 1. Which tag is used to create a link to another page? 1. <p> 2. <li> 3. <a> 4. <em>

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

Chapter 3 Style Sheets: CSS

Html basics Course Outline

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

Spring 2014 Interim. HTML forms

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.

Markup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX

Assignments (4) Assessment as per Schedule (2)

Lab Introduction to Cascading Style Sheets

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

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

COSC 2206 Internet Tools. CSS Cascading Style Sheets

Creating Web Pages Using HTML

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

A Balanced Introduction to Computer Science, 3/E

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

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

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

CSS: The Basics CISC 282 September 20, 2014

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

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

CSS. M hiwa ahamad aziz Raparin univercity. 1 Web Design: Lecturer ( m hiwa ahmad aziz)

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

Introduction to WEB PROGRAMMING

Computer Programming. Dr. Deepak B Phatak Dr. Supratik Chakraborty Department of Computer Science and Engineering IIT Bombay

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

Three Ways to Use CSS:

ICT IGCSE Practical Revision Presentation Web Authoring

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

ITNP43: HTML Lecture 4

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

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

Web Technology. Assignment 3. Notes: This assignment is individual assignment, every student should complete it by himself.

Advanced HTML Scripting WebGUI Users Conference

Building Web Based Application using HTML

Web Publishing Basics I

CSS.

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

CSS: Cascading Style Sheets

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

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

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3

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

11. HTML5 and Future Web Application

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

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

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

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents

The [HTML] Element p. 61 The [HEAD] Element p. 62 The [TITLE] Element p. 63 The [BODY] Element p. 66 HTML Elements p. 66 Core Attributes p.

Programming of web-based systems Introduction to HTML5

CSS Cascading Style Sheets

CSC309 Tutorial CSS & XHTML

To link to an external stylesheet, the link element is placed within the head of the html page:

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

HTML & CSS. Rupayan Neogy

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

Introduction to HTML

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

Bridges To Computing

COMP519 Web Programming Autumn Cascading Style Sheets

introduction to XHTML

HTML TUTORIAL ONE. Understanding What XHTML is Not

Website Development with HTML5, CSS and Bootstrap

Transcription:

INTRODUCTION: UNIT - I HTML stands for Hyper Text Markup Language.HTML is a language for describing web pages.html is a language for describing web pages.html instructions divide the text of a document into blocks called elements. An element in HTML represents some kind of structure or semantics and generally consists of a start tag, content, and an end tag. The following is a paragraph element: <p> This is the content of the paragraph element. </p> Tags are used to mark up the start and end of an HTML element. A start tag consists of an opening angle bracket (<) followed by the element name, zero or more space separated attribute/value pairs, and a closing angle bracket (>). Example:- A start tag with no attributes: <p> End tags consist of an opening angle bracket followed by a forward slash, the element name, and a closing angle bracket </p> An attribute defines a property for an element, consists of an attribute/value pair, and appears within the element s start tag. An element s start tag may contain any number of space separated attribute/ value pairs. A markup language is a set of markup tags. HTML uses markup tags to describe web pages Structure of an HTML page A HTML page has two sections (Elements) HEAD, BODY. The head is used for text and tags that do not show directly on the page. The body is used for text and tags that are shown directly on the page. TITLE, META are the Elements that appear within HEAD element. The title of a webpage appears in your browser s title bar when you view the page. The META element used in the HEAD section is an empty element, i.e. the META element consists only of an opening tag. The most important use for this element is to give the search engines some basic information about your HTML document such as the most important keywords that appear inside the document and a short description of the document s content. <meta name="keywords" content="keyword1, keyword2,..."> MIME types: The World Wide Web actually uses MIME types (Multipurpose Internet Mail Extension) to define the type of a particular piece of information being sent from a Web server to a browser. A browser in turn determines, from the MIME type, how the data should be treated.

HTML Headings are defined with the <H1> to <H6> tags.<h1> defines the largest heading. <H6> defines the smallest heading. <H1>This is h1</h1> <H2>This is h2</h2> <H3>This is h3</h3> <H4>This is h4</h4> <H5>This is h5</h5> <H6>this is h6</h6> Lists: HTML supports ordered, unordered and definition Lists Unordered Lists To create bulleted lists (Unordered Lists) we use a <ul> and a </ul> tag at the beginning and the end of the list. List items are added using <li> and </li> tags Example 1: ( Type the following code in Note pad editor, save as ex1.html and open in a browser) <body> <h4>branches Available:</h4> <ul type="disc"> <li>csee</li> <li>ece</li> <li>eee </li> </ul> Note : <ul type="circle">, <ul type="square"> are used to get Circle and Square symbols. Ordered Lists (or) Numbered Lists To create we use a Ordered Lists (or) Numbered Lists <ol> and a </ol> tag Example 2: <body> <h4>branches Available:</h4> <ol> <li>cse</li> <li>ece</li> <li>eee</li> </ol> Note: <ol type="a">,<ol type="a">, <ol type="i">, <ol type="i"> are used to create List with Capital Letters, Small Letters, Capital Roman Numbers, Small Roman Numbers as Numbers for the Lists.

Definition Lists is not a list of single items. It is a list of items (terms), with a description of each item (term). A definition list starts with a <dl> tag (definition list). Each term starts with a <dt> tag (definition term). Each description starts with a <dd> tag (definition description) Example: <body> <dl> <dt>cascading Style Sheets</dt> <dd><p>style sheets are used to provide presentational suggestions.</p> <p>documents structured using XML or HTML are able to make use of them.</p></dd> <dt>content Management</dt> <dd>the process of collecting, managing and publishing content to various media.</dd> </dl> Tables Tables are defined with the <table> tag. A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the <td> tag). The letters td stands for "table data," which is the content of a data cell. A data cell can contain text, images, lists, paragraphs, forms, horizontal rules, tables, etc. Example <body> <table border="1"> <tr> <td>table cell 1</td><td>Table cell 2</td> </tr> <tr> <td>table cell 3</td><td>Table cell 4</td> </tr> </table> Example <body> <table border="1" > <tr> <th colspan="2">table header</th> </tr> <tr> <td width="20%">table cell 1</td><td>Table cell 2</td> </tr> </table>

HTML Images To embed an image into a web page, the image first needs to exist in either.jpg,.gif, or.png format To embed the image into your web page, use the <img /> tag, <img src="image1.gif" width="100" height="100" alt="image 1 " /> src -- Required attribute. This is the path to the image. It can be either an absolute path, or a relative path width --- This specifies the width to display the image. height -- This specifies the height to display the image. alt Alternate text. This specifies text to be used in case the browser/user agent can't render the image. Frames: With frames, you can display more than one HTML document in the same browser window. Each HTML document is called a frame, and each frame is independent of the others. The frameset (frameset1.html): <head> <title>frameset page<title> </head> <frameset cols = "25%, *"> <frame src ="left.html" /> <frame src ="right.html" /> </frameset> The left frame (left.html): <body style="background-color:green"> <p>this is the left frame </p> The right frame (right.html): <body style="background- color:yellow"> <p>this is the right frame </p> Forms A form is an area that can contain form elements. Form elements are elements that allow the user to enter information. A form is defined using the <form></form> tags. The Input Tag This is the most commonly used tag within HTML forms. It allows you to specify various types of user input fields such as text, radio buttons, checkboxes etc.

Web Technologies - by G. Sreenivasulu Ha

Text Text fields are used for when you want the user to type text or numbers into the form. <input type="text" > Example : <body> <form action="mailto:g.sreenivasulu2@gmail.com" method="post" enctype="text/plain"> Name: <input type="text" name="name" size="20"> <br> e-mail <input type="text" name="mail" size="20"> <br> Comments: <input type="text" name="comment" size="40"> <br> <br> <input type="submit" value="send"> <input type="reset" value="reset"> </form> Radio Button Radio Buttons are used when you want the user to select one of a limited number of choices. <form> <input type="radio" name="sex" value="male" /> Male <br /> <input type="radio" name="sex" value="female" /> Female </form> Checkboxes Checkboxes are used when you want the user to select one or more options of a limited number of choices. <form action=""> I have a bike: <input type="checkbox" name="vehicle" value="bike"> <br /> I have a car: <input type="checkbox" name="vehicle" value="car"> <br /> I have an airplane: <input type="checkbox" name="vehicle" value="airplane"> </form> <textarea rows="10" cols="30"> The cat was playing in the garden. </textarea> <form> Username: <input type="text" name="user"> <br> Password: <input type="password" name="password"> </form>

<select> <option>california -- CA</option> <option>colorado -- CO</option> <option selected="yes">conneticut -- CN</option> </select> <select size="3"> <option>california -- CA</option> <option>colorado -- CO</option> <option>connecticut -- CN</option> </select> <select multiple="yes" size="3"> <option>california -- CA</option> <option>colorado -- CO</option> <option>connecticut -- CN</option> </select> CSS( Cascading Style Sheets ) CSS is the acronym for: Cascading Style Sheets. CSS is an extension to basic HTML that allows you to style your web pages. A typical CSS statement will SELECTOR { PROPERTY: VALUE } Property" is the CSS element you wish to manipulate and "VALUE" represents the value of the specified property. Example p {color: white; } body {background-color: black; } Cascading Style Sheets are three Types : external, internal, and inline. External Style Sheet An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one file. Each page must link to the style sheet using the <link> tag. The <link> tag goes inside the head section. -------- style.css ----------- h1 { font-size: 40px; height: 200px; }.warning { color: Red; font-weight: bold; } #footer { backgroundcolor: Gray;

<link rel="stylesheet" href="style.css" type="text/css"> Internal Style Sheet An internal style sheet should be used when a single document has a unique style. You define internal styles in the head section with the <style> tag. <head> <style type="text/css"> body {background-color: red} p {margin-left: 20px} </style> </head> Inline Styles An inline style should be used when a unique style is to be applied to a single occurrence of an element. <p style="color: red; margin-left: 20px"> This is a paragraph </p> Class Class is specified by including a period (.) before the selector name. The syntax for declaring a Class selector is as follows:.navbar { color:#0000ff; } <p class="navbar">this is a sample using a Class selector.</p> ID ID is specified by including a number sign (#) before the selector name. The syntax for declaring an ID selector is as follows: #footer { color:#ff00ff ; } To apply this style to the HTML, using the following code: <p id="footer">this is a sample using an ID selector.</p> The difference between ID and class is that an ID selector can be called only once in a document, while a class selector can be called multiple times in a document. The second difference is that ID can be called by Javascript's getelementbyid function. There is no hard rule on when to use ID and when to use Class. My suggestion is to use class as much as possible for maximum flexibility, with the only exception being when you

want to use Javascript's getelementbyid function, in which case you need use ID. Class and ID names are both case sensitive. For example,.classone and.classone are two different classes. DIV The div element is the generic block element. You can use div to apply styles to large sections of HTML, such as multiple paragraphs. <div style="color:#00ff00"> <h3>this is a header</h3> <p>this is a paragraph.</p> </div> SPAN The span element is the generic inline element. Used over a span. <p> My friend has <span Style = "color:lightskyblue;font-weight:bol" >light blue</span> eyes CSS Properties are divided into the below given logical groups CSS Font Properties The CSS font properties control all aspects of your text graphical representation. font font-family font-size font-style font-weight font-variant CSS Text Properties The CSS text properties control the spacing, alignment, decoration, and other miscellaneous aspects of the text. letter-spacing word-spacing text-decoration vertical-align text-transform text-align text-indent line-height CSS Box Properties The CSS box properties are used to define the spacing in and around HTML elements, their borders, and other positioning aspects. Border, Margin, and Padding all have four properties each: top, right, bottom, and left. Margin Padding Border Border-width Border-color Border-style Width

Height Float Clear CSS Color Properties The CSS color property defines what color the text inside the specified HTML element will have h4 { color: red; }, h5 { color: #9000A1; }, h6 { color: rgb(0, 220, 98); } CSS Background Properties The CSS background properties control things like if the background is a single color or maybe an image Background Background Color Background Image Background Repeat Background Attachment Background Position CSS Classification Properties We think of the classification properties as having the list element and all the leftover elements that would not fit into any other category. Display Whitespace List Style List Style Type List Style Image List Style Position