UI Training in BTM Marathahalli Bangalore - PowerPoint PPT Presentation

About This Presentation
Title:

UI Training in BTM Marathahalli Bangalore

Description:

We have prepared a lot of understudies in UI advancement. We guarantee position help to our understudies by causing them to communicate with all customers. – PowerPoint PPT presentation

Number of Views:3
Slides: 11
Provided by: achieversittraininga
Tags: student

less

Transcript and Presenter's Notes

Title: UI Training in BTM Marathahalli Bangalore


1
HTML-5 Declaration - lt! DOCTYPE htmlgt
2
  • Definition lt!DOCTYPEgt Defines the Document type
    , ! stands for Exclamation mark and
    DOCTYPE stands for Document type.
  • Description The HTML document type declaration
    is known as DOCTYPE, is the first line of code
    required in every HTML or XHTML document.
    The DOCTYPE declaration is an instruction to the
    web browser about what version of HTML the page
    is written in. This ensures that the web page is
    parsed the same way by different web browsers.

3
Supporting Browsers
  • All the modern browsers like Firefox, Internet
    Explorer, Chrome, Safari, and Opera supports html
    5 doctype.

4
Syntax
  • In HTML 5, the declaration is lt!DOCTYPE htmlgt
  • In HTML 4, the declaration is
  • lt!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN" "http//www.w3.org/TR/html4/str
    ict.dtd"gt 
  • As you can see the syntax, the DOCTYPE for HTML5
    is rather the most shortest declaration compared
    to HTML4 or other XHTML declarations due to lack
    of references to a DTD like we usually have a DTD
    URL as an attribute.

5
Case sensitive
  • lt!DOCTYPE htmlgt Declaration is NOT case
    sensitive
  • We can write any format like
  • My suggestion is to use UPPERCASE

6
Writing code of HTML-4
  • For writing a code to start with first line
    as shown below  

7
Writing code of HTML-5
  • For writing a code to start with first line
    as shown below  

8
EXPLANATION
  • A DOCTYPE declaration appears at the top of a
    web page before all other elements. According to
    the HTML specification or standards, every HTML
    document requires a valid document type
    declaration to insure that your web pages are
    displayed the way they are intended to be
    displayed 
  • The doctype declaration is usually the very first
    thing defined in an HTML document (even before
    the opening lthtmlgt tag) however the doctype
    declaration itself is not an HTML tag. 
  • If you don't use a doctype in the starting of an
    HTML document, the browser goes to the quirky
    mode. In that case, you may find that certain
    content is not being displayed the way you marked
    them up. So, it is a good practice to start your
    HTML document with a doctype

9
  • In the version, HTML 4.01, the usage of DOCTYPE
    declaration was to create a reference to a
    document type definition (DTD), since the version
    HTML 4.01 was completely based on a Standard
    Generalized Markup Language (SGML).
  • The document type definition (DTD) is responsible
    for specifying the rules for the Standard
    Generalized Markup Language(SGML) so that the
    browser processes the content correctly.
  • In HTML 5 there isnt any need for a reference
    to a document type definition (DTD) because HTML
    5 is not based on a Standard Generalized Markup
    Language(SGML).

10
  • THANK YOU
  • WE ARE READY TO HELP
    YOU

  • PLEASE TOUCH WITH US
  • www.achiversit.com
  • Email achieversittraininga_at_gmail.com
  • Email achieversitsol_at_gmail.com
Write a Comment
User Comments (0)
About PowerShow.com