
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

111 Views
The start attribute of the element is used to set the start value of the first list item.. Following is the syntax−Above, num is the number set for the start value of the first list item. Let us now see an example to implement the start attribute of the element−Example Live Demo Last Semester MCA Result Rank from 1-5 Steve David Kane William John Rank from 5-10 Tom Jack Will ... Read More

138 Views
The area tag in HTML is used to set an area in image map.Following are the attributes −AttributeValueDescriptionalttextSpecifies an alternate text for the area.coordsif shape = "rect" then coords = "left, top, right, bottom"if shape = "circ" then coords = "centerx, centery, radius"if shape = "poly" then coords = "x1, y1, x2, y2, .., xn, yn"Specifies the coordinates appropriate to the shape attribute to define a region of an image for image maps.downloadfilenameSpecifies that the target gets downloaded when hyperlink is clicked by user.hrefURLSpecifies the URL of a page or the name of the anchor that the link goes to.hreflanglanguage_codeSpecifies ... Read More

21 Views
The cols attribute of the element is used to set the width of the textarea. The cols set it and the width is visible under the textarea itself.Following is the syntax −Above, num is the width of the textarea. The default value is 20.Let us now see an example to implement the cols attribute of the element −Example Live Demo Interview Questions Why do you want go for the Editor Job Profile? (100 words) Write the answer in 100 words only... What are your weaknesses? (50 words) ... Read More

139 Views
The HTML DOM Anchor port property is used to set or return the port of the href attribute.Following is the syntax to set the port property−anchorObj.port = numAbove, num is the port number of the url.Following is the syntax to return the port property−anchorObj.portLet us now see an example to implement the DOM Anchor port property−Example Live Demo Demo heading Services Display pathname Display hreflang Display port function display1() { var a = document.getElementById("mylink").pathname; document.getElementById("myid").innerHTML = a; } function display2() { ... Read More

146 Views
The min attribute of the element is used to set the minimum value for . Both min and max are used to set a range of value for input element with type number, date, datetime, range, etc. It introduced in HTML5.Let us now see an example to implement the min attribute of the element. Here, we have set min as 1, therefore a user cannot enter an ID less than 1−Example Live Demo Log in to your account Id: Password: DOB: ... Read More

112 Views
The autofocus attribute of the element is used to specify which of the would get focus when the web page loads. This attribute introduced in HTML5.Following is the syntax −Let us now see an example to implement the autofocus attribute of the element −Example Live Demo Log in to your account Id: Password: DOB: Submit OutputIn the above example, we have created a form − Id: Password: DOB: Submit We have set autofocus to the third input as shown below i.e. DOB, therefore the cursor is visible there itself −DOB:

28 Views
The autofocus attribute of the element is used to set the autofocus to the textarea itself when the page loads. The autofocus attribute for the element introduced in HTML5.Following is the syntax −Let us now see an example to implement the autofocus attribute of the element −Example Live Demo Interview Questions Why do you want go for the Technical Writer Job Profile? (100 words) Write the answer in 100 words only... What are your strengths? (50 words) Write the answer in 50 words ... Read More
HTML colspan Attribute
Updated on 29-Jun-2020 08:46:43
600 Views
The colspan attribute of the element in HTML defines the number of columns a cell should span.Following is the syntax −Above, num is the count of columns a cell should span.Let us now see an example to implement the colspan attribute of the element −Example Live Demo
table, th, td {
border: 2px solid blue;
}
Product Expenses
Domains
Cost
Product Development
500000
Marketing
500000
Services
100000
Support
100000
Maintenance
100000
Total Budget = INR 1300000
Output
Updated on 30-Jul-2019 22:30:26
113 Views
The size attribute of the element is used to set the number of visible list items from a drop-down list. A scrollbar would get added if the size is set more than 1.Following is the syntax−Above, num is the count of the visible list items in the drop-down list.Let us now see an example to implement the size attribute of the element−Example Live Demo Candidate Profile Following are the details to be submitted by the candidate: Educational Qualification Graduation BCA B.COM B.TECH B.SC Postgraduation MCA ... Read More
Updated on 30-Jul-2019 22:30:26
384 Views
The required attribute of the element is to let users know that the drop-down is required and need to be submitted before the form is submitted. If you won’t select the value from the drop-down and try to submit the form, it won’t submit and a warning would be visible on the web page itself. The required attribute introduced in HTML5.Following is the syntax−Let us now see an example to implement the required attribute of the element−Example Live Demo Candidate Profile Following are the details to be submitted by the candidate: Educational Qualification Graduation ... Read More
Advertisements

600 Views
The colspan attribute of the element in HTML defines the number of columns a cell should span.Following is the syntax −Above, num is the count of columns a cell should span.Let us now see an example to implement the colspan attribute of the element −Example Live Demo table, th, td { border: 2px solid blue; } Product Expenses Domains Cost Product Development 500000 Marketing 500000 Services 100000 Support 100000 Maintenance 100000 Total Budget = INR 1300000 Output

113 Views
The size attribute of the element is used to set the number of visible list items from a drop-down list. A scrollbar would get added if the size is set more than 1.Following is the syntax−Above, num is the count of the visible list items in the drop-down list.Let us now see an example to implement the size attribute of the element−Example Live Demo Candidate Profile Following are the details to be submitted by the candidate: Educational Qualification Graduation BCA B.COM B.TECH B.SC Postgraduation MCA ... Read More

384 Views
The required attribute of the element is to let users know that the drop-down is required and need to be submitted before the form is submitted. If you won’t select the value from the drop-down and try to submit the form, it won’t submit and a warning would be visible on the web page itself. The required attribute introduced in HTML5.Following is the syntax−Let us now see an example to implement the required attribute of the element−Example Live Demo Candidate Profile Following are the details to be submitted by the candidate: Educational Qualification Graduation ... Read More