Tag Archive: HTML5

How To Fill Gradient Color On HTML5 Canvas Shapes

In the previous post, you have learned about drawing shapes with HTML5 canvas. You have also learned how to fill CSS colors on the shapes by setting the fill color property. Along with the CSS color values, you can also set the fill color to a gradient object.  There are two ways for creating gradient colors one is linear gradient and another radial gradient. Linear gradient can be created using context.createLinearGradient() function and radial gradient can be created using context.createRadialGradient()…
Read more

How To Draw Lines And Shapes Using HTML5 Canvas

The canvas element in HTML5 is used to render simple graphics such as line art, graphs and other custom graphical elements on the client side web development. With <canvas> tag, you can simply put the element in the page, name it with an id attribute and define its dimensions with height and width attributes. Along with placing a <canvas> tags in a document, you have to use JavaScript code to access and draw lines and shapes. HTML5 defines a complete…
Read more

Simplest Way To Embed And Play Video Using HTML5

HTML5 defines an element <video> to insert and play video within a web page. This element sets its src attribute to a local or remote URL containing a playable movie. You can also display playback controls by including the controls attribute along with defining dimensions of the video. Following is a simple syntax for embedding video on a web page without any third parity add-ons or embedded codes from other sites.  <video src=”simple-video.mp4″ width=”600″ height=”350″ controls></video> HTML5 Syntax of Video…
Read more

Top 20 MCQ Questions On HTML5 Element Reference

This set of top 20 multiple choice questions on HTML5 element reference includes collections of multiple choice objective questions related to HTML5 elements and their corresponding attributes. You will find the MCQ questions about the elements <textarea>, <var>, <small>, <table>, <thead>, <tbody> and <tfoot> elements  along with the related attributes of them. 1. The HTML5 attribute, …………………. is used in <textarea> element should be set to a string that corresponds to the id of the form element that an interactive…
Read more

Top 20 Objective Questions On HTML5 Element Reference

This set of top 20 objective questions on HTML5 element reference includes collections of multiple choice objective questions related to HTML5 elements and their corresponding attributes. You will find the questions and answers about the elements <ins>, <label>, <legend>, <meter>, <link>, <table>, <tr>, <td> along with the related attributes of them. 1. ………………… element in HTML5 is used to indicate that text has been added to the document. A) <add> B) <ins> C) <fill> D) <insert> 2. The value of…
Read more

Top 20 Interview Questions On HTML5 Element Reference

Here are the collections of 20 multiple choice interview questions on HTML5 elements reference, that includes MCQ on different types of HTML5 elements and element specific attributes. You will find the questions and answers about the elements and element specific attributes of definition list, forms, image and input elements.  1. ………………… is the element specific attribute of <dl>, which reduces the white space between list items. A) compact B) reduce C) space D) eliminate 2. The element …………………. identifies a…
Read more

MCQ Questions On HTML5 Element Reference Part-2

Here are the collections of 20 multiple choice objective questions on HTML5 elements reference, that includes MCQ on different types of HTML5 elements and element specific attributes. You will find the questions and answers about formenctype and formmethod attributes, canvas shadow properties, different values used in formmethod attributes along with the different method used to draw shapes using canvas methods. 1. In HTML5 ………………. attribute is set to the MIME type for how data should be transmitted to the URL…
Read more

MCQ Questions On HTML5 Element Reference Part-1

Here you will find the collections of multiple choice objective questions on HTML5 elements reference, that includes MCQ on different types of elements and element specific attributes used in HTML5.   1. …………………… are often used to exclude content from older browsers, particularly those that do not understand client side scripting or style sheet. A) Excludes B) Comments C) Coords D) Messages 2. ……………. element defines a hyperlink, the named target destination for hyperlink, or both. A) Anchor B) Charset…
Read more

Multiple Choice Questions On HTML5 Element Attributes

This set of multiple choice objective questions on HTML5 element attributes includes MCQ on different attributes of HTML elements that can be applied while developing and manipulating  web pages and web applications.  1. …………….. event occurs when an element loses focus, typically either by clicking the mouse or tabbing. A) onchange B) onblur C) onfocus D) onreset 2. HTML5 event attribute ……………….. signals that the form control has lost user focus and its value has been modified during its last…
Read more

Top 20 MCQ Questions On HTML5 Document Structure

This set of multiple choice questions includes the collection of top 20 MCQ questions on HTML5 document structure. It covers objective questions of different elements and attributes used by HTML5, data validation and spell check attributes for the elements used in web forms, elements used to create menus and context menus along with drag and drop API used in HTML5.  1. HTML5 introduces an ………………… element, which may be used withing content to represent material that is tangential. A) article…
Read more