The past, the present, the future Doncho Minkov Telerik Academy Web Design Course html5course.telerik.com Technical Trainer

Slides:



Advertisements
Similar presentations
HTML, Text, Images, Tables
Advertisements

HTML, Text, Images, Tables, Forms Svetlin Nakov Telerik Corporation
Web Development & Design Foundations with XHTML
HTML: HyperText Markup Language Hello World Welcome to the world!
Chapter 2 HTML Basics Key Concepts
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
HTML, Text, Images, Tables, Forms, New Tags, New Attributes Doncho Minkov Telerik Academy Web Design Course html5course.telerik.com Technical Trainer
HTML, Text, Images, Tables, Forms Svetlin Nakov Telerik Corporation
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 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.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML, Text, Images, Tables, Forms Sabbir M Saleh Lecturer, CSE UniSA.
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.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Headings, Paragraphs, Formatting, Links, Head, CSS, Images
1 Outline 3.1 Introduction 3.2 Editing HTML 3.3 First HTML Example 3.4 W3C HTML Validation Service 3.5 Headers 3.6 Linking 3.7 Images 3.8 Special Characters.
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.
HTML (HyperText Markup Language)
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.
New Tags, New Attributes, New JavaScript APIs, Forms, Validation, Audio, Video, SVG, Canvas Doncho Minkov Telerik Corporation Technical.
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.
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.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Unit 2, cont. September 12 More HTML. Attributes Some tags are modifiable with attributes This changes the way a tag behaves Modifying a tag requires.
HTML | DOM. Objectives  HTML – Hypertext Markup Language  Sematic markup  Common tags/elements  Document Object Model (DOM)  Work on page | HTML.
New Tags, New Attributes, New JavaScript APIs, Forms, Validation, Audio, Video, SVG, Canvas Doncho Minkov Telerik Corporation
HTML: Hyptertext Markup Language Doman’s Sections.
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 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.
2.1 XHTML. Motto High thoughts must have high language. –Aristophanes.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
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.
Basic HTML Document Structure. Slide 2 Goals (XHTML HTML5) XHTML Separate document structure and content from document formatting HTML 5 Create a formal.
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
HTML5 Introduction to Web Programming. Plan of the course HTML5 Structure of a document Main HTML Tags –Headings –Paragraphs –Links –Tables –Forms –Images.
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
INT222 – Internet Fundamentals
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
01 – HTML (1) Informatics Department Parahyangan Catholic University.
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.
HTML Basics.
Web Development & Design Foundations with HTML5 8th Edition
Chapter 4 - Introduction to XHTML: Part 1
WEBSITE DESIGN Chp 1
Introduction to HTML- Basics
Lesson 2: HTML5 Coding.
Digging in a little deeper
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

The past, the present, the future Doncho Minkov Telerik Academy Web Design Course html5course.telerik.com Technical Trainer

1. Introduction to HTML  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

4. Introducing to HTML5  Changed old tags  New tags  New Attributes  New Structural Tags 4

Web 101

 HTML was designed to be simple language for describing documents  It was created by scientists, so “simple” is not always your average “simple”  Describing means outlining the structure of a document in terms of parts: headings, paragraphs, lists, tables etc.  To start coding HTML, just create a new file with “.html” extension, our touch it  Think in structure, not presentation 6

 HTML was inspired by other similar languages, such as GML and Scribe  HTML1 had tags for the following elements:  Paragraphs, Headings, Anchors (links), Horizontal rule, Line breaks though they proved insufficient and later more were added  What are tags?  A tag is the red letter from above enclosed in angle brackets: is for paragraph  A pair of starting and end tag forms an element 7

 Q: Why Anchor and not Link?  A: As mentioned earlier, HTML was created by scientists and they tend to have different opinion than we do  Btw, there is Link in HTML, it just does another job  Q: So I just write opening and closed tags?  A: Mostly. There are exceptions.  And you haven’t asked about nesting 8

 Nesting is when you want to put a tag in a tag  You’ve seen “Inception”, you know what I mean  And like in “Inception”, the more you nest, the nastier it gets  Not all tags can be put in all tags  Like, if you want to make an entire paragraph to be a link, you don’t put the link around the paragraph, but vice versa  Scientists, go figure 9

 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 10

 HTML evolved driven by people and browsers  New versions of HTML  Inevitably a doctype  Accompanying technologies  CSS, JavaScript  Plugins like Java, Flash, Silverlight  Rich media and so on… 11

 first-page.html <html><head> My first page!!! My first page!!! </head><body> I am making pages I am making pages </body></html> 12 Boring Boring Content

Time to get dirty

 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.

 Q: What are the equation looking things?  A: That would be attributes  Attributes add more information to an element  Let’s examine:  So my src attribute equals (is) logo.gif  My alt attribute is logo  You can tell it’s 50 pixels wide 15

 Some attributes can apply to all element:  id, style, class, title  The id is unique in the document  The title attribute is displayed as hint when the element is hovered with the mouse  Some attributes are optional  Some are mandatory  Some elements MUST have attributes  the image element must have a src attribute 16

 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  Always think about semantics 17

