SlideShare ist ein Scribd-Unternehmen logo
1 von 26
  
Introduction to HTML5 and CSS3
 Before we begin, let me start by expressing that this 
presentation tutorial is for Windows PC users only as I do not 
own a mac yet. 
 This presentation will show you step by step how to create a 
folder directory root folder as well as sub-folders for the 
project you will be working on during this course. 
 The second half of this presentation will show you a walk 
through on downloading, installing, customizing, and using 
Sublime Text 2, a text editor that I will use in many of my 
demonstrations for this course. 
 At the end of this presentation, if you have any questions, 
please feel free to post a topic in the “Start Here” discussion 
area called “Getting Started.”
 Alright, so, let’s get started. Start by turning on your Windows PC 
and log in to your desktop. On your desktop background, right click 
on the screen. A menu will pop up. 
 From this menu, select the option new. This will open a secondary 
menu and on this menu you will select folder. It should look 
something like this.
 This new folder that you have created on your desktop 
will need a name. Give the folder a name that you will 
remember and make sure it is one that is beneficial for 
your project. You can name it “intro html5,” or 
“project_1.” Just keep in mind you will be using this 
folder to store all of your files for the website we will be 
creating for this course. 
 For this project, I chose to name my project folder 
“project_01.” Your folder should look like the following or 
similar.
 As you can see, you should have an new folder on your 
desktop where it’s easily accessible to you at all times. 
 Now, double click on your project folder to open it. As 
you can see there is absolutely nothing inside this folder. 
 We are going to add two sub-folders, or directories 
inside this main root directory folder. To do this, follow 
the same steps you followed for creating a new folder, 
only this time instead of clicking on your desktop 
background, you click on the window background in front 
of you to get the menu to pop up. 
 The two folders that you will create are “css” and 
“images.”
 Once you have completed this, you should have a folder 
file that looks like the following:
 As you can see, we now have our root directory folder, 
and two sub-folder directories inside this main folder. 
 Be sure when you name files and folders for this project, 
each name is typed in lowercase letters. This will make it 
easier for you to add things to your html code at a later 
point. 
 Again, if at this time you have any questions about what 
we have just gone over, please feel free to post a topic in 
the “Start Here” discussion forum “Getting Started.”
  
Introduction to HTML5 and CSS3
 For this course you are required to use a plain text editor for 
create htm or html and css files for your website project you 
will be creating. 
 Windows, by default, comes with Notepad, and Mac, by 
default, comes with TextEdit. Either of those two programs are 
fine to use for this course. 
 Avoid using word processors such as Microsoft Word as you 
can not save files as plain text. 
 Most of my presentations and lessons will be presented with a 
text editor called “Sublime Text 2,” therefore, in this part of the 
presentation I will go through the process of downloading, 
installing, customizing, and using Sublime Text 2.
 Sublime Text 2 is a basic text editor much like Notepad 
and TextEdit. However, it comes with additional features 
that makes it easier for programmers to see errors in 
their coding as well as tell their coding apart from their 
content. 
 You can customize the look and feel of the editor to fit 
your needs or preferences and that is something we will 
cover in this presentation.
 To start with, open up your Internet Web browser and go to 
the following URL: 
http://sublimetext.com/2 
 You will see that 2.0.2 is the current version of Sublime Text 2 
and you will also see that Sublime Text 3 (beta) is available. 
For now, we are going to download Sublime Text 2. 
 You can download the program via any of the links provided 
on this page. Make sure that you download the program for 
your proper operating system. For example, if you use 
Windows, do NOT download the Osx version as that is for a 
Mac OS and not windows. 
 Once you have downloaded the program, locate the 
installation file (usually in your downloads folder) and install 
the program. Make sure to create a short cut on your desktop 
for easier access.
 Now that you have installed the program successfully, 
open it. You should have a completely blank canvas that 
resembles the following.
 The first thing we are going to do is open our project 
folder. Our project folder is where all of our files will be 
stored. 
 Go to file -> Open Folder. Since the folder we created is 
located on our desktop, we should easily be able to 
locate the folder. 
 Select the folder from the list and select OK. Sublime 
Text opens a new window for our project folder. 
 Now, minimize our project window by clicking on the 
minus sign at the top right corner of the window. After 
doing that, go ahead and close the first window that was 
opened when we opened the program. To do this click 
on the X symbol in the top right corner of that window.
 Maximize our project window by clicking on the taskbar 
button for sublime text. 
 As you can see, in the side bar of the window, you can 
also see the two sub-folder directories we created, css 
and images:
 With our workstation set up this way, you can easily edit 
