.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> JavaScript/VBScript >> Post New Question Subscribe to Interview Questions

HTML 5 Canvas vs. SVG Graphics Which is better?

Posted By :Jack Hard     Posted Date :October 15, 2012    Points :40   Category :JavaScript/VBScript 
I am trying to wrap my head around which method would be best or recommended. Yesterday I was reading up on SVG graphics and today I was reading about HTML 5 canvas. I noticed that in the tutorial on W3C Schools they drew a circle using HTML 5 canvas http://www.w3schools...5_canvas_circle

and they have another example of drawing the same circle using SVG http://www.w3schools.../svg_circle.asp

What I would like to know is that if code is suppose to be optimized and SVG seems to use less code - than it appears that SVG would be the way to go.

You can also find related Interview Question to HTML 5 Canvas vs. SVG Graphics Which is better?  below: 

Difference Between GET and POST methods in HTML

  
Difference Between GET and POST methods

GET:
1) Data is appended to the URL.
2) Data is not secret.
3) It is a single call system
4) Maximum data that can be sent is 256.
5) Data transmission is faster
6) This is the default method for many browsers

POST:
1) Data is appended to the URL.
2) Data is Secret
3) It is a two call system.
4) There is no Limit on the amount of data.That is characters any amount of data can be sent.
5) Data transmission is comparatively slow.
6) No default and should be Explicitly specified. (More...)

What is difference between xml and html?

  
XMl describe the data or we can say its like a database which get the data and helps in fetching the data on the other side HTML is use only for displayng the data so we can say HTML is static information displayer (More...)

By Default, ASP.NET does not allow HTML tags to be sent to server via client side due to security reason. Which property needs to be set that allows HTML tags to be processed by server?

  
ValidateRequest Property needs to be set to false. By default it's true so it does not allow unencoded HTML tags to be processed at server. It can be set at page level or at application level via web.config. (More...)

Name the HTML Lists?

  
Unordered Lists
Ordered Lists
Definition Lists (More...)

How FontSize and Font Size is differ in HTML?

  
font size is an attribute that we used in font tag.
Ex : use in font tag.

Where as font-size is an style property used for controls.
Ex : Font-Size="Small" use for style property For Controls. (More...)

Methods GET vs. POST in HTML forms.

  
Encoding form data into URL is needed by the GET method. The form data is to be appeared within the message body , by the POST method. By specification, GET is used basically for retrieving data where as POST is used for data storing, data updating, ordering a product or even e-mailing. (More...)

How to set a HTML document's background color in JavaScript?

  
Using document object the back ground color can be changed by JavaScript. The following example illustrates it.





. (More...)

You are designing a single person shooter game application. The player can choose between multiple guns.
1) Pistol with 5 bullets
2) Shotgun with 100 bullets
3) Grenade Launcher with 20 grenades

Each gun will have different sound effects and graphics.

Pressing Ctrl+Space should rotate between guns.
Which design pattern should you employ for this?

  
Use Strategy Pattern.

Explanation: Each gun having different performance and graphics.
So this can be accomodated in the algorithm.

Strategy pattern is best suited for shifting the guns/algorithms

There will be a IGun interface implemented by 3 classes
Pistol : IGun
Shotgun : IGun
GrenadeLauncher : IGun (More...)

How to open html page in pdf format in the browser window?

  
Use ABCpdf third party tool.This tool converts html page to pdf . (More...)

How to send html emails in c#?

  
MailMessage - IsBodyHtml property to true (More...)

What is the difference between XML and HTML?Is XML case sensitive?

  
XML describes data while HTML describes how the data should be displayed.HTML is about displaying information while XML is about describing information. XML can be used to store the data.

XML is case sensitive (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend