wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in

Arbaz

user banner image
profile
Arbaz @arbaz

ResumeBlogsQuestions
Sign in

Top Users

profile

UZMA KHAN

@uzmakhan
profile

Uzma Behlim

@uzmabehlim
profile

Gopi

@gopi

Featured Blogs

Operating system evolution

Blog banner

Apache Spark :- Powerful Data Processing Tool

Blog banner

Decrypting Cryptocurrency: Tracing Transactions in Cyber Investigations

Blog banner

Burning Questions

How to use PwDump and crack a password using Lcp tool???

Battle of hydaspes was fought between whom?

write a program for TowerOFHanoi

Contact Us

|

About Us

|

Points nomenclature

|

Terms of service

|

Privacy Policy

|

Cookie Policy
profile

Arbaz

@arbazAug 23, 2017

What is HTML ? Differentiate between HTML and HTML5?

Hypertext Markup Language (HTML) is the standard markup language for creating web pages and web applications. With Cascading Style Sheets (CSS) and JavaScript it forms a triad of cornerstone technologies for theWorld Wide Web.[1] Web browsers receive HTML documents from a web server or from local storage and render them into multimedia web pages. HTML describes the structure of a web page semantically and originally included cues for the appearance of the document. HTML elements are the building blocks of HTML pages. With HTML constructs, imagesand other objects, such as interactive forms,may be embedded into the rendered page. It provides a means to create structured documents by denoting structural semanticsfor text such as headings, paragraphs, lists,links, quotes and other items. HTML elements are delineated by tags, written using angle brackets. Tags such as <img /> and <input /> introduce content into the page directly. Others such as <p>...</p> surround and provide information about document text and may include other tags as sub-elements. Browsers do not display the HTML tags, but use them to interpret the content of the page. HTML can embed programs written in ascripting language such as JavaScript which affect the behavior and content of web pages. Inclusion of CSS defines the look and layout of content. The World Wide Web Consortium(W3C), maintainer of both the HTML and the CSS standards, has encouraged the use of CSS over explicit presentational HTML since 1997.[2] Html Html5 Doctype declaration in Html is too longer<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> DOCTYPE declaration in Html5 is very simple "<!DOCTYPE html> character encoding in Html is also longer <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> character encoding (charset) declaration is also very simple <meta charset="UTF-8"> Audio and Video are not part of HTML4 Audio and Videos are integral part of HTML5 e.g. <audio> and <video> tags. Vector Graphics is possible with the help of technologies such as VML, Silverlight, Flash etc Vector graphics is integral part of HTML5 e.g. SVG and canvas It is almost impossible to get true GeoLocation of user browsing any website especially if it comes to mobile devices. JS GeoLocation API in HTML5 helps identify location of user browsing any website (provided user allows it) Html5 use cookies. It provides local storage in place of cookies. Not possible to draw shapes like circle, rectangle, triangle. Using Html5 you can draw shapes like circle, rectangle, triangle. Does not allow JavaScript to run in browser. JS runs in same thread as browser interface. Allows JavaScript to run in background. This is possible due to JS Web worker API in HTML5 Works with all old browsers Supported by all new browser.

3 Discussions
449 Reads
profile

Arbaz

@arbazAug 16, 2017

Write a short note on java script object?

JavaScript is an Object Oriented Programming language (OOP). An Object is a special kind of data and acts like real –life objects. An object has properties and methods. A real-life example for object could be a music system. It has properties like, on, off, current volume, etc. The methods could be said as, turn on, turn off, increase volume, etc. Similarly, JavaScript objects do have properties and methods.   PROPERTIES: Properties are the values associated with an Object. Example: stringObject.lengthNOTE: ”. length” is a property which is associated with a string Object. METHODS: Methods could be said as the action which can be performed on an object. Example: stringObject.link(url)NOTE: “.link()” is an action which is used to make a string Object into a link.   KINDS OF JAVASCRIPT OBJECTS There are mainly 6 types of built-in Objects in Javascript. They are, string Object, date Object, Boolean Object, array Object, math Object and RegExp Objects. JAVASCRIPT STRING OBJECT A string Object is used to manipulate a stored piece of Text. Examples: String Object Properties: .length, .prototypeString Object Methods: big(), toUpperCase(), match(); Syntax for creating a String object: var myStr=new String(string); JavaScript Date Object Date Object is used to work with dates and times. Examples: Date Object Properties: .constructor, .prototypeDate Object Methods: Date(), getDate(), getDay() Syntax for creating a Date object: var myDate=new Date(); JavaScript Array Object Array Objects are used to store multiple values in a single variable. An Array can hold more than one value at a time.   Examples Array Object Properties: .length, .prototype,Array Object Methods: .concant(), .join() Syntax for creating an Array object: var myColors=new Array("red”,”blue","green") JavaScript Boolean Object Boolean Object is used to convert a non-boolean value into a Boolean value. ( True /False). Examples Boolean Object Properties: .constructor, .prototypeBoolean Object Methods: .toString(),.valueOf() Syntax for Creating a Boolean Object: Var myBoolean = new Boolean(value); JavaScript Math Object Math Objects are used to perform mathematical tasks. Examples Math Object Properties: .SQRT1_2, .SQRT2Math Object methods: .round(x),.max(x,y) Syntax for Creating a Math Object: All properties and methods of Math can be called by using Math as an object without creating it, because math object is not a constructor. JavaScript RegExp Object The RegExp Obejct is used for “What” to search in the “text”. RegExp is the short for Regular Expression. We can use to search for a pattern inside a text. RegExp is used to strore a pattern.   Examples RegExp Object Properties: .global, .ignoreCaseRegExp Object Methods: .test(), .exec(), .compile(); Syntax for creating a RegExp Object: var txt=new RegExp(pattern,attributes); OR var txt=/pattern/attributes;

1 Discussions
663 Reads