SlideShare ist ein Scribd-Unternehmen logo
1 von 50
HTML 5
                                 The past, the present, the future


Doncho Minkov
Technical Trainer
http://minkov.it
Telerik Web Design Course
http://html5course.telerik.com
Table of Contents
 The Web

 Web Sites and Web Applications

 Hypertext Markup Language

 HTML Concepts

 HTML Document Structure

 HTML Common Elements

 Section Elements

 Semantic Structural Tags

                                                 2
Table of Contents (2)
 HTML Tables

 Complete HTML 5 Tables

 HTML 5 Forms

 Sliders and Spinboxes

 HTML Forms Validation

 Tab Index




                                              3
The Web
How the Web Works?
 WWW use classical client / server architecture

   HTTP is text-based request-response protocol

                     HTTP


                        HTTP
                    Server response


                                      Server running
 Client running a
                                        Web Server
  Web Browser
                                      Software (IIS,
                                       Apache, etc.)   5
Web Sites and
Web Applications
Web Page
 Document or information resource that is

 suitable for the World Wide Web
 Can be accessed through a web browser and

 displayed on a monitor or mobile device
 This information is usually in HTML or XHTML

 format, and may provide navigation to other
 web pages via hypertext links
 Web pages frequently refer to other resources

 such as style sheets (CSS), scripts (JavaScript)
 and images into their final presentation
                                                    7
Web Site
 Collection of related web pages containing

 web resources (web pages, images, videos,
 CSS files, JS files or other digital assets)
 Common navigation between web pages

 A website is hosted on at least one web server

 Accessible via a network (such as the Internet)

 All publicly accessible websites collectively

 constitute the World Wide Web

                                                    8
Web Application
 Next level web sites

 High interactivity

 High accessibility (Cloud)

 Rich Internet Applications (RIA)

   AJAX, Silverlight, Flash, Flex, etc.
 Applications are usually broken into logical
 chunks called "tiers"
   Every tier is assigned a role
 Desktop-like application in the web browser

 Web applications on desktop (Windows 8)
                                                  9
Hypertext Markup Language
Hypertext Markup Language
 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
 A HTML document consists of many tags
                                              11
Creating HTML Pages
 An HTML document 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 WebMatrix
   Microsoft Expression Web
   Microsoft Visual Studio
   Adobe Dreamweaver
                                                 12
HTML Terminology
Tags, Attributes and Elements
HTML Terminology
 Concepts in HTML

  Tags
    Opening tag and closing tag
    The smallest piece in HTML
  Attributes
    Properties of the tag
    Size, color, etc…
  Elements
    Combination of opening, closing tag and
     attributes
HTML Tags
 Tags are the smallest piece in HTML Document

 Start with "<" and end with ">"

 Two kinds of tags

   Opening                              Opening
                            <html>
    Mark the start of an   <body>          tag
                               <h1>Hello Pesho!</h1>
     HTML element           </body>
                            </html>
   Closing
                                        Closing tag
    Mark the end of an
     HTML element
    Start in "</"                                     15
Attributes
 Attributes are properties of HTML Elements

  Used to set size, color, border, etc…
  Put directly in the tags
  Has value surrounded by ""
    The value is always a string

   <!-– makes a hyperlink to Google -->
   <a href="http://google.com"> go to Google</a>
   <!-– makes a horizontal line -->
   <hr width="95%" size="3px"/>             Some tags don't
                                            have closing tag
   <!-– adds an image in the web page -->
   <img src="images/SEB-Ninja.png"/>
                                                               16
Most Common Attributes
 There are some attributes that are common for

 every HTML element
   Id, class, name, style
 And some attributes are specific

   For example the attribute src of the img
    element
    Shows the path to the image to be shown



                                                  17
HTML Elements

 HTML Elements are combination of tags and

 attributes
  Opening tag with some or none attributes and a
   closing tag
   <a href="http://google.com"> go to Google</a>

   <html>…</html>




                                                    18
HTML
Terminology
   Live Demo
HTML Document Structure
  HTML Document, Doctype, Head, Body
HTML Document Structure
 Some elements are essential to each HTML

 Document:
    html, head, body, doctype
 The html element

  Used to mark the beginning and ending of a
   HTML document
  All the content of the web page is inside this tag
   <html>
       …
   </html>

                                                        21
Head Element
 The head tag contains markup that is not

 visible to the user (i.e. the person using the
 browser)
   But helps the browser to render correctly the
    HTML document
 What is in there?

   Styles, scripts
   Declare encodings
   Etc..
   The title tag - the text in the tab of a browser   22
Body Element and Doctype
 Body element Contains all the visible to the

 user markup
   Headings, text, hyperlinks, images, etc…
   Textboxes, sliders, buttons…
 Doctype is kind of the validator of the page

   Tells the browser in which version of HTML the
    page is written
   Most common Doctype
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">s

   HTML 5 Doctype                                                23
HTML Document Structure
        Live Demo
HTML Common Elements
    Used in 90% of all the sites
Text Formatting
   Text formatting tags modify the text between
    the opening tag and the closing tag
     Ex. <b>Hello</b> makes “Hello” bold




                                                   26
Some Simple Tags
 Hyperlink Tags


  <a href="http://www.telerik.com/"
    title="Telerik">Link to Telerik Web site</a>
 Image Tags


  <img src="logo.gif" alt="logo" />
 Text formatting tags


  This text is <em>emphasized.</em>
  <br />new line<br />
  This one is <strong>more emphasized.</strong>
                                                   27
Headings and Paragraphs
 Heading Tags (h1 – h6)

  <h1>Heading 1</h1>
  <h2>Sub heading 2</h2>
  <h3>Sub heading 3</h3>

 Paragraph Tags

  <p>This is my first paragraph</p>
  <p>This is my second paragraph</p>

 Sections: div and span

  <div style="background: skyblue;">
     This is a div</div>
                                         28
Ordered Lists: <ol> Tag
   Create an Ordered List using <ol></ol>:
    <ol type="1">
      <li>Apple</li>
      <li>Orange</li>
      <li>Grapefruit</li>
    </ol>

   Attribute values for type are 1, A, a, I, or i
    1. Apple                                    i. Apple
    2. Orange                                   ii. Orange
    3. Grapefruit                               iii. Grapefruit
                         a. Apple
           A. Apple      b. Orange     I. Apple
           B. Orange     c. Grapefruit II. Orange
           C. Grapefruit               III. Grapefruit
                                                              29
Unordered Lists: <ul> Tag
 Create an Unordered List using <ul></ul>:
  <ul type="disk">
    <li>Apple</li>
    <li>Orange</li>
    <li>Grapefruit</li>
  </ul>

 Attribute values for type are:

   disc, circle or square
 • Apple              o Apple       Apple
 • Orange             o Orange      Orange
 • Pear               o Pear        Pear
                                              30
Definition lists: <dl> tag
 Create definition lists using <dl>

   Pairs of text and associated definition; text is in
    <dt> tag, definition in <dd> tag
   <dl>
      <dt>HTML</dt>
      <dd>A markup language …</dd>
      <dt>CSS</dt>
      <dd>Language used to …</dd>
   </dl>
   Renders without bullets
   Definition is indented
                                                          31
HTML Common Elements
       Live Demo
Section Elements
 The <div> and The <span>
Block and Inline Elements
 Block elements add a line break before and

 after them, and expand to 100% width
   <div>, <p>, <h1>, <ul> are block elements
 Inline elements don’t break the text before

 and after them
   <span>, <a>, <em> are inline elements
 http://www.w3.org/TR/CSS2/visuren.html#block-




                                                34
