soliohio.blogg.se

Simple css website syntax
Simple css website syntax









Remember that we said that “index.html” is always the home page, so that is the page we are going to be editing first. We are going to start by making the home page.

simple css website syntax

We will be making two pages: a Home page and a Fun Facts page that will display random facts about your animal. Now we’re all ready to start coding! STEP 2: HOME PAGEĮvery website needs a home page, and it can also have other pages. Just keep your eyes out for pink text, and if you see any, try to find the error and fix it before going on.

simple css website syntax

Or maybe you typed the closing tag, but you forgot the forward slash at the beginning of it. For example, you could have typed out an opening tag but forgot to type the closing tag. A syntax error means that you typed something in wrong. If that happens that means that you have made a syntax error.

#Simple css website syntax code#

Click on the gear icon ⚙ at the top of coding section and turn off “auto close tags” and “autocomplete code.”Īs you are going along coding your website, you may encounter some of your code turning pink. You should rename your project something about your favorite animal, so click on “Untitled Project” in the top left corner in the green bar, and type in a name like “Sarah’s Favorite Animal.” Then click “Save.” After you’ve renamed your project, we need to do one more thing before we begin coding our website. The first page is “index.html,” which is always the home page, and “style.css,” which is our style sheet. Mozilla Thimble gives us a very basic website to start from, and it includes two pages that are shown on the bar on the left. You should now be able to see the code editor on the left and the preview of the website on the right as shown below.

  • Click “Create an account” in the top right corner.
  • In order for us to make our website, we will need to follow the steps below to set up a code editor. When you are coding your website today, make sure that every element (title, heading, paragraph, list, etc.) has an opening and a closing tag that corresponds with it, otherwise your web page might not appear exactly how you want it to. You will learn more of these tags as we code our website today, and you can always look up more tag names at.

    simple css website syntax

    For instance, “h1” is the largest heading, “p” is a paragraph, and “ul” makes an unordered list (list with bullet points). Each tag has a meaning associated with it.









    Simple css website syntax