Friday, February 18, 2011

XML


XML

XML stands for extensible markup language xml is designed to carry and transport data
Where as Html is just to display data,

Xml can be categorized into 2 types they are

 1.well formed xml
 2.Validate xml

 Rules of an xml
    It should be have opening and closing tags
    Tags should have properly nested
    We can define our own tags
    The root element is called parent element and it should have some child elements(tags)
     Elements are the tag names and attributes are called their values
    
 Well fomed xml should have to follow the above rules
  Validate xml is a well formed xml and it should follow DTD rules and regulations
  Validate xml having two types they are
                                       1.DTD
                                       2.Schema
DTD example
------------------- 

<!DOCTYPE note
[
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>
      

Schema example
<xs:element name="note">
<xs:complexType>
  <xs:sequence>
    <xs:element name="to" type="xs:string"/>
    <xs:element name="from" type="xs:string"/>
    <xs:element name="heading" type="xs:string"/>
    <xs:element name="body" type="xs:string"/>
  </xs:sequence>
</xs:complexType>
</xs:element>                          
  

Thursday, February 17, 2011

HTML -REFRESH


HTML
-----

Today i just to refresh my brain i go through  the w3schools.com doctype--rules of an

language it tells the mark up langauge to browser


DTD(document type definition)

1.strict---it contains all html elements,except  font and frameset

2.Transitional--it supports all html elements and attributes except frameset

3.Frameset---it supports all elements and  attributes

why we saying before we starting any html language just go through any site it saying a
huge big 3 line statement containing

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> like this ....any website has validated by some
webstandards the rules must follow any website as per the browser understanding the

document are coming from html and browser will parse...

For validating any website just go to http://validator.w3.org/  in that validator website

you may enter url or just copy paste your own code or website html  code it will validate

the errors and returned to you .. and then today i refresh the html language  becuase i dont

want to forget anything.


<iframe> This tag is very useful to create an certain area in browser window we can

create an  new small window in html pages we can declare  the height and width

<target> using target we can fetch the  element from one location to another location




Now the Latest version of Html is HTML-5 it  supports the
      <canvas>
      <svg>
      <video>  

new html5 supports videos the biggest challenge is in future versions of browsers we

need not depend on flash player its an heavy weight one using canvas element in html5

supports to draw  graphics and pictures in browser with the help of javascript using svg

element we can draw circles, ovals,rectangles,polygon,polyline,line etc., previously for

this we need to depend on some other plugin but now observe web becomes most user

friendly