
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 2202 Articles for HTML

2K+ Views
In HTML, we cannot nest HTML forms, but we can add multiple forms. Let us see an example of multiple forms, wherein we will add more than one form, upload buttons and multiple Submit buttons. First, we will set the 1st form. This allows uploading only a single file − Select a file: Just after that, we have used and then comes the 2nd form. This allows uploading multiple files − Select a file: ... Read More

5K+ Views
To set a value to a file input in HTML, use the type attribute. It defines a Browse button to upload the files with a file-select field − However, we cannot set a specific value to a file input in HTML for security reasons. Nothing will happen, even if, let’s say we set a value like this − Let us see some examples to upload single and multiple files with input type file. File select with only one file Example This allows a user to upload only a single file − DOCTYPE html> ... Read More

4K+ Views
We can easily create an HTML button to act like a link and clickable. Let us see the following examples − Create an HTML button link with the tag Create an HTML button link with the tag Create an HTML button link with the onclick event Create an HTML button link with the tag In this example, we will create a link button with tag. The tag is set inside the tag for this − Tutorial Library ... Read More

3K+ Views
To prevent forms from being submitted, we can use the onsubmit property. We can also use the event.preventDefault() method − Prevent buttons from submitting forms using the onsubmit property Prevent buttons from submitting forms using event.preventDefault() Prevent buttons from submitting forms using the onsubmit property We can prevent form from submitting using the onsubmit property as shown below − We have returned false above in the tag itself to prevent form from submitting. Example Let us see the complete example − doctype html> Details ... Read More

9K+ Views
To apply CSS to iframe, is a very simple process. We can add CSS to iframe using all the three methods of adding CSS to any document. We will be understanding three approaches to apply CSS to iframe which are by using inline CSS, internal CSS and external CSS. In this article we are having an iframe, our task is to apply CSS to iframe. We will be understanding each approach with stepwise explaination and example codes. Approaches to Apply CSS to iframe Here is a list of approaches to apply CSS to iframe which we will be discussing in ... Read More

399 Views
The tables can be used to create and structurize forms in HTML. But, before that let us see how to create a form in HTML. Create a Form in HTML Example Let us see how to create a form using the tags. We have set three input type radio with individual labels − DOCTYPE html> HTML Form Details Select the subject you want to choose: ... Read More

3K+ Views
The default margin is 8px in HTML. It is defined in pixels by the user-agent-stylesheet your browser provides. Some browsers allow you to create and use your own user-agent-stylesheet, but if you are developing a website, keep it the same. Default Margin in HTML Example Let us see a simple example. Here, since the default margin is 8px, we won’t try to change it − DOCTYPE html> Example body { background: orange; ... Read More

2K+ Views
Use the enctype attribute to specify how the browser encodes the data before it sends it to the server. Possible values are − application/x-www-form-urlencoded − This is the standard method most forms use in simple scenarios. mutlipart/form-data − This is used when you want to upload binary data in the form of files like image, word file etc. Example Let us now see an example − DOCTYPE html> HTML enctype attribute form { ... Read More

1K+ Views
We can easily make container shrink-to-fit child elements as they wrap. First, we will set the flex container flexible − display: flex; We will set the flex items to wrap − flex-wrap: wrap; Set the text center aligned using the text-align property − text-align: center; The list-style-type property is set to None to display no marker − list-style-type: none; Example Let us now see the complete example − DOCTYPE html> Flex Example ul { ... Read More