Sample Video Frame
02: Tags in Detail
I'll cover the different types of tags in the html5 specification and then explain which ones you do or don't normally use.
Warm-up
- Take the file you created in Exercise 01 and view it in your browser.
- Remember that you can open the directory that holds the file and double-click the
index.html
. - If you run Windows you can do this inside
PowerShell
with thestart
command, as in:start index.html
. Thestart
command is similar to double-clicking the file with your mouse, and it works on any file, not just.html
. - If you run OSX you can do this inside
Terminal
with theopen
command, as inopen index.html
. - Remember, nothing works in the Terminal if you don't know how to
cd
to the directory with the file. If you're confused about where your files are then find them graphically, typecd
, and then drag the file onto your terminal with the mouse. This will "paste" the file's full path into your terminal so you know where it is. - Always remember to add spaces after your commands. If you type
cdC:\Users
then that's wrong. It'skindoflikeyoutypedasentencelikethis. - Finally, how many different ways can you open this file? Can you open it in your editor from the command line? Can you open it in the browser from your editor?
Void Elements
Learn JavaScript Today
Register today for the Early Access course and get the all currently available videos and lessons, plus all future modules for no extra charge.
Still Not Sure? Check out more curriculum.