DIV must always define display and position or not or what is default

After searching a lot I cannot find the answer I am looking for. I am a TABLE user currently editing my old site to new tech but I have a question:

    <div style="background:#6666; 
here: we go; 
display:block; position:relative;> test </div>

Does I must set always to all divs the display and position attributes ?

If I don't set default attributes what will then be their default attributes for display and position?

Yeah it is a nice question, many tell you how to use those attributes but nobody tell you if you have to or not...

Any div guy


No they are not required. If you don't specify them, div tags will have the following default values for those CSS properties:

display: block
position: static



Need Your Help

How to show my layout in front off soft keyboard Android?

android emoji whatsapp soft-keyboard

How to show my layout in front off soft keyboard Android like whatsapp or facebook?

How can I get the context of other activity?

java android android-intent

I'm working on the alarm app, and have trouble removing an existing alarm. I have to create the same pending intent to remove the alarm in the activity which lists all alarms in my app, but It does...