Guide to HTML, CSS and JavsScript (Buffalo State College Version)
For example, if you want to include the current date you could use this line in the
<body> area of your HTML code:
Adding comments to your code can help you remember what your code is doing at that statement and will also help others who may need to maintain your code in the future.
/* */ can be used to have multiple lines. For example,
// can be used for an inline or single line comment:
<script> tag to the
<head></head> area of your HTML file:
- Display the current date
- Display the current time
- Create a variable, dueDate, that stores a date 6 days after the date you started this task
- Uses an if construct based on the dueDate and the current date to print out either:
- how many days are left until this task is due
how many days have past since this task was due
This web page should also have a link back to your Home Page task web page.
You should then add an
<a> (anchor) tag to your Home Page web page that opens your advanced CSS web page.