The ones needed 80% of the time

 Hyperlinks, or just links, are one-way tie between two documents  Put simply, if you have a page, and you want to go to another page, you click (follow) a link  A link must have a destination (href) attribute and text content  Href means “hypertext reference”  Optionally, it my have a title 19 Click Click

 Link to a document on the same server in the same directory:  Link to a document on the same server in the parent directory:  Link to a document on the same server in the sub directory stuff: 20 Fill Our Form Fill Our Form Parent Parent Catalog Catalog

 Link to a document on the same server in the root (top most) directory:  Remember:  if not linking to the root (/), links are relative to the current document and may be broken if you move the origin document  You can do any number of going up (../), but you can’t go upper than the root 21 Fill Our Form Fill Our Form

 Link to an external web site:  Always use the full URL, including the protocol ( not just “devbg.org”  Using the target attribute tells the browser where to open the link, with _blank meaning open in new window  Link to an address: 22 BASD BASD Please report bugs here (by only) Please report bugs here (by only)

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

24 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

Live Demo

26 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... hyperlinks-sections.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 28

 Heading Tags (h1 – h6)  Paragraph Tags  Sections: div and span 29 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

30 <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 </html> headings-and-paragraphs.html

Live Demo

 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 32

 Q: Bold or strong?  A: Strong  Bold describes the looks e.g. the font is bold, strong describes the importance e.g. this word is emphasized on with great importance  Q: So I suppose it’s emphasized and not italics?  A: Correct  Bold, italics, underline are deprecated and will talk about that in a moment 33

 Thinks semantics:  Emphasize, Strong emphasize, Insertion, Deletion, Sub-script, Super-script, Quotations  Those describe parts of the document  There are other, lesser known text formatting elements for input, output, variables and other parts of a document, say a tech spec, but if you come to need those, you can easily google  As usual, most of them are for scientific / engineering purposes and might look weird 34

35 <html> Text formating Text formating Notice Notice This is a sample Web page. This is a sample Web page. Next paragraph: Next paragraph: preformatted. preformatted. More Info More Info One line One line Next line. Next line. </html> text-formatting.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 37 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 38 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 39 <dl><dt>HTML</dt> A markup language … A markup language … <dt>CSS</dt> Language used to … Language used to … </dl>

40 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

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

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

Live Demo

HTML Document Structure in Depth

Lime, Mint and Tonic

 HTML has evolved during the years  From a handful of tags to over a hundred  Though very few tags were removed, many new were added  By design, if a tag is not recognized, it’s ignored and its text content is shown  Problem: how to tell browsers which version is used in a document? 47

 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 48

 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) 49

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

 Q: Which doctype to use?  A: XHTML 1.0 Transitional is usually OK  Do not be tempted by XHTML 1.1  Q: How to remember them?  A: Don’t. Just know which one does what and if needed google 51

Head, Body, Comments and More…

 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.   53

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

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

 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!) – de facto standard  VBScript (obsolete)  Jscript (obsolete) 56

 The element embeds formatting information (CSS styles) into an HTML page 57 <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

 Comments can exist anywhere between the tags  Comments start with  Comments start with 58 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 59 <html> Test page Test page </html>

££ 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 60

61 <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

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

Live Demo

 Block elements add a line break before and after them, and expand to 100% width ,,, are block elements  Inline elements don’t break the text before and after them ,, are inline elements  ck-boxes ck-boxes ck-boxes 65

 creates logical divisions within a page  Block style element  Used with CSS  Example: 66 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  Makes sense only with some CSS 68 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

 html html html 

What the … is HTML 5?

 HTML5 – the next major revision of the HTML  Currently under development  Far away from final version  Developed under the HTML 5 working group of the World Wide Web Consortium (W3C) in 2007  First Public Working Draft of the specification  January 22, 2008  Parts of HTML5 are being implemented in browsers before the whole specification is ready 72

 1991 – HTML first mentioned – Tim Berners-Lee – HTML tags  1993 – HTML (first public version, published at IETF)  1993 – HTML 2 draft  1995 – HTML 2 – W3C  1995 – HTML 3 draft  1997 – HTML 3.2 – “Wilbur”  1997 – HTML 4 – ”Cougar” – CSS  1999 – HTML 4.01 (final)  2000 – XHTML draft  2001 – XHTML (final)  2008 – HTML5 / XHTML5 draft  2011 – feature complete HTML5  2022 – HTML5 – final specification 73

 Latest version is HTML5  Aimed to have all of the power of native applications  Run on any platform (Windows, Linux, iPhone, Android, etc.)  New features should be based on HTML, CSS, DOM and JavaScript  Reduce the need for external plugins  Better error handling  More markup to replace scripting 74

What a Designer Should Know?

 Doctype tag:  HTML tag:  Meta tag:  Link tag:

 Better layout structure: new structural elements   <header> <footer> <nav><aside><section> <header> <article> <footer>

 Elements like header and footer are not meant to be only at the top and bottom of the page  Header and footer of each document section  Not very different from tag but are more semantically well defined in the document structure

<body> HTML 5 Presentation HTML 5 Presentation New Layout Structure New Layout Structure </header> <ul> Lecture Lecture </ul> Demos </ul> Trainers Trainers </ul> </nav>

First Paragraph First Paragraph </header> Some text Some text <aside> more info more info </aside> <footer> Done by Doncho Minkov, (c) 2011, Telerik Academy Done by Doncho Minkov, (c) 2011, Telerik Academy </footer></body>

Live Demo

   For external content, like text from a news-article, blog, forum, or any other external source    For content aside from (but related to) the content it is placed in    For describing details about a document, or parts of a document    A caption, or summary, inside the details element

   For text that should be highlighted    For a section of navigation    For a section in a document (e.g. chapters, headers, footers)    Word break. For defining an appropriate place to break a long word or sentence  Other tags ,,,, etc.

 Media Tags    Attributes: autoplay, controls, loop, src    Attributes: autoplay, controls, loop, height, width, src Audio tag is not supported Audio tag is not supported</audio>

Live Demo

Questions?

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

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. 88

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 89

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