HTML - attributes - open

revision:


Content

"open" attribute : a boolean attribute making the div visible. syntax some examples


"open" attribute : a boolean attribute making the div visible.

top

The open attribute is a boolean attribute. When present, it specifies that the div should be visible (open) to the user. If it is not present by default thesn div are not shown

Supported HTML tags: <div> and <dialogue>.


syntax

top

<div open></div>


some examples

top

Epcot Center

Epcot is a theme park at Walt Disney World Resort featuring exciting attractions, international pavilions, award-winning fireworks and seasonal special events.

codes:
                    <div style="margin-left:3vw;" open>
                        <p>Epcot Center</p>
                        <p class="spec">Epcot is a theme park at Walt Disney World Resort featuring exciting 
                        attractions, international pavilions, award-winning fireworks and seasonal 
                        special events.</p>
                    </div>
                

HTML low attribute demo

Hi! I'm a p element

Hi! I'm a paragraph element with some dummy text

codes:
                    <h4 style="margin-left:3vw;" >HTML low attribute demo</h4>
                    <div style="margin-left:3vw;" open>
                        <p>Hi! I'm a p element</p>
                        <p class="spec" style="margin-left:3vw;" >Hi! I'm a paragraph
                        element with some dummy 
                        text</p>
                    </div>