Category: HTML Misc
-
HTML Background Image
The <background> attribute in the HTML document is used to specify the background image on a HTML page or a table. You can pass the path of an image as a value of background attribute to set the image of your HTML page or table. Syntax Note: The Background attribute is not supported in HTML5. Use the following syntax of CSS:…
-
HTML code tag
HTML <code> tag is used to represent computer code. It is a phrase tag which defines a piece of computer code. By default, it is displayed in the browser’s default monospace font (also known as fixed-width font). List of HTML phrase tags Tag Description <em> displays emphasized text <strong> displays important text <dfn> defines a definition…
-
HTML <Checkbox> Tag
The HTML <checkbox> tag is used to define the square boxes. It is a form element which allows users to select one or more options from the given options. It is created by the type attribute of the <input> element as shown in the following syntax: If we want to select any checkbox by default, then we have to set the…
-
HTML<button onclick>
The Html <button onclick=” “> is an event attribute, which executes a script when the button is clicked. This attribute is supported by all browsers. It is also used to call a function when the button is clicked. Syntax: Examples: Example 1: Following example describes how to use the button tag: Output: