In this session, you will learn about:

Slides:



Advertisements
Similar presentations
HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Database-Driven Web Sites, Second Edition1 Chapter 2 INTRODUCTION TO HTML.
Creating Web Page Forms
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
XP Tutorial 5New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language.
DAT602 Database Application Development Lecture 14 HTML.
Web Technologies Website Development Trade & Industrial Education
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
HTML Introduction to HTML Tags. HTML Document My first HTML document Hello world!
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 6: Links.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML Forms.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
CP102 Module 7: HTML 1 Module 7: HTML 1.What is 1.What is HTML? 2. 2.Basic syntax, document structure 3. 3.Basic formatting, images, links 4. 4.Lists,
Chapter 2 Designing Web Pages With HTML JavaMethods An Introduction to Object-Oriented Programming Maria Litvin Gary Litvin Copyright © 2003 by Maria Litvin,
Tutorial 3 Adding and Formatting Text with CSS Styles.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
HTML CS 4640 Programming Languages for Web Applications
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Working with Tables: Module A: Table Basics
In this session, you will learn about:
In this session, you will learn about:
ASP.NET Web Controls.
LAB Work 02 MBA 61062: E-Commerce
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
The Web Warrior Guide to Web Design Technologies
Designing a Web Site with Frames
Introduction to XHTML.
Introduction to HTML.
Web Design & Development
Inserting and Working with Links
Computers and Scientific Thinking David Reed, Creighton University
Using HTML Tables SWBAT: - create tables using HTML
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Web Development & Design Foundations with H T M L 5
1 Introduction to XHTML.
Introduction to HTML.
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
Marking Up with XHTML Tags describe how a web page should look
In this session, you will learn to:
Marking Up with XHTML Tags describe how a web page should look
AN INTRODUCTION BY FAITH BRENNER
Lesson 2: HTML5 Coding.
HTML CS 4640 Programming Languages for Web Applications
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

In this session, you will learn about: Objectives In this session, you will learn about: Special characters in HTML Special Effect Tags

Special Characters in HTML Are characters that have a special meaning, when used in HTML code. Are interpreted with their special meanings when encountered in code. Need to be referenced in a different way to display them as literals on the screen. HTML provides the following two ways of referencing special characters: Entity numbers Entity names

Special Characters in HTML (Contd.) When using entity numbers, specify the American Standard Code for Information Interchange (ASCII) value of the special character that is to be included in the HTML document. An ASCII value represents the English characters as numbers, with each letter assigned to a number from 0 to 127. To display a special character in an HTML document, precede the ASCII value of the character by the ampersand (&) and the hash (#) symbol. For example, to display the heading of a Web page as Using <HEAD> Tag, the code will be: <BODY> <H1> Using &#60 HEAD &#62 Tag </H1> </BODY>

Special Characters in HTML (Contd.) The following table lists some characters and their corresponding ASCII values. Character ASCII Value : 58 ; 59 < 60 = 61 > 62 ? 63 @ 64 ! 33 “ 34 # 35 $ 36 % 37 & 38 Show all the controls using visual studio and discuss the use of few controls.

Special Characters in HTML (Contd.) When using entity names, specify the HTML entity name for the character. HTML entities are special characters used for defining an HTML tag. For example, to display the heading of a Web page as Using <HEAD> Tag, the code will be: <BODY> <H1> Using < HEAD > Tag </H1> </BODY> Show all the controls using visual studio and discuss the use of few controls.

Special Characters in HTML (Contd.) The following table lists some of the special characters used in HTML, along with their entity references. Characters/ Symbols Entity Reference Meaning ¿ ¿ Inverted question mark & & Ampersand © © Copyright " " Quotation mark È È Capital E with grave accent ° ° Degree ½ ½ Fraction one-half Show all the controls using visual studio and discuss the use of few controls.

Some of the special effect tags in HTML are: Special Effect Tags are the tags used in HTML to enhance the visual appeal of a Web page. These tags can be used to change the size and appearance of the text in a Web page. These tags can also be used to add special effects, such as scrolling of the text in an HTML document. Some of the special effect tags in HTML are: <CITE> tag <STRONG> tag <MARQUEE> tag <BIG> tag <SMALL> tag Show all the controls using visual studio and discuss the use of few controls.

Special Effect Tags (Contd.) <CITE> Tag: Is used to cite a particular book, journal, or Web site as reference. The following example illustrates the use of the <CITE> tag: <BODY> To get more information about the HTML, you can refer: <CITE>HTML: The Definitive Guide </CITE> by O’Reilly publication </BODY> The preceding code will generate a result as shown in the following figure. Show all the controls using visual studio and discuss the use of few controls.

Special Effect Tags (Contd.) <STRONG> Tag: Is used to provide strong emphasis or boldface to the text in an HTML document. The following example illustrates the use of the <STRONG> tag: <Body> <P> One Audio CD is <STRONG>FREE</STRONG> with every purchase you make in this store</P> </Body> The preceding code will generate a result as shown in the following figure. Show all the controls using visual studio and discuss the use of few controls.

Special Effect Tags (Contd.) <MARQUEE> Tag: Is used to make text slide or scroll in a particular region of an HTML document. Has attributes to set the behavior, direction, width, and color of the affected text. The following example illustrates the use of the <MARQUEE> tag: <BODY> <MARQUEE BEHAVIOR= slide DIRECTION="left" WIDTH =250 BGCOLOR=cyan> This is a <MARQUEE> text</MARQUEE> </BODY> Show all the controls using visual studio and discuss the use of few controls.

Special Effect Tags (Contd.) <BIG> Tag: Is used to increase the font size of the text to the next larger size. The following example illustrates the use of the <BIG> tag: <Body> <P> You will get <BIG>20% discount</BIG> on every purchase you make in this store.</P> </Body> The preceding code will generate a result as shown in the following figure. Show all the controls using visual studio and discuss the use of few controls.

Special Effect Tags (Contd.) <SMALL> Tag: Is used to decrease the font size of the text to the next smaller size. The following example illustrates the use of the <SMALL> tag: <Body> <P>You will get 20% discount on every purchase you make in this store.</P> <P><SMALL>Conditions Apply.</SMALL></P> </Body> The preceding code will generate a result as shown in the following figure. Show all the controls using visual studio and discuss the use of few controls.

Best Practices Ensure that the tags in your HTML document are nested properly. For example, consider an HTML document containing tags in the following sequence: <TAG1><TAG2><TAG3> Text </TAG3></TAG1></TAG2> Using such a sequence is not a good practice. Browsers such as Internet Explorer might ignore this type of sequence and may display the content correctly. However, Netscape Navigator may not display the content properly. When you create a starting tag, create the corresponding closing tag at the same time. This will help you maintain the correct nesting of tags in your HTML document. For example, when you create the <HTML> tag, create the </HTML> tag also. All tags that need to nested within these tags, can then be embedded between the <HTML> and </HTML> tags. Show the demo by performing each step to set Web server control properties Explain by example how to manipulate Web server control (refer SG)

Best Practices (Contd.) Structure the code properly, so that it can be easily understood. The following figure shows two samples of HTML code.   <HTML><HEAD><TITLE>My First Document </TITLE> </HEAD> <BODY><H1>Best Coding Practices</H1></BODY></HTML> <HTML> <HEAD> <TITLE> My First Document </TITLE> </HEAD> <BODY> <H1> Best Coding Practices </H1> </BODY> </HTML> Show the demo by performing each step to set Web server control properties Explain by example how to manipulate Web server control (refer SG) Although, both the preceding code samples are same and give the same output, the HTML code in the second sample is easier to read and understand.

Best Practices (Contd.) The various elements of a form should be arranged inside a table to ensure proper alignment of the various form elements with each other. Consider the following code snippet that creates a form without using a table: <HTML> <BODY> <FORM ACTION="mailto:xyz@simplesolutions.com?Subject=Feedback" Method=”post”> User Name: <INPUT TYPE="text" NAME="txtname"><br> Password: <INPUT TYPE="password" NAME="txtpass"><br> Comments: <TEXTAREA rows=10 cols=10></TEXTAREA> <INPUT TYPE = "Submit" VALUE = "Submit Your Feedback“> </FORM> </BODY> </HTML> Show the demo by performing each step to set Web server control properties Explain by example how to manipulate Web server control (refer SG)

Best Practices (Contd.) The following figure displays the output of the preceding code. Show the demo by performing each step to set Web server control properties Explain by example how to manipulate Web server control (refer SG) Now, consider the following code snippet that uses a table to organize the elements on a form. <HTML> <BODY> <FORM ACTION="mailto:xyz@simplesolutions.com" Method=”post”>

Best Practices (Contd.) <TABLE> <TR> <TD>User Name:</TD> <TD><INPUT TYPE="text" NAME="txtname"></TD> </TR> <TD>Password:</TD> <TD><INPUT TYPE="password” NAME="txtpass"></TD> <TD>Comments:</TD> <TD><TEXTAREA rows=10 cols=10></TEXTAREA></TD> Web Server controls are automatically configured with the runat="server" attribute, so there is no need to convert them as there is for HTML server controls. Edit the ID attribute that Visual Studio automatically assigns.

Best Practices (Contd.) <TR> <TD><INPUT TYPE = "Submit" VALUE = "Submit Your Feedback"></TD> </TR> </TABLE> </FORM> </BODY></HTML> The following figure displays the output of the preceding code. Show the demo by performing each step to set Web server control properties Explain by example how to manipulate Web server control (refer SG)

Publishing HTML Code on a Web Page: Tips and Tricks Publishing HTML Code on a Web Page: You may need to display HTML source code on your Web pages to explain the use of the code, without the code being executed by the browser. For example, in an HTML tutorial Web site, you may need to show some HTML code. For such cases, you can use the <XMP> tag that allows you to include the examples of the source code on your Web pages. When the Web browser encounters the <XMP> tag, it does not execute the content enclosed within these tags. The following example illustrates the use of the <XMP> tag: <HTML> <BODY> Consider the following code snippet: <XMP> Show the demo by performing each step to set Web server control properties Explain by example how to manipulate Web server control (refer SG)

Tips and Tricks (Contd.) <BODY bgcolor="blue"> <H1>Welcome Users</H1> <IMG src="b.gif" height=40 width=40 alt="Flower"> </BODY> </HTML> </XMP> The following figure displays the output of the preceding code. Show the demo by performing each step to set Web server control properties Explain by example how to manipulate Web server control (refer SG)

Tips and Tricks (Contd.) Enhancing Form Display: Internet Explorer 4.0 and later support several features to enhance the organization and layout of a form. Some of these features are: The FIELDSET tag: Used to group related controls by placing them together inside a bordered field. The syntax of the FIELDSET tag is: <FIELDSET> controls to be grouped </FIELDSET> The LEGEND tag: Used to provide a title to the field. The syntax of the LEGEND tag is: <LEGEND> Title for the fields </LEGEND> The ACCESSKEY attribute: Used to specify a keyboard combination to access the controls in the form. The syntax of the ACCESSKEY attribute is: <INPUT ACCESSKEY = “key combination”> Show all the controls using visual studio and discuss the use of few controls.

Tips and Tricks (Contd.) The following example illustrates the use of the FIELDSET and LEGEND elements as well as the ACCESSKEY attribute: <HTML> <BODY> <FORM> <!--Declaring the FIELDSET element to group the elements--> <FIELDSET STYLE="height: 100; width: 200“> <!--Declaring the LEGEND element to provide title to the fields--> <LEGEND>Login Information</LEGEND> <TABLE> <TR> <TD> <!--Underlining the letter U of Username--> <LABEL><SPAN STYLE = "text-decoration: underline;">U</SPAN>sername </LABEL> </TD><TD> FAQ Explain the HTTP is state less protocol it does not store any reference of previous request even with the same user. Server has to maintain such information pragmatically. Explain how round trip processing maintain this state.

Tips and Tricks (Contd.) <!--Specifying the access key for the username--> <INPUT TYPE = "text" NAME = "txtUsername" ACCESSKEY = "U"> </TD> </TR> <TR> <TD> <!--Underlining the letter P--> <LABEL><SPAN STYLE = "text-decoration: underline;">P</SPAN>assword </LABEL> </TD> <TD> <!--Specifying the access key for the Password field--> <INPUT TYPE = "text" NAME = "txtPassword" ACCESSKEY = "P"> </TD> </TR> </TABLE> </FIELDSET> </FORM> </BODY> </HTML> FAQ Explain the HTTP is state less protocol it does not store any reference of previous request even with the same user. Server has to maintain such information pragmatically. Explain how round trip processing maintain this state.

Tips and Tricks (Contd.) The following figure displays the output of the preceding code. FAQ Explain the HTTP is state less protocol it does not store any reference of previous request even with the same user. Server has to maintain such information pragmatically. Explain how round trip processing maintain this state.

Can I create links without underline? FAQs Can I create links without underline? Yes, you can create links without underline. You can use the STYLE attribute of the anchor element as illustrated in the following code to create links without underline: <A HREF ="C:\IMAGE\CIRCLE.BMP" STYLE ="TEXT-DECORATION: =NONE"> How can I make the background image of my Web page stationary? Stationary background images remain in one place even when scrolling through the Web page. Only the text will move. To create this effect, you need to place the following code within the <BODY> tag: <body background ="yourimage.gif" bgproperties="Fixed"> Explain with example of ListBox and DropDownList control given SG in Auto Postback Discuss when we set EnableViewState Property to true Explain the difference between postback on self page and postback on crosspage

How can I place text over an image, using HTML? FAQs (Contd.) The preceding code, displays the image, yourimage.gif, in the background of the Web page. The bgproperties attribute with the value, Fixed, will make the background image stationary when scrolling through the Web page. How can I place text over an image, using HTML? You can place text over an image by using the <TD> tag in a table. To place text over an image: Use the BACKGROUND attribute of the <TD> tag to place the image as background of table data. Place the text between the <TD> and </TD> tags. Consider the following code: <HTML> <HEAD> <TABLE border="0" cellpadding="0" cellspacing="0"> <TR> <TD width="400" height="500" background="image.jpg" valign="center"> Explain with example of ListBox and DropDownList control given SG in Auto Postback Discuss when we set EnableViewState Property to true Explain the difference between postback on self page and postback on crosspage

FAQs (Contd.) <FONT SIZE="+5" color=""><BR><BR><BR>This is text over an image </FONT></TD> </TR> </TABLE> </HEAD> </HTML> The preceding code creates a table with image.jpg as the background of one of its cells and places text inside the cell. The following figure displays the output of the preceding code. Explain with example of ListBox and DropDownList control given SG in Auto Postback Discuss when we set EnableViewState Property to true Explain the difference between postback on self page and postback on crosspage

Challenge The _________ attribute of the image tag is used to specify that the image will be used as an image map. Show the demo by performing each step to set Web server control properties Explain by example how to manipulate Web server control (refer SG) Answer: usemap

Challenge (Contd.) The _____________ type value of the <INPUT> tag is used to create invisible fields. Show the demo by performing each step to set Web server control properties Explain by example how to manipulate Web server control (refer SG) Answer: hidden

Challenge (Contd.) The ______________ attribute allows control over the space inserted between the cell data and the cell wall in a table. Show the demo by performing each step to set Web server control properties Explain by example how to manipulate Web server control (refer SG) Answer: cellpadding

Challenge (Contd.) You have created a hyperlink on a Web page. You want to open the Web page corresponding to the hyperlink on a new Web page. How will you address the given requirement? Answer: You can use the TARGET attribute of the <A> tag to open the Web page corresponding to a hyperlink in a new blank window. You need to provide the reserved name _blank as the target name. The following example illustrates how to use this tag: <A HREF=”url.html” TARGET=”_blank”> Show the demo by performing each step to set Web server control properties Explain by example how to manipulate Web server control (refer SG)

Challenge (Contd.) You have created a hyperlink on a Web page. You want the hyperlink to link to a particular area on another Web page. How will you address this requirement? Answer: By default, a hyperlink takes the user to the beginning of the linked Web page. To enable the hyperlink to jump to a particular text block in a new Web page, you need to identify and name the text location with the help of the NAME attribute of an <A> tag. Then, you need to specify the name of the location along with the Web page name, while creating the hyperlink. The syntax for naming a location in the linked Web page is <A NAME =”location_name”>. The preceding code will be placed at the text location where you would like the user to view a particular text block in a Web page when the hyperlink is clicked. Show the demo by performing each step to set Web server control properties Explain by example how to manipulate Web server control (refer SG)

Challenge (Contd.) The syntax for creating a link that refers to a named location in a Web page is: <A href=”filename.html#location_name”> ……….</A> The preceding code will be placed where you create the hyperlink in a Web page. Show the demo by performing each step to set Web server control properties Explain by example how to manipulate Web server control (refer SG)