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

Slides:



Advertisements
Similar presentations
HTML, Text, Images, Tables
Advertisements

HTML, Text, Images, Tables, Forms Svetlin Nakov Telerik Corporation
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML, Text, Images, Tables Nikolay Kostov Telerik Corporation
HTML: HyperText Markup Language Hello World Welcome to the world!
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
HTML, Text, Images, Tables, Forms, New Tags, New Attributes Doncho Minkov Telerik Academy Web Design Course html5course.telerik.com Technical Trainer
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.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
HTML, Text, Images, Tables, Forms Sabbir M Saleh Lecturer, CSE UniSA.
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
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
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Understanding HTML Code
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.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
CS134 Web Design & Development Creating a Basic Web Page Exerted from Mehmud Abliz slides.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
>> Introduction to HTML: Tags. Hyper - is the opposite of linear Text – words / sentences / paragraphs Mark-up – Marking the text Language – It is a language.
HTML Hyper-Text Markup Language or tags. HTML is a “tag” language Open and close tags Tags identified with angle brackets Basic format content (shorthand.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
1 Introduction to HTML: Part 1 Outline Introduction Elements and Attributes Editing HTML Common Elements Headers Images Unordered Lists Nested and Ordered.
HTML,DHTML & Javascript/Session1/1 of 39 Introduction and Basic Tags Session 1 of Using HTML, DHTML & JavaScript.
HTML: Hyptertext Markup Language Doman’s Sections.
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ HTML Training.
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.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML HyperText Markup Language ©Richard L. Goldman July 15, 2003.
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.
Introducing HTML 5 Creating Web Pages with HTML 5 1.
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
Introduction to Web Authoring Ellen Cushman /wra210.htm Class mtg. #2.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
INT222 – Internet Fundamentals
Presented By Presented By Tanveera Akhter Class:CA 2 nd year Dated:12/12/3456 Dept of Comp. Science.
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.
INTRO TO WEB DEVELOPMENT html
How the Web Works? WWW use classical client / server architecture
HTML Basics.
Marking Up with XHTML Tags describe how a web page should look
Web Design and Development
Chapter 1: Introduction to XHTML (part 1)
Hyperlinks: <a> Tag
HTML- Text, Hyperlink, Images
HTML, Text, Images, Tables
Marking Up with XHTML Tags describe how a web page should look
Introduction to HTML- Basics
Marking Up with XHTML Tags describe how a web page should look
Lesson 2: HTML5 Coding.
Marking Up with XHTML Tags describe how a web page should look
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: Tag  Hyperlinks and Sections  Images: tag  Lists: and Tag  HTML Special Characters 3. The and Tags 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 like:  A Microsoft Word document  The markup tags tell the Web browser how to display the page 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

8 <html> My First HTML Page My First HTML Page This is some text that will This is some text that will appear on the web page. appear on the web page. </html> test.html

<html> My First HTML Page My First HTML Page This is some text that will This is some text that will appear on the web page. appear on the web page. </html> 9 Opening tag Closing tag

<html> My First HTML Page My First HTML Page This is some text that will This is some text that will appear on the web page. appear on the web page. </html> 10 HTML header

<html> My First HTML Page My First HTML Page This is some text that will This is some text that will appear on the web page. appear on the web page. </html> 11 HTML body

 Hyperlink Tags  Image Tags  Formatting tags 12 <a href=" title="Telerik">Link to Telerik Web site title="Telerik">Link to Telerik Web site This text is bold This text is bold And this is underlined And this is underlined Some centered text Some centered text

13 <html> <a href=" title= <a href=" title= "BASD">This is a link to some URL "BASD">This is a link to some URL This text is bold This text is bold And this is underlined And this is underlined Some centered text Some centered text </html> some-tags.html

14 <html> <a href=" title= <a href=" title= "BASD">This is a link to some URL "BASD">This is a link to some URL This text is bold This text is bold And this is underlined And this is underlined Some centered text Some centered text </html> some-tags.html

Live Demo

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

 Heading Tags  Paragraph Tags  Sections: div and span 17 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 <div align="center" style= "background: skyblue">This is a div "background: skyblue">This is a div

18 <html> Headings and Headings and paragraphs 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 <div align="center" <div align="center" style="background:skyblue"> style="background:skyblue"> This is a div This is a div </html> headings.html

<html> Headings and Headings and paragraphs 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 <div align="center" <div align="center" style="background:skyblue"> style="background:skyblue"> This is a div This is a div </html> 19 headings.html

Live Demo

HTML Document Structure in Depth

 At their beginning HTML documents must have a document type declaration  It tells the Web browsers how to handle the HTML data  Possible versions: HTML 2.0, HTML 3.2, HTML 4.01, XHTML 1.0, XHTML 1.1, …  Example:  See for a list of possible doctypes 22

 XHTML is more strict then HTML  All tags must be properly nested (HTML allows text )  Tags and attribute names must be in lowercase  Attribute values must be in " " (HTML allows ' ')  All tags must be closed (, ) while HTML allows and  All tags must be closed (, ) while HTML allows and  XHTML allows only one root element (HTML allows more than one) 23

 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! 24

 HTML is comprised of elements called “tags”  Begins with and ends with  Begins with and ends with  When writing XHTML, must define a namespace  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 25

 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 multiple nested tags, e. g.:   26

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

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

 The tag 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 29

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

Live Demo

 The tag embeds formatting information (CSS styles) into a HTML page 32 <html> p { font-size: 12pt; line-height: 12pt } p { font-size: 12pt; line-height: 12pt } p:first-letter { font-size: 200%; float: left } p:first-letter { font-size: 200%; float: left } 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 34 BASD Home BASD Home...

 The section describes the viewable portion of the page  Starts after the section  Begins with and ends with  Begins with and ends with 35 <html> Test page Test page This is the Web page body! This is the Web page body! </html>

 The tag has the following attributes:  Example: background Background image file ="URL" bgcolor Background color ="color" text Default text color ="color" link Hyperlink color ="color" vlink Visited hyperlink color ="color" * For color codes, see 36

<h1></h1> Heading 1 <h2></h2> Heading 2 <h3></h3> Heading 3 <h4></h4> Heading 4 <h5></h5> Heading 5 <h6></h6> Heading 6 <p></p>Paragraph Line break  Text can be formatted as headings or regular paragraph text  Use these consistently!  by default doubles the spaces after each paragraph  is weird: the trailing “ / ” makes it XHTML compliant  Different styles of heading are available: 37

 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" "-//W3C//DTD XHTML 1.0 Transitional//EN" " " Svetlin Nakov Svetlin Nakov 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" "-//W3C//DTD XHTML 1.0 Transitional//EN" " " Svetlin Nakov Svetlin Nakov 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 </a>

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) align Text alignment: bottom, middle, top 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!  : Changes font style  With CSS, there is no reason to use this tag 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 <html> Apple Apple Orange Orange Grapefruit Grapefruit Apple Apple Orange Orange Grapefruit Grapefruit HTML HTML A markup lang… A markup lang… </html> 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 <html><head> Special HTML Characters Example Special HTML Characters Example </head><body> [>> Welcome [>> 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™ </body></html> special-chars.html

63 <html><head> Special HTML Characters Example Special HTML Characters Example </head><body> [>> Welcome [>> 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™ </body></html> special-chars.html

Live Demo

 Block elements act as if there is a 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 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?