HTML Width Attribute

What is the difference between width=”100” and width=”100%”?

Questions by goldenstars.nirmala

Showing Answers 1 - 4 of 4 Answers

SJose

  • Nov 5th, 2008
 

Width attribute  in HTML can be expressed in pixels or percentage.The example of width expressed in pixels is :
<HR WIDTH= "100">

If you are expressing the same in percentage then it would be

<HR WIDTH= "100%">

Remember to enclose the value in quotes if you use a percentage width.

I hope this will help you,

Best,

SJose

Basically it's all about layouts


Fixed and flow layout are two different types. We use Flow layout when we want our web page to fix in any resolution. In flow layout we use % to match the % of the screen while in fixed we use pixels

So 100px stands fixed 
while 100% stands for Flow which will adjust itself

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions