HTML, Text, Images, Tables, Forms Svetlin Nakov Telerik Corporation www.telerik.com.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Copenhagen, 6 December 2004 Modern CSS Principles Miruna Bădescu Finsiel Romania.
Creating a Dreamweaver Web Page and Local Site
4. Internet Programming ENG224 INFORMATION TECHNOLOGY – Part I
Break Time Remaining 10:00.
XP Tutorial 4New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Designing a Web Page with Tables Tutorial 4 Creating a News Page.
HTML, Text, Images, Tables
Svetlin Nakov Telerik Corporation
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Office 2003 Integration Integrating Office 2003 Applications and the World Wide Web.
Basic HTML Workshop LIS Web Team Spring 2007.
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
XHTML Week Two Web Design. 2 What is XHTML? XHTML is the current standard for HTML Newest generation of HTML (post-HTML 4) but has many new features which.
Web Development & Design Foundations with XHTML
Dr. Alexandra I. Cristea HTML Dr. Alexandra I. Cristea
Dr. Alexandra I. Cristea XHTML.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Chapter 11 Creating Framed Layouts Principles of Web Design, 4 th Edition.
HTML, Text, Images, Tables Nikolay Kostov Telerik Corporation
HTML: HyperText Markup Language Hello World Welcome to the world!
COS 125 Internet Fundamentals and Web Page Design Day 3.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
A really fairly simple guide to: mobile browser-based application development (part 1) Chris Greenhalgh G54UBI / Chris Greenhalgh
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
1 Outline 9.1Introduction 9.2Markup Languages 9.3Editing HTML 9.4Common Tags 9.5Headers 9.6Text Styling 9.7Linking 9.8Images 9.9Formatting Text With 9.10Special.
XHTML II DIGITAL MEDIA: COMMUNICATION AND DESIGN F2007.
HTML, Text, Images, Tables, Forms Svetlin Nakov Telerik Corporation
1 What is the Internet?  a network of networks – an inter-network, or Internet What are Internet protocols?  the rules for transferring information between.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
Chapter 2: The Client Side: HTML CIS 275—Web Application Development for Business I.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
HTML HyperText Markup Language Constantly evolving - extra facilities being added regularly Java applets and JavaScript used to increase functionality.
The past, the present, the future Doncho Minkov Telerik Academy Web Design Course html5course.telerik.com Technical Trainer
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
HTML Hyper Text Markup Language It is used for describing web documents or web pages. A markup language is set of markup tags. HTML documents are described.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
HTML: Hyptertext Markup Language Doman’s Sections.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
Introduction to HTML. Today’s Discussion What is HTML ? What is HTML ? What is Web Page ? What is Web Page ? Web Server Web Server Web Browser Web Browser.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
HTML 5 Overview Document Structure, Basic Tags, Common Elements SoftUni Team Technical Trainers Software University
The past, the present, the future Learning & Development Team Telerik Software Academy.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML Assoc. Prof. Rozinah Jamaludin 28 January 2010.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
Presented By Presented By Tanveera Akhter Class:CA 2 nd year Dated:12/12/3456 Dept of Comp. Science.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
HTML Basics Text, Images, Tables, Forms. HTML Structure HTML is comprised of “elements” and “tags” – Begins with and ends with Elements (tags) are nested.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
How the Web Works? WWW use classical client / server architecture
HTML Basics.
Web Design and Development
Chapter 1: Introduction to XHTML (part 1)
HTML, Text, Images, Tables
Introduction to HTML- Basics
Presentation transcript:

HTML, Text, Images, Tables, Forms Svetlin Nakov Telerik Corporation

1. Introduction to HTML  How the Web Works?  What is a Web Page?  My First HTML Page  Basic Tags: Hyperlinks, Images, Formatting  Headings and Paragraphs 2. HTML in Details  The Declaration  The Section: Title, Meta, Script, Style 2

 The Section  Text Styling and Formatting Tags  Hyperlinks:  Hyperlinks:  Hyperlinks and Sections  Images:  Images:  Lists:, and  Lists:, and  HTML Special Characters 3. The and elements 3

 WWW use classical client / server architecture  HTTP is text-based request-response protocol 4 Page request Client running a Web Browser Server running Web Server Software (IIS, Apache, etc.) Server response HTTP HTTP

 Web pages are text files containing HTML  HTML – Hyper Text Markup Language  A notation for describing  document structure (semantic markup)  formatting (presentation markup)  Looks (looked?) like:  A Microsoft Word document  The markup tags provide information about the page content structure 5

 An HTML file must have an.htm or.html file extension  HTML files can be created with text editors:  NotePad, NotePad ++, PSPad  Or HTML editors (WYSIWYG Editors):  Microsoft FrontPage  Macromedia Dreamweaver  Netscape Composer  Microsoft Word 6

