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
HTML Articles
Page 101 of 151
Are button HTML tags outside of a form valid?
This article will teach us that button HTML tags outside of a form are valid. Before we get started, let's talk a little about the HTML tag. HTML tag An HTML is made using the element. Between the opening and closing tags, any text will be shown as text on the button. Syntax Following is the syntax for HTML tag Anywhere in the document body where text-level markup is allowed, a button element is acceptable. such an element is not required to be related to a form element. Although a button element has a ...
Read MoreWhich browser has the best support for HTML 5 currently?
Every time a new version of HTML is released, additional features and support for various website elements are introduced. The most recent HTML version, HTML5, is utilised on all current web pages. While bringing new markups and APIs for complex web applications, HTML5 also supports the currently used markups. Why To Use HTML5 HTML5 was developed to handle multimedia elements in complicated online applications. More new tags and support elements, including form, semantic characteristics, and several more, are offered. HTML5 has a number of elements that make it user−friendly, including − Cleaner code structure − Only the div tag was ...
Read MoreSafari on iPad (iOS6) does not scale HTML5 video to fill 100% of page width
This article will teach you how safari on ipad IOS6 does not scale HTML5 video To fill 100% of page widthOn a responsive HTML5 page, a video can be shown at full width (100%) by applying the following CSS. The video's native resolution is 480x270. On all desktop browsers, the video is resized to span the entire width of the page while preserving the aspect ratio. On the iPad (iOS 6.0.1), Mobile Safari and Chrome, however, display a black rectangle same width as the page. The black rectangle's centre contains a little video that is shown at its original resolution ...
Read MoreHow do we set the visible number of lines in a text area in HTML?
This article will teach you how do we set the visible number of lines in a textarea in HTML. The HTML element is useful for multi-line editing control and allows the user to enter a sizeable amount of free-form text. Syntax Following is the syntax to set the visible number of lines in text area − To display the number of rows, or number of visible text lines for the control, is specified using the HTML textarea rows attribute. Additionally, it specifies the textarea’s visible height. Following are the examples to set the visible number of lines ...
Read MorePOST unchecked HTML checkboxes
In this tutorial, we will learn to POST unchecked HTML checkboxes. To interact with a user, it is necessary to take their input or data through the website. The HTML forms are used to take input from the user. Forms are essential to take the data of the user on the website. These forms take input from the user and send data to the server using HTTP requests. There are two types of HTTP requests one is GET, and the other is POST. The POST request is the most used type because it is secure and can send a large ...
Read MoreHow to add HTML and CSS to PDF?
In this tutorial, we will learn how we can add HTML and CSS to PDF. The HTML and CSS construct the webpages with styles and designs. We can save that webpage as a PDF file. Creating a PDF from scratch using vanilla JavaScript makes it very difficult, and the code will be lengthy. There are many libraries created upon JavaScript that will helps us to execute our task. The libraries like html2pdf, jsPDF, etc. are well-known libraries that convert webpages into pdf. These libraries can be implemented in the project using the script we are adding to the program. So, ...
Read MoreHow to append to innerHTML without destroying descendants’ event listeners with JavaScript?
Yes, it is possible to append to innerHTML without destroying descendants event listeners. Let us see an example. First, we will create two functions with JavaScript. Here’s the demoFunc() − function demoFunc() { alert("Hello"); } The function demoFunc() above will display an alert box and a message. With that, the start() function loads when you load the web page and displays “Two” with “One” in the div. Here’s the start() function. We have appended the text “One” from the div with the text “Two” using the innerHTML property − function start() { mydiv.innerHTML ...
Read MoreHow to add images in select list in HTML?
To add images in the select list, set the img text for the image in the tag, which is enclosed in a div − Python In the above div dropText, all the other select items is placed with the individual images. The dropText div is styled as. This also sets the background color of the select items i.e. skyblue − .dropText { display: none; position: absolute; background-color: skyblue; ...
Read MoreHTML table with 100% width, with vertical scroll inside tbody
We will set the vertical scroll using the overflow-y property − overflow-y: auto; We will hide the horizontal scroll using the overflow-x property − overflow-x: hidden; Example Let us see an example − Display table with vertical scrollbar table.scrolldown { width: 100%; border-spacing: 0; ...
Read MoreWhy doesn't the height of a container element increase if it contains floated elements?
To fix this use, we need to use the overflow property and set it on the outer parent div. We have an inner child div and an outer parent div − The outer parent div is set with the following CSS style. The min-height is set 100px and the overflow property is set to auto. This doesn’t let the height of the container element to increase even if it contains floated elements − .outer { margin: 0 auto; width: 960px; ...
Read More