HTLM Cheatsheet

Ever have trouble recalling the exact syntax for your favorite HTML code? Give it a permanent home and add it to this page! Select any snippet below and it'll automatically select all of the code for you to copy.

H1-H6

The H1 tag is used to create headings on the page


            <h1> </h1>
            <h2> </h2>
            <h3> </h3>
            <h4> </h4>
            <h5> </h5>
            <h6> </h6>
        

P

The P tag is used to create paragraphs
Don't forget about BR to use as a line break

 
<p>
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. <br> 
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>

IMG

Remember when linking images to include alt text for accessibility (screen readers)


<img src="img_girl.jpg" 
alt="Girl in a jacket" 
width="500" height="600">