multiple files at one time, as well as link to content within 
the root and sub-folders in your actual HTML code.
 Now we are going to create our first file using Sublime Text. 
 Go to file -> New File. Doing this opens a tab in our 
workstation window. 
 In this new tab we are going to write some lines of code. We 
are going to use the required HTML5 elements for all web – 
pages so you can get an idea of what the coding will look like. 
Type the code as follows:
 As you can see, there is absolutely nothing special about 
the code on the page. It is simply just plain text. 
 After you complete the following step, watch what 
happens to the code. 
 Now, go to file -> save as. Make sure you are inside your 
project folder. You should see the css and images sub-folders 
in side the folder’s root. 
 Give the file the name index.htm, make sure the save as 
type is set to “all files.” Click Save. 
 Notice how the HTML tags have changed colors? Pretty 
neat huh? This makes it easier to distinguish code from 
content/text. See an example on the next slide:
 Now we are going to close and open the file that we just 
created so that you understand how to do this with 
individual files within your project folders. 
 To close the file, click the small x on the tab of the file. To 
re-open the file simply click, or double click on the 
index.htm file located in the left sidebar of the Sublime 
Text window. 
 This program allows you to have multiple files open at a 
time for easier editing of code. It’s definitely a unique tool 
to have when editing multiple pages at one time.
 Now, we are going to create another new file. Again, go to file 
-> new file. This opens a second tab in your projects window. 
 Before we begin writing any code to this file, lets save it first. 
 Go to file -> Save as. You should already be in your project 
folder, but just to be safe, make sure that you are. Save this 
file as index2.htm. 
 Now, we are going to repeat the same step as before. 
However, do NOT copy and paste the code from the first file 
to the second file, or you will not see the difference. 
 Begin typing your required HTML5 tags in the new file and 
watch what happens. Notice anything different? There is an 
example on the next slide:
 As you can see, if you save the file before you begin 
coding, Sublime Text automatically adds indents for 
specific parts of code making the code easier to read.
Saving After Writing Code 
Saving Before Writing 
Code
 When working with multiple open files, you have the 
option to save all of those files at one time. This is 
something that I highly recommend as you may make 
some changes you forget out. 
 To do this, simply go to file -> save all. This will save all 
of the files that are open in tabs within your work station.
 The last thing that I would like to cover in this 
presentation is the customization of your Sublime Text 2 
Workstation. 
 Simply go to Preferences -> Color Scheme. From there 
you will see several different options for selecting a color 
theme for your work station. Play with it a bit and find 
one that suits your needs, or one that you really like. 
 My personal favorite is Monokai Bright. It has a dark 
background with pink text for the HTML tags, which is 
easy on the eyes and allows me to differentiate between 
my code and content. 
 When writing CSS, it looks beautiful in this theme as 
well. See an example on the next slide.
HTML CSS
 Alright, you can now close the open program as this 
concludes the second part of my presentation tutorial. 
 Make sure that you delete the two files we created with 
Sublime Text 2 as you will be creating similar named files 
for your actual project in those folders. 
 Again, if after going through this presentation, if you 
have any questions feel free to post them in the “Start 
Here” discussion area “Getting Started.”

Weitere Àhnliche Inhalte

Was ist angesagt?

BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateBP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateSean Burgess
 
HTML 101
HTML 101HTML 101
HTML 101lordis89
 
Lesson 3 cs5
Lesson 3   cs5Lesson 3   cs5
Lesson 3 cs5dtelepos
 
Basic Html for beginners.
Basic Html for beginners.Basic Html for beginners.
Basic Html for beginners.Muhammad Shafique
 
Create online forms using google docs
Create online forms using google docsCreate online forms using google docs
Create online forms using google docsFrances O'Neill
 
Creating a page in HTML
Creating a page in HTMLCreating a page in HTML
Creating a page in HTMLrobertbenard
 
Lesson 1 cs5
Lesson 1   cs5Lesson 1   cs5
Lesson 1 cs5dtelepos
 
Blogs
Blogs Blogs
Blogs agusbeux
 
hopTo Work Step by Step Test Drive
hopTo Work Step by Step Test DrivehopTo Work Step by Step Test Drive
hopTo Work Step by Step Test DrivehopTo
 
Html beginner
Html beginnerHtml beginner
Html beginnerwihrbt
 
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateBlog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateSean Burgess
 
Lesson4.9 a u4l2 html
Lesson4.9 a u4l2 htmlLesson4.9 a u4l2 html
Lesson4.9 a u4l2 htmlLexume1
 