The <div> Tag
 <div> creates logical divisions within a page

 Block style element

 Used with CSS

 Example:


  div-and-span.html
  <div style="font-size:24px; color:red">DIV
  example</div>
  <p>This one is <span style="color:red; font-
  weight:bold">only a test</span>.</p>
                                                  35
<DIV>
Live Demo
The <span> Tag
 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


span.html
 <p>This one is <span style="color:red; font-
 weight:bold">only a test</span>.</p>
 <p>This one is another <span style="font-size:32px;
 font-weight:bold">TEST</span>.</p>
                                                       37
<SPAN>
Live Demo
Semantic Structural Tags
The Structure of a Web Page
 A sample layout structure of a Web Page
The "HTML 4 and Before" Way
 Using divs with IDs

   The IDs are needed for styling

 <html>
 <head> …   </head>
 <body>
     <div   id="header"> … </div>
     <div   id="navigation"> … </div>
     <div   id="sidebar"> … </div>
     <div   id="content"> … </div>
     <div   id="footer"> … </div>
 </body>
 </html>


                                        41
The HTML 4 Way
    Live Demo
The HTML 5 Way
 In HTML 5 there are semantic tags for layout

   <nav>, <header>, <footer>, <section>

 <html>
 <head> … </head>
 <body>
     <header> … </header>
     <nav> … </nav>
     <aside> … </aside>
     <section> … </section>
     <footer> … </footer>
 </body>
 </html>

   Work only on newer browsers
                                                 43
Semantic Structural Tags
         Live Demo
Remember
 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




                                                    45
HTML 5




http://html5course.telerik.com
Exercises
1.   Write an HTML page like the following:
        * Use headings and divs




                                                      47
Exercises (2)
1.   Write an HTML page like the following:




8.   Write an HTML page looking like the PNG file named
     3.Introduction.PNG. Using the <a> tag add anchors
     to the corresponding sections in the same page.      48
Exercises (3)
f   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 <a> tag




                                             49
Exercises (4)
1.   Create a Web site like the following:




     See the image InetJava-site.png.               50

Weitere ähnliche Inhalte

Was ist angesagt?

Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basicsEliran Eliassy
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTMLAmit Tyagi
 
FFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLFFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLToni Kolev
 
Web front end development introduction to html css and javascript
Web front end development introduction to html css and javascriptWeb front end development introduction to html css and javascript
Web front end development introduction to html css and javascriptMarc Huang
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designersSingsys Pte Ltd
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation Salman Memon
 
CSS Foundations, pt 1
CSS Foundations, pt 1CSS Foundations, pt 1
CSS Foundations, pt 1Shawn Calvert
 
Cascading Style Sheets - CSS
Cascading Style Sheets - CSSCascading Style Sheets - CSS
Cascading Style Sheets - CSSSun Technlogies
 

Was ist angesagt? (20)

Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
 
Web Typography
Web TypographyWeb Typography
Web Typography
 
Html css
Html cssHtml css
Html css
 
Css.html
Css.htmlCss.html
Css.html
 
Images on the Web
Images on the WebImages on the Web
Images on the Web
 
Intro to HTML and CSS basics
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basics
 
Week 2-intro-html
Week 2-intro-htmlWeek 2-intro-html
Week 2-intro-html
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
FFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLFFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTML
 
Web front end development introduction to html css and javascript
Web front end development introduction to html css and javascriptWeb front end development introduction to html css and javascript
Web front end development introduction to html css and javascript
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
 
Basic css
Basic cssBasic css
Basic css
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
 
CSS
CSS CSS
CSS
 
Basic-CSS-tutorial
Basic-CSS-tutorialBasic-CSS-tutorial
Basic-CSS-tutorial
 
CSS ppt
CSS pptCSS ppt
CSS ppt
 
CSS Foundations, pt 1
CSS Foundations, pt 1CSS Foundations, pt 1
CSS Foundations, pt 1
 
Cascading Style Sheets - CSS
Cascading Style Sheets - CSSCascading Style Sheets - CSS
Cascading Style Sheets - CSS
 
