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