Skip to content

sheesh19/full-day-html-css-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the Intro to HTML & CSS Workshop! 💅

Let's get familiar with HTML + CSS and build a landing page.

Here are the slides with examples: https://drive.google.com/file/d/1oMgdo6Div5FHtpVXpOiPZ-hfBBUEREpH/view?usp=sharing

Make sure you have a text editor like Sublime or VS Code

Remember, to open your file on the web browser: right click your file & Open With: Chrome.

Challenge 1 | HTML

  1. Clone or download this repository (you can use your command line or download it directly to your desktop).
  2. Now that you have the file structure, open it in your text editor, make sure you have the following code to start your document:
<!DOCTYPE html>
<html>

  <head>
    <meta charset="UTF-8">
    <title></title>
  </head>

  <body>
  
  </body>
  
</html>
  1. Update the title of your webpage a title. <title>
  2. In between your <body> tags, let's add some HTML structure. Use an <h1> tag and give your site a heading.
  3. Now use a <p> for some text in your site.
  4. Let's use a link in your HTML with an <a> tag.
  5. Lets put a <div> tag around all of the content we've created so far within the <body>.
  6. Feel free to include other HTML tags below the <div> you've created + be creative!

Challenge 2 | CSS

  1. First, navigate to your style.css file. What code is already in there? What is it doing?
  2. Next, make sure to link it in the head: <link rel="stylesheet" href="style.css">.
  3. From your previous challenge, you should have a <div> around all the content in your <body>. Let's give it some style! First let's give it a class with: class="your-class-here".
  4. For the class that you have created, let's give it some styling:
  • Find a background image on Unsplash at www.unsplash.com .
  • Give the <div> a background-image: url(); and use the image you found.
  • Next, give the <div> some height & width.
  • Next, change the color of the text in the <div>.
  • Next, let's text-align: center; the text in our <div>.
  • Check out more examples of CSS styling here: W3Schools | CSS
  1. Give the <h1> in your page some styling:
  • Let's play with the padding-top and move it lower on our background image.
  1. Let's add some more style to the other items on your page. Get creative!
  • Check out some properties you can use to style your page: color, background-color, font-size, object-fit: center, border, border-radius, padding, margin, ``

Challenge 3 | CSS - Advanced

  1. Want to add different fonts? Head to Google Fonts.
  • Find a text you like.
  • Copy the link tag & put it in your <head>.
  • Update your font-family css attribute.
  1. Play around with Flex Box

Challenge 4 | Bootstrap

  1. Use Boostrap to customise your page! https://getbootstrap.com/
  2. Remember to import Bootstrap in the head of your html:
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
  1. To use the Javascript Bootstrap components, put the following lines right above your closing </body> tag in your html:
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
  1. Try to customise your own Bootstrap cards! How can you put three cards in one line? Use flexbox on the div that contains your cards.
  2. Use Boostrap navbars or try to use the carousel.

Challenge 5 | Launch on Netlify

  1. Sign up for Netlify
  2. Once you're logged in, drag the folder of code you made today into space on Netlify that says: Want to deploy a new site without connecting to Git? Drag and drop your site folder here
  3. Launch your website & share with your friends!

Further Resources:

If you want to learn more about HTML & CSS, here are some great resources:

If you need any help, feel free to reach out:

Sheila: LinkedIn Personal Website

Sy: LinkedIn Personal Website

Ben LinkedIn Personal Website

The slides from today: https://drive.google.com/file/d/1oMgdo6Div5FHtpVXpOiPZ-hfBBUEREpH/view?usp=sharing

About

Full-day workshop for HTML & CSS Intros

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published