Hello World

  1. Open a terminal window.
  2. Create a new folder, ~/SD/HTML/, and navigate to it:
    mkdir ~/SD/HTML
    cd ~/SD/HTML/
    
  3. Create an HTML document, helloWorld.html, and open it in your editor.
    touch helloWorld.html
    atom helloWorld.html
    
  4. Structure a standard HTML document, including a head and body.
  5. Add a title element inside of the document's <head>. This title should say Hello World.
  6. Inside of the <body> tag add a header element (h1-h6). Inside of the header tag write "Hello " and your name. Save the file.
  7. In Google Chrome, use ⌘-o and navigate to your file so you can view your results in the browser.

Prev -- Up -- Next