7 Day Coding logo Coding Challenge

Welcome to day 1 of the 7 day beginners coding challenge! Today we’re going to look at how to create HTML elements in codepen, a code playground that allows us to start coding right away without needing to set up our HTML document or do anything else.

This video is taken from our online Website in a Weekend course. 

HTML Syntax: 

<element> Content to display </element>
<element attribute="value"> Content to display </element>

The main text elements are 6 levels of headings (from h1 through to h6), paragraphs and anchor links. 

Activity on Codepen.io

  1. Set up a Codepen account and create a new pen
  2. Create a h1 heading with your name 
  3. Create a h2 heading with your job title 
  4. Create a paragraph that describes you 
  5. Inside that paragraph add a link to one of your social media pages
  6. Save your Codepen!

Spoiler…