Skip to content
Justice Tech School

The base and noscript Elements

base sets one URL that all relative links use. noscript shows content when JavaScript is off. Both are placed carefully: base in head and noscript where the message should appear.

Example
<noscript>Please enable JavaScript.</noscript>
<p>With JavaScript on, you do not see the message above.</p>

Exercise

Show content without JavaScript.

<>Enable JS</noscript>

Quiz Test

Where is base placed?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.