Css lecture notes
Css lecture notesCss lecture notes
Css lecture notes
 

Andere mochten auch

009 sql server management studio
009 sql server management studio009 sql server management studio
009 sql server management studiolet's go to study
 
ASP.NET Core deployment options
ASP.NET Core deployment optionsASP.NET Core deployment options
ASP.NET Core deployment optionsKen Cenerelli
 
OOPs fundamentals session for freshers in my office (Aug 5, 13)
OOPs fundamentals session for freshers in my office (Aug 5, 13)OOPs fundamentals session for freshers in my office (Aug 5, 13)
OOPs fundamentals session for freshers in my office (Aug 5, 13)Ashoka R K T
 
Javascript and Jquery: The connection between
Javascript and Jquery: The connection betweenJavascript and Jquery: The connection between
Javascript and Jquery: The connection betweenClint LaForest
 
Complex Data Binding
Complex Data BindingComplex Data Binding
Complex Data BindingDoncho Minkov
 
WPF Templating and Styling
WPF Templating and StylingWPF Templating and Styling
WPF Templating and StylingDoncho Minkov
 
Data Access with ADO.Net
Data Access with ADO.NetData Access with ADO.Net
Data Access with ADO.NetAmitek Rathod
 
Back to the Basics - 1 - Introduction to Web Development
Back to the Basics - 1 - Introduction to Web DevelopmentBack to the Basics - 1 - Introduction to Web Development
Back to the Basics - 1 - Introduction to Web DevelopmentClint LaForest
 
.Net framework architecture
.Net framework architecture.Net framework architecture
.Net framework architectureFad Zulkifli
 
Model View ViewModel
Model View ViewModelModel View ViewModel
Model View ViewModelDoncho Minkov
 
Future Web Trends - at Innovation series with Jimmy Wales
Future Web Trends - at Innovation series with Jimmy WalesFuture Web Trends - at Innovation series with Jimmy Wales
Future Web Trends - at Innovation series with Jimmy WalesMatthew Buckland
 

Andere mochten auch (20)

009 sql server management studio
009 sql server management studio009 sql server management studio
009 sql server management studio
 
Sql server 2012 ha dr
Sql server 2012 ha drSql server 2012 ha dr
Sql server 2012 ha dr
 
ASP.NET Core deployment options
ASP.NET Core deployment optionsASP.NET Core deployment options
ASP.NET Core deployment options
 
OOPs fundamentals session for freshers in my office (Aug 5, 13)
OOPs fundamentals session for freshers in my office (Aug 5, 13)OOPs fundamentals session for freshers in my office (Aug 5, 13)
OOPs fundamentals session for freshers in my office (Aug 5, 13)
 
Javascript and Jquery: The connection between
Javascript and Jquery: The connection betweenJavascript and Jquery: The connection between
Javascript and Jquery: The connection between
 
WPF Controls
WPF ControlsWPF Controls
WPF Controls
 
Complex Data Binding
Complex Data BindingComplex Data Binding
Complex Data Binding
 
WPF Templating and Styling
WPF Templating and StylingWPF Templating and Styling
WPF Templating and Styling
 
Slice and Dice
Slice and DiceSlice and Dice
Slice and Dice
 
CSS Presentation
CSS PresentationCSS Presentation
CSS Presentation
 
Data Access with ADO.Net
Data Access with ADO.NetData Access with ADO.Net
Data Access with ADO.Net
 
WPF and Databases
WPF and DatabasesWPF and Databases
WPF and Databases
 
CSS 3
CSS 3CSS 3
CSS 3
 
Back to the Basics - 1 - Introduction to Web Development
Back to the Basics - 1 - Introduction to Web DevelopmentBack to the Basics - 1 - Introduction to Web Development
Back to the Basics - 1 - Introduction to Web Development
 
