Week 2 Basics of HTML Part2 Note
Week 2 Basics of HTML Part2 Note
• In this class, we will be building an HTML page that contains the most used tags with
special focus on:
o Image tag, anchor tag, headings (h1 to h6), lists (ordered and unordered lists),
form tag, video tag and image tag
• On the Visual Studio menu bar, choose File > Open > Folder, and then
browse to the code location
• You can also go to the folder you created right-click on it and select”
open in Visual Studio Code”
• The first line of any HTML document starts by defining the HTML
doctype. Because we are writing the HTML5 standard, the way to define
the doctype is just including the following line of code at the top of the
document
<!DOCTYPE html>
o One way is by just typing “html” in your .html file, and selecting
html5 from the list Emmet suggests
o The other way is by simply striking the “!” key from your
keyboard and press “enter” key at the same time
• This is defined with in the <title> tag under the <head> section. At this
point, you would have a starter HTML document ready
• Please refer to the class video demonstrating how we can use <nav>, <anchor>, <ul>,
<ol> and <li> tags our HTML
• Please refer to the class video demonstrating how we can use <header>, <section>, <div>
and <footer> tags our HTML
3.5 Common HTML tags (h1, h2, h3, h4, h5, h6, hr)
• Please refer to the class video demonstrating how we can use <h1>, <h2>, <h3>, <h4,
<h5>, <h6> and <hr> tags our HTML
• Please refer to the class video demonstrating how we can use <img> tag our HTML
• Please refer to the class video demonstrating how we can use <form>, <video>, and
<iframe> tags our HTML