HTML controls Attribute

The HTML controls attribute is a boolean attribute and specifies that the audio/video controls must be displayed. It is new in HTML5. You can use the controls attribute on the following elements: <audio> and <video>. For the <audio> tag, the controls attribute includes: Play Pause Seeking Volume For the <video> tag, the controls attribute includes: Play Pause Seeking Volume Fullscreen toggle Captions/Subtitles Track Syntax Example of the HTML controls attribute used… Continue reading HTML controls Attribute

HTML content Attribute

The HTML content attribute gives a value that is associated with the http-equiv or name attribute. You can only use this attribute on the <meta> element to set the meta information in an HTML document. Syntax Example of the HTML content attribute:

HTML accept Attribute

The HTML accept attribute specifies the type of file that the server accepts. The submission is possible through a file upload. You can only use this attribute on the <input> element. It is only used with <input type=”file”>. The accept attribute must not be used as a validation tool. File uploads must be validated on the server. Syntax Example of the HTML accept attribute:

HTML async Attribute

The async attribute is a boolean attribute and specifies that the script will be executed asynchronously once it is available. It only works for external scripts and must be used only when the src attribute is present. You can use the async attribute on the <script> element. An external script can be executed in the following ways: When async is present, the script… Continue reading HTML async Attribute

HTML alt Attribute

The HTML alt attribute is used in HTML and XHTML documents. It specifies an alternative text which must be rendered if the element cannot be displayed for some reason. The alt attribute can also be used by screen readers to allow visually impaired users to interact with a webpage. To be accessible, an image must have an alt attribute. However, it… Continue reading HTML alt Attribute

HTML Forms

An HTML form is composed of form elements, which are different kinds of input elements, such as checkboxes, text fields, submit buttons, radio buttons, and so on. The HTML <input> element The <input> element is an essential form element, which, depending on the type attribute, can be displayed in different ways. Let’s speak about some of input types. Text… Continue reading HTML Forms

HTML YouTube Videos

Sometimes you may want to convert your videos to other formats to make them play in all browsers. However, it can be difficult and time-consuming to convert videos to other formats. An easier way is to let YouTube play the videos on your web page. When saving or playing a video, YouTube will display an… Continue reading HTML YouTube Videos

HTML Multimedia

Multimedia is almost anything you can hear or see (e.g. sound, music, images, records, videos, films, animations, etc.). It comes in different formats. Web pages can contain multimedia elements of different formats and types. Multimedia Tags HTML allows adding different multimedia files on your website by various multimedia tags. These tags include: <audio> for displaying a… Continue reading HTML Multimedia

HTML id Attribute

The id attribute is used to define a unique identifier for an HTML element. It is commonly used to point to a style in a style sheet, as well as anchor links and targets for scripts. The id value is case-sensitive and should be unique within the HTML document. This attribute can be used by CSS and… Continue reading HTML id Attribute