What Should Be Avoided
HTML/CSS
<div class="main-story"> <h1>Main Story</h1> <p>Main story content...</p> </div> <nav class="nav-bar"> <ul> <li>Home</li> <li>About</li> </ul> </nav> <div class="side-story"> <h2>Side Story</h2> <p>Side story content...</p> </div> <style> .nav-bar { position: absolute; top: 0; left: 0; } .main-story { position: absolute; top: 50px; left: 100px; } .side-story { position: absolute; top: 50px; left: 500px; } </style>
Explanation:Visually, the navigation bar appears first, followed by the main story and side story. However, the DOM order places the main story first, leading to a confusing reading sequence for screen readers , or to users applying their own style-sheets.