Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Web Development Articles
Page 82 of 801
Usage of autofocus HTML5 attribute
We received a greatness from HTML5. Basic HTML can now be used to carry out tasks that JavaScript and Flash previously handled, such as basic form validation, INPUT placeholders, and audio/video. The autofocus attribute in HTML allows us to automatically focus on components when the page loads, which is another straightforward feature. When the autofocus property is present, the page loads with the INPUT, TEXTAREA, or BUTTON element already chosen. This property is particularly helpful on pages whose primary goal is information gathering. Autofocus HTML5 attribute An element should be focused when the page loads or when the a ...
Read MoreDifference between datetime and datetime-local in HTML5
The datetime-local input is different from the other one in that it excludes the time zone. Use datetime-local if your application doesn't care about the time zone. The datetime input type is still catching up with some browsers. Let’s look into further for getting better understanding between datetime and datetime-local in HTML5 HTML5 datetime The machine-readable date and time of the element is defined by the HTML datetime Attribute. The time and date are entered in the following format: YYYY-MM-DDThh:mm:ssTZD. Syntax Following is the syntax for HTML datetime Let’s look into the following example ...
Read MoreHTML5 Application Cache VS Browser Cache
Despite being familiar with the phrase cache, you may not fully understand what it means in the context of the Web. Caching, as used in everyday speech, is the act of storing something in the event that it subsequently proves beneficial. Bulk or main storage can't keep up with client needs, thus cache is used. Cache minimizes latency, speeds up input/output (I/O) activities, and decreases data access times. Let’s look into further for getting better understanding of HTML5 application cache vs browser cache. HTML5 Application Cache A web application is cached and available without an internet connection with the help ...
Read MoreCreate a selectable list in HTML
The tag is used to create a drop-down list in HTML document. We just need to add the “multiple” attribute to the element. Now, in order to select multiple options, we use following syntax − text The HTML tag also supports the following additional attributes − Attribute Value Description Disabled disabled Disables the input control. The button won't accept changes from the user. It also cannot receive focus and will be skipped when tabbing. Label text Defines a label to use when ...
Read MoreHow to include the result of a calculation in HTML5?
To define or include a result of calculation in HTML, we use tag. The output tag helps in providing the result of calculation, which is performed by the JavaScript (Client side scripting language). Syntax Following is the usage of tag − --- Attributes The attributes used in output tag is shown below − Attribute Description for List of IDs of other elements, i.e. it indicates the elements who have contributed input value to the calculation. form Enables to place output elements anywhere within a ...
Read MoreSection that contains only navigation links in HTML5
Navigational links can be provided by using tag in the document. The links of nav element navigates to other webpages or points to different section of same webpage. Examples of nav element are contents, tables, menus and indexes. Syntax Following is the usage of tag in HTML − Links…… Example Following example where we are trying to create a section that contains only navigation links − TutorialsPoint ...
Read MoreHow to allow no breaks in the enclosed text in HTML?
To allow no breaks in the enclosed text in HTML, we will use tag for creating a single line text, it does not bother about how long the statement is. If we want to read whole text a horizontal scroll has to be used. It is exactly opposite to break tag. tag is not supported in HTML5. This tag does not contain any attribute, it is having an open and closed tags. The tag in HTML The HTML tag is used to instruct the browser not to break the specified text. This is used ...
Read MoreDefine a scalar measurement within a known range in HTML
To define a scalar measurement within a known range or a fractional value, we use tag in HTML. tag is also called as gauge. For disk usages, relevance of query results etc., we use tag in HTML. The tag is not used to indicate progress bar, If we want to indicate progress bar, we use tag. For best accessibility it’s better to use tag while working on tag. Syntax Following is the usage of tag in HTML − Example Following example where we are trying to define a scalar ...
Read MoreHow do we display the main content in the document in HTML5?
To display the main content in the document, we use tag. The tag consists of open and closing tags, the content present in between element is unique to the document, it does not contain any content which is repeated across documents like navigation links, site logos, sidebars and search forms. In a document there should be only one element. The main is not a descendent of , , , or element. The tag supports almost all browsers and it also supports global and event attributes. Syntax Following is the usage of tag in ...
Read MoreHow to add a resource reference in HTML?
In HTML the tag is used to add a resource reference. The link defines the relationship between the external document and current document. The tag is also used to link external style sheets and to add favicon to our websites, tag consists of attribute values. Following is the usage of tag in HTML - The tag is supported by almost all browsers and it also supports global and event attributes. Attributes Attributes of the tag are shown below − crossorigin − The value of crossorigin attribute is anonymous use-credentials, ...
Read More