Html beginners tutorial
Html beginners tutorialHtml beginners tutorial
Html beginners tutorialnikhilsh66131
 

Was ist angesagt? (15)

BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateBP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
BP304 - Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
 
HTML 101
HTML 101HTML 101
HTML 101
 
Lesson 3 cs5
Lesson 3   cs5Lesson 3   cs5
Lesson 3 cs5
 
Basic Html for beginners.
Basic Html for beginners.Basic Html for beginners.
Basic Html for beginners.
 
Brackets code editor guide
Brackets code editor guideBrackets code editor guide
Brackets code editor guide
 
Create online forms using google docs
Create online forms using google docsCreate online forms using google docs
Create online forms using google docs
 
Creating a page in HTML
Creating a page in HTMLCreating a page in HTML
Creating a page in HTML
 
Lesson 1 cs5
Lesson 1   cs5Lesson 1   cs5
Lesson 1 cs5
 
Html5
Html5Html5
Html5
 
Blogs
Blogs Blogs
Blogs
 
hopTo Work Step by Step Test Drive
hopTo Work Step by Step Test DrivehopTo Work Step by Step Test Drive
hopTo Work Step by Step Test Drive
 
Html beginner
Html beginnerHtml beginner
Html beginner
 
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog TemplateBlog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
Blog It Up, Baby! Extending the new IBM Lotus Domino Blog Template
 
Lesson4.9 a u4l2 html
Lesson4.9 a u4l2 htmlLesson4.9 a u4l2 html
Lesson4.9 a u4l2 html
 
Html beginners tutorial
Html beginners tutorialHtml beginners tutorial
Html beginners tutorial
 

Ähnlich wie Getting started with Website Project and Sublime Text 2

An Overview of RoboHelp 7
An Overview of RoboHelp 7An Overview of RoboHelp 7
An Overview of RoboHelp 7Scott Abel
 
Fewd week1 slides
Fewd week1 slidesFewd week1 slides
Fewd week1 slidesWilliam Myers
 
Dw cs3-introduction
Dw cs3-introductionDw cs3-introduction
Dw cs3-introductionkoinoniamedia
 
1 Creating web pages in Word (Web Assignment 1) .docx
1  Creating web pages in Word  (Web Assignment 1)  .docx1  Creating web pages in Word  (Web Assignment 1)  .docx
1 Creating web pages in Word (Web Assignment 1) .docxhoney725342
 
php
phpphp
phpFELIX75
 
Mulesoft - Documentation (Automation)
Mulesoft - Documentation (Automation)Mulesoft - Documentation (Automation)
Mulesoft - Documentation (Automation)Vamsi Krishna
 
DevLearn 2017 - Getting Started with Adapt
DevLearn 2017 - Getting Started with AdaptDevLearn 2017 - Getting Started with Adapt
DevLearn 2017 - Getting Started with AdaptFloat
 
Automatic documantation with mule
Automatic documantation with muleAutomatic documantation with mule
Automatic documantation with muleSunil Komarapu
 
Automatic documentation with mule
Automatic documentation with muleAutomatic documentation with mule
Automatic documentation with muleHasan Syed
 
Automatic documantation with mule
Automatic documantation with mule Automatic documantation with mule
Automatic documantation with mule AbdulImrankhan7
 
Automatic documentation with mule
Automatic documentation with muleAutomatic documentation with mule
Automatic documentation with muleF K
 
Automatic documentation with mule
Automatic documentation with mule Automatic documentation with mule
Automatic documentation with mule javeed_mhd
 
Automatic documantation with mule
Automatic documantation with mule Automatic documantation with mule
Automatic documantation with mule mdfkhan625
 
Documantation with mule
Documantation with mule Documantation with mule
Documantation with mule Praneethchampion
 
Automatic documentation with mule
Automatic documentation with muleAutomatic documentation with mule
Automatic documentation with muleMohammed246
 

Ähnlich wie Getting started with Website Project and Sublime Text 2 (20)

An Overview of RoboHelp 7
An Overview of RoboHelp 7An Overview of RoboHelp 7
An Overview of RoboHelp 7
 
Fewd week1 slides
Fewd week1 slidesFewd week1 slides
Fewd week1 slides
 
Dw cs3-introduction
Dw cs3-introductionDw cs3-introduction
Dw cs3-introduction
 
1 Creating web pages in Word (Web Assignment 1) .docx
1  Creating web pages in Word  (Web Assignment 1)  .docx1  Creating web pages in Word  (Web Assignment 1)  .docx
1 Creating web pages in Word (Web Assignment 1) .docx
 
