Upgrade to Pro — share decks privately, control downloads, hide ads and more …

HTML Where Website Creation Starts!

HTML Where Website Creation Starts!

This presentation is geared towards kids who would like to learn how to create a website.

Avatar for Jason Reis

Jason Reis

June 15, 2013
Tweet

Other Decks in Programming

Transcript

  1. HTML where website creation starts! Composed by Jason Reis For

    use as a free self guided lesson on web development
  2. Intro to HTML To become a Coder you will need

    to learn some special words us coders use. First we must understand that regardless of what type of website or even software you are creating you will be using two language types; 1) A Programming language which is used to tell a browser or website how to behave. Types of programming languages include for example javascript or php 2) A Markup language on the other hand is used to add structure to the website. You can think of a website as text with markup on top to give it style. One interesting fact to keep in mind is that there is no one programming language that can be used to create a website. These days there typically are three languages at minimum that is used in creating any given website on the internet.
  3. The most common ones are HTML - which stands for

    Hyper Text Markup Language. As I said before it is a markup language that is used to provide structure to your website. HTML is not able to create interactive elements which is why it is referred to as a markup language. CSS - which stands for Cascading Style Sheets is the language that provides style to the structure that you setup via HTML. To create a website you will need text editor . For this course we will be using a free text editor which is found on any windows computer called notepad. For Mac users you can use Textmate. You will also need a FTP program we suggest using a free one by the name of FileZilla, which works on both Windows and Mac. Lastly you will need a website hosting account which will enable you to get your website on the internet. Lets begin talking about what a FTP program is and why you need one as well as What a Webhosting account is and why you need one. Intro to HTML
  4. Website Hosting Explained The internet is made up of millions

    of computers similar to the desktop computer you might have at your house. However these computers are all plugged in together and are referred to as servers. You can think of a computer server as an apartment building with a bunch of different people (we call websites) living in it. Since the apartment building aka Server is plugged into the central network we call the internet anyway on the world is able to go to your website. Much like people are able to drive to you house because your house is connected to everyone else in the world by roads.
  5. What is a FTP program In order to get the

    website files you create on your computer to their new home on the internet you will need a special “File Transfer Protocol“ program that is used to take your files from your local computer and move them to your website hosting account. Just think of it as if you moved to a new home you would have to get a special truck to come and take all your furniture and drive it to your new home somewhere else. This process is also referred to as uploading your files to the internet. Now that we have a text editor to create a webpage with and a ftp program to help us move what ever files we make to our new home on the web, lets get started by looking at the structure of a webpage.
  6. Intro to HTML Keep in mind that all computers have

    no brain that’s where you come in. Using languages like HTML and CSS you will have to tell the Internet browser step by step what to do.
  7. Activity Lets open up your text editor (notepad or textmate

    if your on a mac). Type the code that will be listed on the next slide and save it as index.html then upload to your website hosting account using the FTP program. Make sure you upload the file to where your website hosting account states to upload the files too. Typically you will need to upload the files to a folder called “public_html” or “public”
  8. What is in a persons head you will not be

    able to see such as what there name is which on the internet is called a title. Content on a body you will be able to see
  9. Intro to HTML Now that you uploaded the index.html file

    to your website hosting account you should be able to go to your site using an internet browser and see a screen like above confirming your website is online
  10. Much like when you tell the browser when the body

    starts and ends. You also have to tell the browser when a paragraph (or sentence) is to start and end via the <p> tag which stands for paragraph
  11. Intro to HTML Now that you know how to create

    text on a webpage using the <p> tag lets get fancy an add an image to our website. Lets go back to your text editor and copy the code on the following slide. However lets replace the part where it says <img src=‘cat.gif’> with the below tag instead <img src=‘http://www.jasonreis.net/mozilla-firefox.png’> Then be sure to save the file as index.html and upload again to your website hosting account. When uploading be sure to overwrite the original index.html file you have there. After you copy and upload the code on the following slide refresh the browser that you have open and you should now see an image on the page.
  12. If you wanted to have text and an image visible

    you would add that type of content to the body section of your code
  13. Common paragraph tags You can now experiment with making more

    html pages using the below html tags as examples <p> This is a paragraph or sentence </p> <p style=‘color:yellow’> A yellow paragraph or sentence</p> <p style=‘font-size:15px’> paragraph or sentence with big text</p> <p style=‘text-align:center’> paragraph or sentence that is aligned to the center</p> Other common html tags <a href=‘http://www.disney.com’>this is a link to another page</a> <img src=‘http://www.jasonreis.net/mozilla-firefox.png’> This will display an image from Jasonreis.net website where the file name is mozilla-firefox.pn . Notice this tag does not need a closing tag
  14. Presentation Credits This power point was created by Jason Reis

    and is made available for use freely Website: Jasonreis.net Twitter: @jayreis LinkedIn: Linkedin.com/in/jasonareis License viewable via the below link: http://creativecommons.org/licenses/by-nc-nd/3.0/legalcode