crus4

crus4

CSS Borders

CSS Borders The CSS border property is used to specify the element’s border. The border can be of any color and any type like (solid border, dotted border, dashed border, double border, hidden border, no border etc.) Here is how we can specify the border of an element. Now let’s put the same code in […]

CSS Background Image

CSS Background Image The background-image property defines an image that we wanna use as the background of an element. Here is how you can add the background image for any element. Now let’s put the same code in the below example to see the results. Example Similarly, we can also set the background image for […]

CSS Background Color

CSS background-color CSS background-color property defines the background color of an element. We mostly specify a color by using a: Valid color name – like “green” Hex value – like “#00ff00” an RGB Value – like “rgb(0, 255, 0)” In an example below let’s set the background color of a whole page. Example Now let’s […]

CSS Colors

CSS Colors Colors in CSS are specified by using the predefined color names, or by using color values. CSS Color Names Colors in CSS can be specified by using a predefined color name: In an example below, let’s write a code to specify a color by using predefined color names: Example Similarly, we can also […]

HTML button Element – crus4

HTML button Element The <button> tag is used to define a clickable button. The button element can perform various tasks like submitting a form or opening any new web page. Inside a button element we can write any text we want. Here is how we can create a button in html. Example To make the […]

HTML aside Element – crus4

HTML aside Element HTML aside element is used to display some content aside from the main content. The aside content should be somewhat similar to the main content. The <aside> tag is used to define an aside content. In an Example below let’s write a code to display some content aside from the main content. […]

CSS Selectors – crus4

CSS Selectors CSS Selectors as the name indicates, A CSS Selector selects the HTML element or elements that we wanna to style. There are five types of CSS Selectors: Simple selectors (It select elements based on name, class, id) Combinator selectors (It select elements based on a specific relationship between them) Pseudo-class selectors (It select […]

Introduction to CSS – crus4

Introduction to CSS What is CSS CSS stands for Cascading Style Sheets. With the help of CSS we can apply styles to any web page we want. It also describes the fonts, spacing, text color and background color of a web page. CSS also saves our lot of time and effort, as it controls the […]

HTML Audio – crus4

HTML Audio HTML <audio> tag is used to play an audio file on a web page. At present there are three formats that are supported for HTML <audio> tag. These are: mp3, wav and ogg. In the below table, let’s see which browser supports the audio file format. Browser mp3 wav ogg Chrome Yes Yes […]

Canvas Game HTML – crus4

Canvas Game HTML Hey guys, in this tutorial I will share with you that how can you create a Game using HTML Canvas. As I already told you in our previous tutorial that canvas element is only the container for graphics. To actually draw the graphics you must make use of scripting language like JavaScript. […]