DEV Community

Discussion on: Create a Basic Webpage with CSS and JavaScript

Collapse
 
itcoach profile image
ITCoach

I followed every step and the date doesnt appear on my page. I tried to open in Chrome and Explorer. Any idea what did I do wrong:)?

Collapse
 
brian2be profile image
brian2be

Check console in Web Inspector, check for errors. Maybe there's a problem with the path to the resource?

Collapse
 
santosh254 profile image
Santosh254 • Edited

HI, Yes he is wrong . Please follow this and try.
<!DOCTYPE html>


Life Events




Sample Page Website


function myfuc() { document.getElementById('date').innerHTML = new Date().toDateString(); }
Collapse
 
monsij profile image
Monsij Biswal

Make sure the javascript file is placed under /javascript/