Text, Images, Tables, Forms

 HTML is comprised of “elements” and “tags”  Begins with and ends with  Begins with and ends with  When writing XHTML, must define a namespace  Elements (tags) are nested one inside another:  Tags have attributes:  HTML describes structure using two main sections: and  HTML describes structure using two main sections: and 8

 The HTML source code should be formatted to increase readability and facilitate debugging.  Every block element should start on a new line.  Every nested (block) element should be indented.  Browsers ignore multiple whitespaces in the page source, so formatting is harmless.  For performance reasons, formatting can be sacrificed. 9

10 <html> My First HTML Page My First HTML Page This is some text... This is some text... </html> test.html

<html> My First HTML Page My First HTML Page This is some text... This is some text... </html> 11 Opening tag Closing tag An HTML element consists of an opening tag, a closing tag and the content inside.

<html> My First HTML Page My First HTML Page This is some text... This is some text... </html> 12 HTML header

<html> My First HTML Page My First HTML Page This is some text... This is some text... </html> 13 HTML body

 Hyperlink Tags  Image Tags  Text formatting tags 14 <a href=" title="Telerik">Link to Telerik Web site title="Telerik">Link to Telerik Web site This text is emphasized. This text is emphasized. new line new line This one is more emphasized. This one is more emphasized.

15 <html><head> Simple Tags Demo Simple Tags Demo </head><body> <a href=" title= "Telerik site">This is a link. "Telerik site">This is a link. Bold and italic text. Bold and italic text.</body></html> some-tags.html

16 <html><head> Simple Tags Demo Simple Tags Demo </head><body> <a href=" title= "Telerik site">This is a link. "Telerik site">This is a link. Bold and italic text. Bold and italic text.</body></html> some-tags.html

Live Demo

 Tags can have attributes  Attributes specify properties and behavior  Example:  Few attributes can apply to every element:  id, style, class, title  The id is unique in the document  Content of title attribute is displayed as hint when the element is hovered with the mouse  Some elements have obligatory attributes 18 Attribute alt with value " logo "

 Heading Tags (h1 – h6)  Paragraph Tags  Sections: div and span 19 This is my first paragraph This is my first paragraph This is my second paragraph This is my second paragraph Heading 1 Heading 1 Sub heading 2 Sub heading 2 Sub heading 3 Sub heading 3 This is a div This is a div

20 <html> Headings and paragraphs Headings and paragraphs Heading 1 Heading 1 Sub heading 2 Sub heading 2 Sub heading 3 Sub heading 3 This is my first paragraph This is my first paragraph This is my second paragraph This is my second paragraph This is a div This is a div </html> headings.html

<html> Headings and paragraphs Headings and paragraphs Heading 1 Heading 1 Sub heading 2 Sub heading 2 Sub heading 3 Sub heading 3 This is my first paragraph This is my first paragraph This is my second paragraph This is my second paragraph This is a div This is a div </html> 21 headings.html

Live Demo

