skip to Main Content

Html – How to NOT scroll under collapsing header? The content should scroll under header, when the collapsing header reaches minimal height

I have the following: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Shrinking Header with Smooth Scroll</title> <style> body, html { margin: 0; padding: 0; height: 100%; font-family: Arial, sans-serif; } .header { background-color: #3498db; color: white;…

VIEW QUESTION

Html – There should be only one H1 heading on a single page

I was told by the accessibility team that there should be only one H1 on a single page. Ref on the internet: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements#avoid_using_multiple_h1_elements_on_one_page Then I saw this implementation in one of our repos. <h1 tabindex=0 style="invisible">The website name</h1> <h1 tabindex=-1>form…

VIEW QUESTION
Back To Top
Search