.Net framework architecture
.Net framework architecture.Net framework architecture
.Net framework architecture
 
ASP.NET OVERVIEW
ASP.NET OVERVIEWASP.NET OVERVIEW
ASP.NET OVERVIEW
 
Model View ViewModel
Model View ViewModelModel View ViewModel
Model View ViewModel
 
Web Design Concepts
Web Design ConceptsWeb Design Concepts
Web Design Concepts
 
C# fundamentals Part 2
C# fundamentals Part 2C# fundamentals Part 2
C# fundamentals Part 2
 
Future Web Trends - at Innovation series with Jimmy Wales
Future Web Trends - at Innovation series with Jimmy WalesFuture Web Trends - at Innovation series with Jimmy Wales
Future Web Trends - at Innovation series with Jimmy Wales
 

Ähnlich wie HTML 5

3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02Aditya Varma
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyshabab shihan
 
Vskills certified html designer Notes
Vskills certified html designer NotesVskills certified html designer Notes
Vskills certified html designer NotesVskills
 
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvZahouAmel1
 
Additional HTML
Additional HTML Additional HTML
Additional HTML Doeun KOCH
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.Beqa Chacha
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basicsNikita Garg
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basicsxu fag
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basicsMinea Chem
 
WT Module-1.pdf
WT Module-1.pdfWT Module-1.pdf
WT Module-1.pdfRamyaH11
 

Ähnlich wie HTML 5 (20)

HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easily
 
Html
HtmlHtml
Html
 
Grade 10 COMPUTER
Grade 10 COMPUTERGrade 10 COMPUTER
Grade 10 COMPUTER
 
Vskills certified html designer Notes
Vskills certified html designer NotesVskills certified html designer Notes
Vskills certified html designer Notes
 
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
 
Iwt module 1
Iwt  module 1Iwt  module 1
Iwt module 1
 
Additional HTML
Additional HTML Additional HTML
Additional HTML
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.
 
Html
HtmlHtml
Html
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
Introduction to WEB HTML, CSS
Introduction to WEB HTML, CSSIntroduction to WEB HTML, CSS
Introduction to WEB HTML, CSS
 
