39.1k views
1 vote
You are creating a Web page that will display game graphics on the fly. You do not want to rely on browser plug-ins or third-party JavaScript libraries.

Which of the following should you use?
Option 1: HTML
Option 2: CSS
Option 3: WebGL
Option 4: Java

User Diegohb
by
8.0k points

1 Answer

5 votes

Final answer:

WebGL is the appropriate technology for creating a web page that displays game graphics on the fly, without relying on browser plugins or third-party libraries. It uses the HTML5 canvas element for GPU-accelerated graphics rendering.

Step-by-step explanation:

If you are creating a Web page designed to display game graphics without relying on browser plug-ins or third-party JavaScript libraries, the best choice would be to use WebGL. WebGL is a JavaScript API that allows you to render interactive 3D and 2D graphics within any compatible web browser, without the use of plugins. This technology is built on top of the HTML5 canvas element and allows for GPU-accelerated usage of physics and image processing and effects as part of the web page canvas.

HTML and CSS are foundational technologies for building web pages, but they cannot render dynamic 3D graphics on their own. Java can be used for game development, but it often requires applets, which are not supported by many browsers anymore and are not the same as JavaScript. Therefore, WebGL is the most suitable option listed for creating interactive graphics in real-time directly in the browser without external dependencies.

User Mitul Bhadeshiya
by
9.3k points