HTML Basics Flashcards
anatomy of website
content in .html file
html tags for structure
CSS code for styling in .css file
JavaScript for behavior and interactivity
browser to display website
what does html stand for
HyperText Markup Language
<h1> heading </h1>
what is <h1> here
element name and open tag (no attributes)
<h1> heading </h1>
what is </h1> here
closing tag
how to comment
<!-- comment -->
<h1>top level header</h1>
<h2>header level 2</h2>
<h3>header level 3</h3>
<h4>header level 4</h4>
<h5>header level 5</h5>
<h6>header level 6</h6>
what kind of elements are these
<header></header>
elements
<p> text</p>
what kind of element is this
paragraph
what is an absolute url
linking to an external website/location
what does an absolute url usually start with
http:// or https://
when do we use linking to an absolute url
external websites
CDNs (content delivery networks): stylesheets, fonts, etc
media hosted outside of your project’s file
what is a relative url
linking to something within your project directory
what does this mean with a relative url:
/ :
go up to the root directory (top level) & start looking there
what does this mean with a relative url:
../ :
go up one level & start there (../../ etc.)
if the path for img is:
<img></img>
where is pic.jpg located
located in the same folder as the current document
if the path for img is:
<img></img>
where is pic.jpg located
located in the folder one up from the current document
if the path for img is:
<img></img>
where is pic.jpg located
located in the img folder at the root level