HTML Document Structure in Depth

 It is important to have the correct vision and attitude towards HTML  HTML is only about structure, not appearance  Browsers tolerate invalid HTML code and parse errors – you should not. 24

 HTML documents must start with a document type definition (DTD)  It tells web browsers what type is the served code  Possible versions: HTML 4.01, XHTML 1.0 (Transitional or Strict), XHTML 1.1, HTML 5  Example:  See for a list of possible doctypes 25

 XHTML is more strict than HTML  Tags and attribute names must be in lowercase  All tags must be closed (, ) while HTML allows and and implies missing closing tags ( par1 par2 )  XHTML allows only one root element (HTML allows more than one) 26

 Many element attributes are deprecated in XHTML, most are moved to CSS  Attribute minimization is forbidden, e.g.  Note: Web browsers load XHTML faster than HTML and valid code faster than invalid! 27

 Contains information that doesn’t show directly on the viewable page  Starts after the declaration  Begins with and ends with  Begins with and ends with  Contains mandatory single tag  Can contain some other tags, e.g.   28

 Title should be placed between and tags  Used to specify a title in the window titlebar  Search engines and people rely on titles 29 Telerik Academy – Winter Season 2009/2010 Telerik Academy – Winter Season 2009/2010

 Meta tags additionally describe the content contained within the page 30

 The element is used to embed scripts into an HTML document  Script are executed in the client's Web browser  Scripts can live in the and in the sections  Supported client-side scripting languages:  JavaScript (it is not Java!)  VBScript  JScript 31

32 <html> JavaScript Example JavaScript Example function sayHello() { function sayHello() { document.write(" Hello World! "); document.write(" Hello World! "); } <script type= <script type= "text/javascript"> "text/javascript"> sayHello(); sayHello(); </html> scripts-example.html

Live Demo

 The element embeds formatting information (CSS styles) into an HTML page 34 <html> p { font-size: 12pt; line-height: 12pt; } p { font-size: 12pt; line-height: 12pt; } p:first-letter { font-size: 200%; } p:first-letter { font-size: 200%; } span { text-transform: uppercase; } span { text-transform: uppercase; } Styles demo. Styles demo. Test uppercase. Test uppercase. </html> style-example.html

Live Demo

 Comments can exist anywhere between the tags  Comments start with  Comments start with 36 Telerik Telerik...

 The section describes the viewable portion of the page  Starts after the section  Begins with and ends with  Begins with and ends with 37 <html> Test page Test page </html>

 Text formatting tags modify the text between the opening tag and the closing tag  Ex. Hello makes “Hello” bold bold italicized underlined Sample superscript Sample subscript strong emphasized Preformatted text Quoted text block Deleted text – strike through 38

39 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " " Page Title Page Title Notice Notice This is a sample Web page. This is a sample Web page. Next paragraph: Next paragraph: preformatted. preformatted. More Info More Info Specifically, we’re using XHMTL 1.0 transitional. Specifically, we’re using XHMTL 1.0 transitional. Next line. Next line. </html> text-formatting.html

40 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " " Page Title Page Title Notice Notice This is a sample Web page. This is a sample Web page. Next paragraph: Next paragraph: preformatted. preformatted. More Info More Info Specifically, we’re using XHMTL 1.0 transitional. Specifically, we’re using XHMTL 1.0 transitional. Next line. Next line. </html> text-formatting.html

Live Demo

 Link to a document called form.html on the same server in the same directory:  Link to a document called parent.html on the same server in the parent directory:  Link to a document called cat.html on the same server in the subdirectory stuff : 42 Fill Our Form Fill Our Form Parent Parent Catalog Catalog

 Link to an external Web site:  Always use a full URL, including " ", not just " "  Using the target="_blank" attribute opens the link in a new window  Link to an address: 43 BASD BASD Please report bugs here (by only) Please report bugs here (by only)

 Link to a document called apply-now.html  On the same server, in same directory  Using an image as a link button:  Link to a document called index.html  On the same server, in the subdirectory english of the parent directory: 44 <img src="apply-now-button.jpg" /> src="apply-now-button.jpg" /> Switch to English version Switch to English version

 Link to another location in the same document:  Link to a specific location in another document: 45 Go to Introduction Go to Introduction... Introduction Introduction Go to Section Go to Section Technical Background Technical Background </div>

46 Fill Our Form Fill Our Form Parent Parent Catalog Catalog BASD BASD Please report bugs here (by only) Please report bugs here (by only) Switch to English version Switch to English version hyperlinks.html

Fill Our Form Fill Our Form Parent Parent Catalog Catalog BASD BASD Please report bugs here (by only) Please report bugs here (by only) Switch to English version Switch to English version hyperlinks.html 47

Live Demo

49 Table of Contents Table of Contents Introduction Introduction Some background Some background Project History Project History...the rest of the table of contents... Introduction Introduction... Section 1 follows here... Some background Some background... Section 2 follows here... Project History Project History... Section 2.1 follows here... links-to-same-document.html

50 Table of Contents Table of Contents Introduction Introduction Some background Some background Project History Project History...the rest of the table of contents... Introduction Introduction... Section 1 follows here... Some background Some background... Section 2 follows here... Project History Project History... Section 2.1 follows here... links-to-same-document.html

Live Demo

 Inserting an image with tag:  Image attributes:  Example: src Location of image file (relative or absolute) alt Substitute text for display (e.g. in text mode) height Number of pixels of the height width Number of pixels of the width border Size of border, 0 for no border 52

 : Draws a horizontal rule (line):  : Deprecated! 53 Hello World! Hello World! Font3 Font3 Font+4 Font+4

54 <html> Miscellaneous Tags Example Miscellaneous Tags Example Hello World! Hello World! Font3 Font3 Font+4 Font+4 </html> misc.html

Live Demo

a.Apple b.Orange c.Grapefruit  Create an Ordered List using :  Attribute values for type are 1, A, a, I, or i 56 1.Apple 2.Orange 3.Grapefruit A.Apple B.Orange C.Grapefruit I.Apple II.Orange III.Grapefruit i.Apple ii.Orange iii.Grapefruit Apple Apple Orange Orange Grapefruit Grapefruit </ol>

 Create an Unordered List using :  Attribute values for type are:  disc, circle or square 57 Apple Orange Pear o Apple o Orange o Pear  Apple  Orange  Pear Apple Apple Orange Orange Grapefruit Grapefruit </ul>

 Create definition lists using  Create definition lists using  Pairs of text and associated definition; text is in tag, definition in tag  Renders without bullets  Definition is indented 58 <dl><dt>HTML</dt> A markup language … A markup language … <dt>CSS</dt> Language used to … Language used to … </dl>

59 Apple Apple Orange Orange Grapefruit Grapefruit </ol> Apple Apple Orange Orange Grapefruit Grapefruit </ul><dl> HTML HTML A markup lang… A markup lang… </dl> lists.html

Live Demo

££ British Pound €€Euro "" Quotation Mark ¥¥ Japanese Yen —— Em Dash Non-breaking Space &&Ampersand >> Greater Than << Less Than ™™ Trademark Sign ®® Registered Trademark Sign ©© Copyright Sign Symbol HTML Entity Symbol Name 61

62 <p>[>> Welcome <<] <<] ►I have following cards: ►I have following cards: A♣, K♦ and 9♥. A♣, K♦ and 9♥. ►I prefer hard rock ♫ ►I prefer hard rock ♫ music ♫ music ♫ © 2006 by Svetlin Nakov & his team © 2006 by Svetlin Nakov & his team Telerik Academy™ Telerik Academy™ special-chars.html

