Author: misamaliraza94
-
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…
-
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…
-
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…
-
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…
-
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…
-
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…
-
HTML Class Attribute
The HTML class attribute is used to specify one or more class names for an element. Commonly, the class attribute points to a class in a style sheet. The class name is case sensitive. This attribute can also be used by JavaScript via the HTML DOM to make certain changes to HTML elements with a specified class name. In HTML5, you can…
-
Deprecated HTML Attributes
The attributes presented below are deprecated, i.e., they are no longer used in the mentioned tags and are replaced by other attributes that you can find in the “Alternate” section of the table. Attributes Description Deprecated in Alternate align Specifies the alignment of the element <caption>, <img>, <table>, <hr>, <div>, <h1>-<h6>, <p> CSS text-align, float and vertical-align properties alink Specifies the color of an active link…