phpTutorial5
phpTutorial5phpTutorial5
phpTutorial5
 
phpTutorial5
phpTutorial5phpTutorial5
phpTutorial5
 
php
phpphp
php
 
phpTutorial5
phpTutorial5phpTutorial5
phpTutorial5
 
phpTutorial5
phpTutorial5phpTutorial5
phpTutorial5
 
Mulesoft - Documentation (Automation)
Mulesoft - Documentation (Automation)Mulesoft - Documentation (Automation)
Mulesoft - Documentation (Automation)
 
DevLearn 2017 - Getting Started with Adapt
DevLearn 2017 - Getting Started with AdaptDevLearn 2017 - Getting Started with Adapt
DevLearn 2017 - Getting Started with Adapt
 
Automatic documantation with mule
Automatic documantation with muleAutomatic documantation with mule
Automatic documantation with mule
 
Mule
MuleMule
Mule
 
Automatic documentation with mule
Automatic documentation with muleAutomatic documentation with mule
Automatic documentation with mule
 
Automatic documantation with mule
Automatic documantation with mule Automatic documantation with mule
Automatic documantation with mule
 
Automatic documentation with mule
Automatic documentation with muleAutomatic documentation with mule
Automatic documentation with mule
 
Automatic documentation with mule
Automatic documentation with mule Automatic documentation with mule
Automatic documentation with mule
 
Automatic documantation with mule
Automatic documantation with mule Automatic documantation with mule
Automatic documantation with mule
 
Documantation with mule
Documantation with mule Documantation with mule
Documantation with mule
 
Automatic documentation with mule
Automatic documentation with muleAutomatic documentation with mule
Automatic documentation with mule
 

KĂŒrzlich hochgeladen

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 

KĂŒrzlich hochgeladen (20)

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 