63 <p>[>> Welcome <<] <<] ►I have following cards: ►I have following cards: A♣, K♦ and 9♥. A♣, K♦ and 9♥. ►I prefer hard rock ♫ ►I prefer hard rock ♫ music ♫ music ♫ © 2006 by Svetlin Nakov & his team © 2006 by Svetlin Nakov & his team Telerik Academy™ Telerik Academy™ special-chars.html

Live Demo

 Block elements add a line break before and after them  is a block element  Other block elements are,, headings, lists, and etc.  Inline elements don’t break the text before and after them  is an inline element  Most HTML elements are inline, e.g.  Most HTML elements are inline, e.g. 66

 creates logical divisions within a page  Block style element  Used with CSS  Example: 67 DIV example DIV example This one is only a test. This one is only a test. div-and-span.html

Live Demo

 Inline style element  Useful for modifying a specific portion of text  Don't create a separate area (paragraph) in the document  Very useful with CSS 69 This one is only a test. This one is only a test. This one is another TEST. This one is another TEST. span.html

Live Demo

Questions?

1. Write an HTML page like the following: * Use headings and divs 72

2. Write an HTML page like the following: 3. Write an HTML page looking like the PNG file named 3.Introduction.PNG. Using the tag add anchors to the corresponding sections in the same page. 73

4. Create an user profile Web page Profile.html, friends page named Friends.html and info page named Info.html. Link them to one another using tag. 74

75 5. Create a Web site like the following: See the image InetJava-site.png.