Introduction
Introduction
Introduction
Introduction
Introduction
Introduction
Visual Studio Code - a code editor that allows you to write code
HTML Foundations
HTML Foundations
<p>, <h1>, <img>, <a> and many moreHTML Foundations
Syntax means how code is written. It is the set of rules and standards that define the language.
<p>Hello World</p>HTML Foundations
Syntax means how code is written. It is the set of rules and standards that define the language.
<p>Hello World</p>
<h1>Level 1 Heading</h1>HTML Foundations
Syntax means how code is written. It is the set of rules and standards that define the language.
<p>Hello World</p>
<h1>Level 1 Heading</h1>
<strong>Strong Text (Bolded)</strong>HTML Foundations
Elements can be nested. The rule here is you must close the nested element first before closing the parent (outer) element.
<p>
<strong>A strong paragraph text</strong>
More text with regular paragraph format.
</p>HTML Foundations
Some elements must be nested. Again, the nested element(s) must be closed first before the parent element.
<ul>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
</ul>HTML Foundations
Other elements are defined using attributes.
<a href="https://www.youtube.com">Youtube Link</a>HTML Foundations
Other elements are defined using attributes.
<a href="https://www.youtube.com">Youtube Link</a>
<img src="image.jpg" alt="Union Station Building" />HTML Foundations
Other elements are defined using attributes.
<a href="https://www.youtube.com">Youtube Link</a>
<img src="image.jpg" alt="Union Station Building" />wait... where is the closing tag?
HTML Foundations
Other elements are defined using attributes.
<a href="https://www.youtube.com">Youtube Link</a>
<img src="image.jpg" alt="Union Station Building" />Some elements like the <img> tag are self-closing. Since these elements don't typically hold any text context, they do not require a closing tag.
Concept Practice: HTML Foundations
Let's practice using VS Code and creating HTML elements.
Resources
HTML File Structure
Understanding the File Tree and Paths
Basic HTML Page