HTML5test
![]() | |
![]() HTML5test on Tizen 2 as of 27 February 2013. | |
Type of site | Software testing |
---|---|
Available in | English |
Owner | Niels Leenheer |
Created by | Niels Leenheer |
URL | html5test |
Commercial | No |
Launched | 12 March 2010 |
Current status | Online |
Content license | MIT License[1] |
Written in | JavaScript |
HTML5test is a web application for evaluating a web browser's accuracy in implementing the web standards HTML5 and Web SQL Database (developed by the World Wide Web Consortium), as well as the WebGL standard (developed by the Mozilla Foundation and the Khronos Group).[2]
The test suite was developed by Dutch web programmer Niels Leenheer, and published in March 2010.[3] To test a web browser, the user must visit the home page of the website which is located at html5test.com
.[4] The application returns an integer score out of a possible 555 points. The point total has changed multiple times through the evolution of the software; Leenheer introduced the present scoring system as part of a major redesign of the test introduced in November 2013.[5]
HTML5test evaluates the browser's support for Web storage, the W3C Geolocation API, HTML5-specific HTML elements (including the canvas element), and other features.[6][7] It does not evaluate a browser's conformance to other web standards, such as Cascading Style Sheets, ECMAScript, Scalable Vector Graphics, or the Document Object Model. Conformance testing for those standards is within the purview of Acid3, an automated test published by Ian Hickson in 2008.<ref>{{cite press release |url=http://www.webstandards.org/press/releases/2008-03-03/ |title=Acid3: <!DOCTYPE html> <html> <head>
<title>صورة العملة اليمنية</title> <style> body { margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f2f2f2; } canvas { border: 1px solid #000; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); } </style>
</head> <body>
<canvas id="currencyCanvas" width="800" height="800"></canvas>
<script> function drawCurrency() { const canvas = document.getElementById("currencyCanvas"); const ctx = canvas.getContext("2d");
// Set the background color and draw a circle to represent the coin ctx.fillStyle = "#ffd700"; // Golden color ctx.beginPath(); ctx.arc(canvas.width / 2, canvas.height / 2, 350, 0, 2 * Math.PI); ctx.fill();
// Draw the text representing the currency value const fontSize = 60; ctx.font = `${fontSize}px Arial`; ctx.fillStyle = "black"; ctx.textAlign = "center"; ctx.textBaseline = "middle"; ctx.fillText("100 ريال يمني", canvas.width / 2, canvas.height / 2); }
// Call the function to draw the currency when the window is loaded window.onload = drawCurrency; </script>
</body> </html> <!DOCTYPE html> <html> <head>
<title>صورة العملة اليمنية</title> <style> body { margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f2f2f2; } canvas {<!DOCTYPE html>
<html> <head>
<title>صورة العملة اليمنية</title> <style> body { margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f2f2f2; } canvas { border: 1px solid #000; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); } </style>
</head> <body>
<canvas id="currencyCanvas" width="800" height="800"></canvas>
<script> function drawCurrency() { const canvas = document.getElementById("currencyCanvas"); const ctx = canvas.getContext("2d");
// Set the background color and draw a circle to represent the coin ctx.fillStyle = "#ffd700"; // Golden color ctx.beginPath(); ctx.arc(canvas.width / 2, canvas.height / 2, 350, 0, 2 * Math.PI); ctx.fill();
// Draw the text representing the currency value const fontSize = 60; ctx.font = `${fontSize}px Arial`; ctx.fillStyle = "black"; ctx.textAlign = "center"; ctx.textBaseline = "middle"; ctx.fillText("100 ريال يمني", canvas.width / 2, canvas.height / 2); }
// Call the function to draw the currency when the window is loaded window.onload = drawCurrency; </script>
</body> </html>
border: 1px solid #000; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); } </style>
</head> <body>
<canvas id="currencyCanvas" width="800" height="800"></canvas>
<script> function drawCurrency() { const canvas = document.getElementById("currencyCanvas"); const ctx = canvas.getContext("2d");
// Set the background color and draw a circle to represent the coin ctx.fillStyle = "#ffd700"; // Golden color ctx.beginPath(); ctx.arc(canvas.width / 2, canvas.height / 2, 350, 0, 2 * Math.PI); ctx.fill();
// Draw the text representing the currency value const fontSize = 60; ctx.font = `${fontSize}px Arial`; ctx.fillStyle = "black"; ctx.textAlign = "center"; ctx.textBaseline = "middle"; ctx.fillText("100 ريال يمني", canvas.width / 2, canvas.height / 2); }
// Call the function to draw the currency when the window is loaded window.onload = drawCurrency; </script>
</body> </html>
See also
References
- ^ "HTML5test/LICENSE at version-9.0". GitHub. Retrieved 2022-09-20.
- ^ Leenheer, Niels. "HTML5test Frequently Asked Questions". HTML5test.com. Niels Leenheer. Retrieved 10 July 2014.
- ^ Zeldman, L. Jeffrey (1 August 2010). "HTML5 Test". Zeldman.com. ISSN 1534-0309. Retrieved 10 July 2014.
- ^ Brinkmann, Martin (6 June 2010). "HTML5 Test Your Web Browser". gHacks Technology News. Retrieved 10 July 2014.
- ^ Leenheer, Niels (13 November 2013). "The new HTML5test is here!". blog.html5test.com. Retrieved 12 July 2014.
- ^ Staff writer. "Test Your Browser for HTML5 Compatibility". CyberNet News. Retrieved 10 July 2014.
- ^ Zukerman, Erez (8 August 2010). "Test your browser's HTML5 prowess with the HTML5 test". Switched. AOL. Retrieved 10 July 2014.