You are on page 1of 1

Basic HTML

.
h1 - main headings
opening - <h1>
closing - </h1>
.
h2 - subheadings (including h3,h4,h5 and h6)
.
Commenting - put comments w/o ffecting the output displayed to user's end
- make code inactive w/o removing
opening - <!--
closing - -->
.
HTML5

HTML Tags - descriptive structure, easier to read, help Search Engine Optimizaton
(SEO) and accessibility
*include:
. main - helps search engines and to find the main content of your page
opening - <main>
closing - </main>
. header
. footer
. nav
. video
. article
. section

.
img element

. img - element to add image to website and using


. src - attribute for image's URL / short for SOURCE CODE
. alt - attribute that must img elements have, alternative information for an image
fails to load (for some reason like: slow connection, error, etc)
(alt=alternative?)
*note: for decorative image, use empty alt attribute
- should not contain special characters unless needed
format: <img src="URL" alt="def of image">
example: <img src="https://bit.ly/fcc-relaxing-cat" alt="Cute Cat">

You might also like