Dynamic html (#1)
Dynamic  html (#1)Dynamic  html (#1)
Dynamic html (#1)
 
WT Module-1.pdf
WT Module-1.pdfWT Module-1.pdf
WT Module-1.pdf
 
mst_unit1.pptx
mst_unit1.pptxmst_unit1.pptx
mst_unit1.pptx
 
Html basics
Html basicsHtml basics
Html basics
 

Mehr von Doncho Minkov

Mehr von Doncho Minkov (20)

Web design Tools
Web design ToolsWeb design Tools
Web design Tools
 
HTML 5 Tables and Forms
HTML 5 Tables and FormsHTML 5 Tables and Forms
HTML 5 Tables and Forms
 
CSS Layout
CSS LayoutCSS Layout
CSS Layout
 
Adobe Photoshop
Adobe PhotoshopAdobe Photoshop
Adobe Photoshop
 
Introduction to XAML and WPF
Introduction to XAML and WPFIntroduction to XAML and WPF
Introduction to XAML and WPF
 
WPF Layout Containers
WPF Layout ContainersWPF Layout Containers
WPF Layout Containers
 
WPF Graphics and Animations
WPF Graphics and AnimationsWPF Graphics and Animations
WPF Graphics and Animations
 
Simple Data Binding
Simple Data BindingSimple Data Binding
Simple Data Binding
 
WPF Concepts
WPF ConceptsWPF Concepts
WPF Concepts
 
Introduction to Cross-platform Mobile Development Course
Introduction to Cross-platform Mobile Development CourseIntroduction to Cross-platform Mobile Development Course
Introduction to Cross-platform Mobile Development Course
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
Tables and Forms in HTML
Tables and Forms in HTMLTables and Forms in HTML
Tables and Forms in HTML
 
HTML5
HTML5HTML5
HTML5
 
CSS Part I
CSS Part ICSS Part I
CSS Part I
 
CSS Part II
CSS Part IICSS Part II
CSS Part II
 
CSS3
CSS3CSS3
CSS3
 
Workshop Usability
Workshop UsabilityWorkshop Usability
Workshop Usability
 
JavaScript
JavaScriptJavaScript
JavaScript
 
JavaScript OOP
JavaScript OOPJavaScript OOP
JavaScript OOP
 
jQuery Fundamentals
jQuery FundamentalsjQuery Fundamentals
jQuery Fundamentals
 

Kürzlich hochgeladen

Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...itnewsafrica
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 

Kürzlich hochgeladen (20)

Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 

HTML 5

  • 1. HTML 5 The past, the present, the future Doncho Minkov Technical Trainer http://minkov.it Telerik Web Design Course http://html5course.telerik.com
  • 2. Table of Contents  The Web  Web Sites and Web Applications  Hypertext Markup Language  HTML Concepts  HTML Document Structure  HTML Common Elements  Section Elements  Semantic Structural Tags 2
  • 3. Table of Contents (2)  HTML Tables  Complete HTML 5 Tables  HTML 5 Forms  Sliders and Spinboxes  HTML Forms Validation  Tab Index 3
  • 5. How the Web Works?  WWW use classical client / server architecture  HTTP is text-based request-response protocol HTTP HTTP Server response Server running Client running a Web Server Web Browser Software (IIS, Apache, etc.) 5
  • 6. Web Sites and Web Applications
  • 7. Web Page  Document or information resource that is suitable for the World Wide Web  Can be accessed through a web browser and displayed on a monitor or mobile device  This information is usually in HTML or XHTML format, and may provide navigation to other web pages via hypertext links  Web pages frequently refer to other resources such as style sheets (CSS), scripts (JavaScript) and images into their final presentation 7
  • 8. Web Site  Collection of related web pages containing web resources (web pages, images, videos, CSS files, JS files or other digital assets)  Common navigation between web pages  A website is hosted on at least one web server  Accessible via a network (such as the Internet)  All publicly accessible websites collectively constitute the World Wide Web 8
  • 9. Web Application  Next level web sites  High interactivity  High accessibility (Cloud)  Rich Internet Applications (RIA)  AJAX, Silverlight, Flash, Flex, etc.  Applications are usually broken into logical chunks called "tiers"  Every tier is assigned a role  Desktop-like application in the web browser  Web applications on desktop (Windows 8) 9
  • 11. Hypertext Markup Language  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  A HTML document consists of many tags 11
  • 12. Creating HTML Pages  An HTML document 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 WebMatrix  Microsoft Expression Web  Microsoft Visual Studio  Adobe Dreamweaver 12
  • 14. HTML Terminology  Concepts in HTML  Tags  Opening tag and closing tag  The smallest piece in HTML  Attributes  Properties of the tag  Size, color, etc…  Elements  Combination of opening, closing tag and attributes
  • 15. HTML Tags  Tags are the smallest piece in HTML Document  Start with "<" and end with ">"  Two kinds of tags  Opening Opening <html>  Mark the start of an <body> tag <h1>Hello Pesho!</h1> HTML element </body> </html>  Closing Closing tag  Mark the end of an HTML element  Start in "</" 15
  • 16. Attributes  Attributes are properties of HTML Elements  Used to set size, color, border, etc…  Put directly in the tags  Has value surrounded by ""  The value is always a string <!-– makes a hyperlink to Google --> <a href="http://google.com"> go to Google</a> <!-– makes a horizontal line --> <hr width="95%" size="3px"/> Some tags don't have closing tag <!-– adds an image in the web page --> <img src="images/SEB-Ninja.png"/> 16
  • 17. Most Common Attributes  There are some attributes that are common for every HTML element  Id, class, name, style  And some attributes are specific  For example the attribute src of the img element  Shows the path to the image to be shown 17
  • 18. HTML Elements  HTML Elements are combination of tags and attributes  Opening tag with some or none attributes and a closing tag <a href="http://google.com"> go to Google</a> <html>…</html> 18
  • 19. HTML Terminology Live Demo
  • 20. HTML Document Structure HTML Document, Doctype, Head, Body
  • 21. HTML Document Structure  Some elements are essential to each HTML Document:  html, head, body, doctype  The html element  Used to mark the beginning and ending of a HTML document  All the content of the web page is inside this tag <html> … </html> 21
  • 22. Head Element  The head tag contains markup that is not visible to the user (i.e. the person using the browser)  But helps the browser to render correctly the HTML document  What is in there?  Styles, scripts  Declare encodings  Etc..  The title tag - the text in the tab of a browser 22
  • 23. Body Element and Doctype  Body element Contains all the visible to the user markup  Headings, text, hyperlinks, images, etc…  Textboxes, sliders, buttons…  Doctype is kind of the validator of the page  Tells the browser in which version of HTML the page is written  Most common Doctype <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">s  HTML 5 Doctype 23
  • 25. HTML Common Elements Used in 90% of all the sites
  • 26. Text Formatting  Text formatting tags modify the text between the opening tag and the closing tag  Ex. <b>Hello</b> makes “Hello” bold 26
  • 27. Some Simple Tags  Hyperlink Tags <a href="http://www.telerik.com/" title="Telerik">Link to Telerik Web site</a>  Image Tags <img src="logo.gif" alt="logo" />  Text formatting tags This text is <em>emphasized.</em> <br />new line<br /> This one is <strong>more emphasized.</strong> 27
  • 28. Headings and Paragraphs  Heading Tags (h1 – h6) <h1>Heading 1</h1> <h2>Sub heading 2</h2> <h3>Sub heading 3</h3>  Paragraph Tags <p>This is my first paragraph</p> <p>This is my second paragraph</p>  Sections: div and span <div style="background: skyblue;"> This is a div</div> 28
  • 29. Ordered Lists: <ol> Tag  Create an Ordered List using <ol></ol>: <ol type="1"> <li>Apple</li> <li>Orange</li> <li>Grapefruit</li> </ol>  Attribute values for type are 1, A, a, I, or i 1. Apple i. Apple 2. Orange ii. Orange 3. Grapefruit iii. Grapefruit a. Apple A. Apple b. Orange I. Apple B. Orange c. Grapefruit II. Orange C. Grapefruit III. Grapefruit 29
  • 30. Unordered Lists: <ul> Tag  Create an Unordered List using <ul></ul>: <ul type="disk"> <li>Apple</li> <li>Orange</li> <li>Grapefruit</li> </ul>  Attribute values for type are:  disc, circle or square • Apple o Apple  Apple • Orange o Orange  Orange • Pear o Pear  Pear 30
  • 31. Definition lists: <dl> tag  Create definition lists using <dl>  Pairs of text and associated definition; text is in <dt> tag, definition in <dd> tag <dl> <dt>HTML</dt> <dd>A markup language …</dd> <dt>CSS</dt> <dd>Language used to …</dd> </dl>  Renders without bullets  Definition is indented 31
  • 32. HTML Common Elements Live Demo
  • 33. Section Elements The <div> and The <span>
  • 34. Block and Inline Elements  Block elements add a line break before and after them, and expand to 100% width  <div>, <p>, <h1>, <ul> are block elements  Inline elements don’t break the text before and after them  <span>, <a>, <em> are inline elements  http://www.w3.org/TR/CSS2/visuren.html#block- 34
  • 35. The <div> Tag  <div> creates logical divisions within a page  Block style element  Used with CSS  Example: div-and-span.html <div style="font-size:24px; color:red">DIV example</div> <p>This one is <span style="color:red; font- weight:bold">only a test</span>.</p> 35
  • 37. The <span> Tag  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 span.html <p>This one is <span style="color:red; font- weight:bold">only a test</span>.</p> <p>This one is another <span style="font-size:32px; font-weight:bold">TEST</span>.</p> 37
  • 40. The Structure of a Web Page  A sample layout structure of a Web Page
  • 41. The "HTML 4 and Before" Way  Using divs with IDs  The IDs are needed for styling <html> <head> … </head> <body> <div id="header"> … </div> <div id="navigation"> … </div> <div id="sidebar"> … </div> <div id="content"> … </div> <div id="footer"> … </div> </body> </html> 41
  • 42. The HTML 4 Way Live Demo
  • 43. The HTML 5 Way  In HTML 5 there are semantic tags for layout  <nav>, <header>, <footer>, <section> <html> <head> … </head> <body> <header> … </header> <nav> … </nav> <aside> … </aside> <section> … </section> <footer> … </footer> </body> </html>  Work only on newer browsers 43
  • 45. Remember  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 45
  • 47. Exercises 1. Write an HTML page like the following: * Use headings and divs 47
  • 48. Exercises (2) 1. Write an HTML page like the following: 8. Write an HTML page looking like the PNG file named 3.Introduction.PNG. Using the <a> tag add anchors to the corresponding sections in the same page. 48
  • 49. Exercises (3) f 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 <a> tag 49
  • 50. Exercises (4) 1. Create a Web site like the following: See the image InetJava-site.png. 50

Hinweis der Redaktion

  1. * 07/16/96 (c) 2007 National Academy for Software Development - http://academy.devbg.org. All rights reserved. Unauthorized copying or re-distribution is strictly prohibited.* ##
  2. * 07/16/96 (c) 2007 National Academy for Software Development - http://academy.devbg.org. All rights reserved. Unauthorized copying or re-distribution is strictly prohibited.* ##
  3. * 07/16/96 (c) 2007 National Academy for Software Development - http://academy.devbg.org. All rights reserved. Unauthorized copying or re-distribution is strictly prohibited.* ##
  4. * 07/16/96 (c) 2007 National Academy for Software Development - http://academy.devbg.org. All rights reserved. Unauthorized copying or re-distribution is strictly prohibited.* ##
  5. * 07/16/96 (c) 2007 National Academy for Software Development - http://academy.devbg.org. All rights reserved. Unauthorized copying or re-distribution is strictly prohibited.* ##
  6. * 07/16/96 (c) 2007 National Academy for Software Development - http://academy.devbg.org. All rights reserved. Unauthorized copying or re-distribution is strictly prohibited.* ##
  7. * 07/16/96 (c) 2007 National Academy for Software Development - http://academy.devbg.org. All rights reserved. Unauthorized copying or re-distribution is strictly prohibited.* ##
  8. * 07/16/96 (c) 2007 National Academy for Software Development - http://academy.devbg.org. All rights reserved. Unauthorized copying or re-distribution is strictly prohibited.* ##
  9. * 07/16/96 (c) 2007 National Academy for Software Development - http://academy.devbg.org. All rights reserved. Unauthorized copying or re-distribution is strictly prohibited.* ##
  10. * 07/16/96 (c) 2007 National Academy for Software Development - http://academy.devbg.org. All rights reserved. Unauthorized copying or re-distribution is strictly prohibited.* ##
  11. * 07/16/96 (c) 2007 National Academy for Software Development - http://academy.devbg.org. All rights reserved. Unauthorized copying or re-distribution is strictly prohibited.* ##
  12. * 07/16/96 (c) 2007 National Academy for Software Development - http://academy.devbg.org. All rights reserved. Unauthorized copying or re-distribution is strictly prohibited.* ##
  13. * 07/16/96 (c) 2007 National Academy for Software Development - http://academy.devbg.org. All rights reserved. Unauthorized copying or re-distribution is strictly prohibited.* ##