HTML programmer since 1995 0 Posted April 24, 2020 Report Share Posted April 24, 2020 Hi w3schools, I'm not familiar with the forum's structure. So, I've put my request into the suggestions forum. I think you ruined the Reference; you deleted a major portion of the site. Please put it back. Here's what I suggest replacing:'Supported' in 'Not Supported in HTML5.', with <a class="red" hRef="relevant.HTML.4.page.htm">Supported</a> to give us archaic HTML users the old HTML4 syntax including the <!docType>s. I personally use the Frames <!docType> for an overlay to the webpages I use; 300.* index left, pages right. Sure the search engines can't read it, but who cares, they read the original page content. It's gotta on;y be a few tags, right? Please bring back HTML 4 syntax within the HTML 5 pages; PLEASE. Quote Link to post Share on other sites
JinRipa 0 Posted January 13 Report Share Posted January 13 Hi Can I use a function like this to change the background of a body tag that has a class instead of an ID? <body id="cbg"> <button onclick="changeBG()">Change Background</button> <script> function changeBG(){document.getElementById('cbg').style.background = "repeating-radial-gradient(#444 0%,#222 10%,#444 40%) 0 / 12px 12px"} </script> ----------------------------------------------------- <body class="cbg"> <button onclick="changeBG()">Change Background</button> <script> function changeBG(){document.getElementByClassName('cbg').style.background = "repeating-radial-gradient(#444 0%,#222 10%,#444 40%) 0 / 12px 12px"} </script> Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.