Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
HTML
« Previous
Next »
Is width=”100px” and width=”100%” the same?
Options
- No
- Yes
CORRECT ANSWER : No
Discussion Board
html
nice,supper
lalitha 02-12-2018 05:06 AM
100 vs 100
100px is not the same as 100%. Percent (%) refers to the amount of total space available for that element, whereas pixels (px) refers to the specific number of dots used by the picure left and right.
As to the original question, "100" and "100%" are not the same. The browser won't recognize the first value because it has no measure, and the browser makes no assumptions as to which measure should be used. It will simply use the default values from the picture location (original size).
Sherman 05-14-2015 12:19 PM
HTML
The "100" does not mean anything to the browser. If it was 100px; then it would mean 100% in the styles properties of the width.
Baingana David 11-11-2014 02:22 AM
reply the answer sir
i dont know the answer..
Ranadheer 03-13-2014 01:10 PM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
PHP (39)
DHTML (10)
CSS (21)
MySQL (20)
VLSI (9)
XML (28)
UML (11)
HTML (19)
Fedora (61)
HTML5 (60)
Android (100)
Advertisement
▲