Getting started with Website Project and Sublime Text 2

  • 1.   Introduction to HTML5 and CSS3
  • 2.  Before we begin, let me start by expressing that this presentation tutorial is for Windows PC users only as I do not own a mac yet.  This presentation will show you step by step how to create a folder directory root folder as well as sub-folders for the project you will be working on during this course.  The second half of this presentation will show you a walk through on downloading, installing, customizing, and using Sublime Text 2, a text editor that I will use in many of my demonstrations for this course.  At the end of this presentation, if you have any questions, please feel free to post a topic in the “Start Here” discussion area called “Getting Started.”
  • 3.  Alright, so, let’s get started. Start by turning on your Windows PC and log in to your desktop. On your desktop background, right click on the screen. A menu will pop up.  From this menu, select the option new. This will open a secondary menu and on this menu you will select folder. It should look something like this.
  • 4.  This new folder that you have created on your desktop will need a name. Give the folder a name that you will remember and make sure it is one that is beneficial for your project. You can name it “intro html5,” or “project_1.” Just keep in mind you will be using this folder to store all of your files for the website we will be creating for this course.  For this project, I chose to name my project folder “project_01.” Your folder should look like the following or similar.
  • 5.  As you can see, you should have an new folder on your desktop where it’s easily accessible to you at all times.  Now, double click on your project folder to open it. As you can see there is absolutely nothing inside this folder.  We are going to add two sub-folders, or directories inside this main root directory folder. To do this, follow the same steps you followed for creating a new folder, only this time instead of clicking on your desktop background, you click on the window background in front of you to get the menu to pop up.  The two folders that you will create are “css” and “images.”
  • 6.  Once you have completed this, you should have a folder file that looks like the following:
  • 7.  As you can see, we now have our root directory folder, and two sub-folder directories inside this main folder.  Be sure when you name files and folders for this project, each name is typed in lowercase letters. This will make it easier for you to add things to your html code at a later point.  Again, if at this time you have any questions about what we have just gone over, please feel free to post a topic in the “Start Here” discussion forum “Getting Started.”
  • 8.   Introduction to HTML5 and CSS3
  • 9.  For this course you are required to use a plain text editor for create htm or html and css files for your website project you will be creating.  Windows, by default, comes with Notepad, and Mac, by default, comes with TextEdit. Either of those two programs are fine to use for this course.  Avoid using word processors such as Microsoft Word as you can not save files as plain text.  Most of my presentations and lessons will be presented with a text editor called “Sublime Text 2,” therefore, in this part of the presentation I will go through the process of downloading, installing, customizing, and using Sublime Text 2.
  • 10.  Sublime Text 2 is a basic text editor much like Notepad and TextEdit. However, it comes with additional features that makes it easier for programmers to see errors in their coding as well as tell their coding apart from their content.  You can customize the look and feel of the editor to fit your needs or preferences and that is something we will cover in this presentation.
  • 11.  To start with, open up your Internet Web browser and go to the following URL: http://sublimetext.com/2  You will see that 2.0.2 is the current version of Sublime Text 2 and you will also see that Sublime Text 3 (beta) is available. For now, we are going to download Sublime Text 2.  You can download the program via any of the links provided on this page. Make sure that you download the program for your proper operating system. For example, if you use Windows, do NOT download the Osx version as that is for a Mac OS and not windows.  Once you have downloaded the program, locate the installation file (usually in your downloads folder) and install the program. Make sure to create a short cut on your desktop for easier access.
  • 12.  Now that you have installed the program successfully, open it. You should have a completely blank canvas that resembles the following.
  • 13.  The first thing we are going to do is open our project folder. Our project folder is where all of our files will be stored.  Go to file -> Open Folder. Since the folder we created is located on our desktop, we should easily be able to locate the folder.  Select the folder from the list and select OK. Sublime Text opens a new window for our project folder.  Now, minimize our project window by clicking on the minus sign at the top right corner of the window. After doing that, go ahead and close the first window that was opened when we opened the program. To do this click on the X symbol in the top right corner of that window.
  • 14.  Maximize our project window by clicking on the taskbar button for sublime text.  As you can see, in the side bar of the window, you can also see the two sub-folder directories we created, css and images:
  • 15.  With our workstation set up this way, you can easily edit multiple files at one time, as well as link to content within the root and sub-folders in your actual HTML code.
  • 16.  Now we are going to create our first file using Sublime Text.  Go to file -> New File. Doing this opens a tab in our workstation window.  In this new tab we are going to write some lines of code. We are going to use the required HTML5 elements for all web – pages so you can get an idea of what the coding will look like. Type the code as follows:
  • 17.  As you can see, there is absolutely nothing special about the code on the page. It is simply just plain text.  After you complete the following step, watch what happens to the code.  Now, go to file -> save as. Make sure you are inside your project folder. You should see the css and images sub-folders in side the folder’s root.  Give the file the name index.htm, make sure the save as type is set to “all files.” Click Save.  Notice how the HTML tags have changed colors? Pretty neat huh? This makes it easier to distinguish code from content/text. See an example on the next slide:
  • 18.
  • 19.  Now we are going to close and open the file that we just created so that you understand how to do this with individual files within your project folders.  To close the file, click the small x on the tab of the file. To re-open the file simply click, or double click on the index.htm file located in the left sidebar of the Sublime Text window.  This program allows you to have multiple files open at a time for easier editing of code. It’s definitely a unique tool to have when editing multiple pages at one time.
  • 20.  Now, we are going to create another new file. Again, go to file -> new file. This opens a second tab in your projects window.  Before we begin writing any code to this file, lets save it first.  Go to file -> Save as. You should already be in your project folder, but just to be safe, make sure that you are. Save this file as index2.htm.  Now, we are going to repeat the same step as before. However, do NOT copy and paste the code from the first file to the second file, or you will not see the difference.  Begin typing your required HTML5 tags in the new file and watch what happens. Notice anything different? There is an example on the next slide:
  • 21.  As you can see, if you save the file before you begin coding, Sublime Text automatically adds indents for specific parts of code making the code easier to read.
  • 22. Saving After Writing Code Saving Before Writing Code
  • 23.  When working with multiple open files, you have the option to save all of those files at one time. This is something that I highly recommend as you may make some changes you forget out.  To do this, simply go to file -> save all. This will save all of the files that are open in tabs within your work station.
  • 24.  The last thing that I would like to cover in this presentation is the customization of your Sublime Text 2 Workstation.  Simply go to Preferences -> Color Scheme. From there you will see several different options for selecting a color theme for your work station. Play with it a bit and find one that suits your needs, or one that you really like.  My personal favorite is Monokai Bright. It has a dark background with pink text for the HTML tags, which is easy on the eyes and allows me to differentiate between my code and content.  When writing CSS, it looks beautiful in this theme as well. See an example on the next slide.
  • 26.  Alright, you can now close the open program as this concludes the second part of my presentation tutorial.  Make sure that you delete the two files we created with Sublime Text 2 as you will be creating similar named files for your actual project in those folders.  Again, if after going through this presentation, if you have any questions feel free to post them in the “Start Here” discussion area “Getting Started.”