From the course: Crafting Meaningful HTML
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Providing scripting alternatives with <noscript> - HTML Tutorial
From the course: Crafting Meaningful HTML
Providing scripting alternatives with <noscript>
- [Instructor] So many pages are powered primarily by JavaScript these days. However, there are situations where people may disable JavaScript or have some other reason that they can't run the JavaScript on your website. What happens in those situations? Well, I've written a really simple, really basic sort of CodePen here, just a single line of JavaScript inside of some script tags. And this does in fact work. If you go in ahead and hit Return here, you will eventually see, you may have to hit Return a couple times but you'll eventually see, there we go, a little alert box coming up here that says, "Welcome to my website." And that's great because I have JavaScript turned on and that works just fine. But if I didn't have JavaScript turned on, what would this actually look like? Well, it would look like this over here. Absolutely nothing at all. In other words, I would get a webpage where I see nothing. I would not have no way of knowing whether it's the website is just broken, it…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.