SlideShare a Scribd company logo
Create Web Pages
with HTML & CSS
Hans-Petter Halvorsen
http://www.halvorsen.blog
Contents
• Part 1:
–Introduction to HTML and CSS
• Part 2:
–Step by Step Example
• Deploy to Web Server
–FTP
HTML & CSS
Introduction
Hans-Petter Halvorsen
http://www.halvorsen.blog
Web Site
Example
Presentation (Figures and Text) of
your Software Product
Documents available for download
(Hyperlinks)
WYSIWYG HTML Editors
• Adobe Dreamweaver (Monthly Payment)
• Kompozer (Free)
• Bluegriffon (Free)
• Sparkle ($80), etc...
Other HTML Editors (not WYSIWYG)
• Visual Studio (ASP.NET)
• Visual Studio Code
• CoffeeCup ($69, Free Trial)
• Coda ($99)
• NotePad (-> any textbased editor)
WYSIWYG – What You See Is What You Get
You dont need to know HTML syntax - Its
just like using MS Word.
Only possible to change the HTML
source code and then select “Preview”
in order to see how it looks like in a
Web Browser.
You need to know HTML syntax
Create a Web Site with Visual Studio
• Visual Studio is not well suited for creating Static HTML
Web Pages.
• Visual Studio has poor WYSIWYG Editing possibilities
• Visual Studio is more optimized for creating Dynamic
Web Pages and creating ASP.NET Web Pages in special
• For HTML pages Visual Studio Code may be a better
choice.
Simple Web Page in Visual Studio Code
Web Server
Apache Web Server or IIS Web Server
Your Development PC
PC with Web Browser
Visual Studio
FTP
E.g. WinSCP, FileZilla or
use FTP features in Visual
Studio
Upload Files
Web Page Url
HTTP
Request
Response
Clients
Visual Studio Code
Create a Web Site with Visual Studio
Note! Make sure the Source Code
should be stored in your Team
Services Project
Create a Web Site with Visual Studio
Your Start Page needs to
be named “index.htm”
Visual Studio HTML Editor
Note! Due to the brand new HTML editor in Visual Studio, static HTML files no
longer has the Design|Split|Source options enabled by default.
• That’s because the new HTML editor is the default editor for all HTML files
with the exception of ASP.NET Web Forms files (.aspx, .ascx, .master).
• However, it is only the Web Forms editor that has support for the designer
and split view.
• So all we have to do is to map our .html or .htm files to use the Web Forms
editor instead of the new HTML editor.
• Simply right-click any .html/.htm file in Solution Explorer and select Open
With…
HTML Editor in Visual Studio
Simple “WYSIWYG”
Editor + Preview
Code Editor
Create your
HTML Code here!
Simple HTML Page
Example
14
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
HTML Code
Web Browser:
Test in Browser
Hit F5 to Run It
Or Select “View in Browser”
Note! All documents
should be PDF Files!!
Hyper-
links:
<!DOCTYPE html>
<html>
<body>
<h1>This is a heading</h1>
<a href="http://www.google.com">This is a link to Google</a>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<h1>This is a heading</h1>
<img src=“myimage.jpg" alt=”blabla" width="104" height="142">
</body>
</html>
Images:
HTML Tags Overview
<a href="http://www.google.com">This is a link to Google</a>
<b>This is my Text</b>
Hyperlink:
Bold Text:
<h1>This is my Header</h1>
Headers:
This is my Text
<br>
This is also my Text
Line Break:
<p>My first paragraph.</p>
Paragraph:
<img src=“myimage.jpg" alt=”blabla" width="104" height="142">
Image:
<h2>This is my Header</h2>
<h3>This is my Header</h3>
<title>This is my Title</title>
Title:
<!-- Write your comments here -->
Comments:
HTML Tags - Table
<table width="200" border="1">
<tr>
<td>a</td>
<td>b</td>
<td>c</td>
<td>d</td>
</tr>
<tr>
<td>e</td>
<td>f</td>
<td>g</td>
<td>h</td>
</tr>
<tr>
<td>i</td>
<td>j</td>
<td>k</td>
<td>l</td>
</tr>
</table>
...
<head
...
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
..
</head>
...
CSS (Cascading Style Sheet)
CSS is a stylesheet
language that describes
the presentation of an
HTML page.
body {
background-color: #d0e4fe;
}
h1 {
color: orange;
text-align: center;
}
p {
font-family: "Times New Roman";
font-size: 20px;
}
stylesheet.css:
myfile.htm:
HTML
Good Resource for creating Web Pages with
HTML, CSS, JavaScript, SQL, etc.
http://www.w3schools.com
HTML & CSS
Step by Step Example
Hans-Petter Halvorsen
http://www.halvorsen.blog
We are going to make a Web Page like this:
Create a proper
Folder structure, e.g.:
My Web Site
/css
...
/documents
...
/html
...
/images
...
/js
...
index.html
You should always think
structure before you start coding
Start with an empty HTML Page
Create Title,
Header and Text
Create Images
Create Hyperlinks
Hyperlinks can be other
web pages, documents, etc.
Learn more HTML
• https://www.w3schools.com/html
CSS
• CSS is a language that describes the style of an
HTML document.
• CSS describes how HTML
elements should be displayed.
• Examples: Font Size, Colors,
Alignment, etc.
Inline CSS
• The CSS in part of the
HTML file
<style>
..
</style>
External CSS File
Here you see a simple example:
Create CSS
Create Web Pages by programming of your chice.pdf
Explore!
Find Colors, Font Sizes,
etc. that fits your system
Learn more CSS
• https://www.w3schools.com/css/
Bootstrap
http://www.w3schools.com/bootstrap/
Bootstrap is the most popular HTML, CSS, and JavaScript
framework for developing responsive, mobile-first web sites.
Bootstrap is completely free to download and use!
Alternative 1
Alternative 2
Explore!
With CSS and Bootstrap you
have endless possibilities
FTP
Hans-Petter Halvorsen
http://www.halvorsen.blog
File Transfer Protocol
Web Server
• You need to deploy your files to the Web
Server
• Typically you use a FTP program
– You need to know the Host Name, and a User
Name and a Password
Web
PCs with Web Browsers
Clients
Server-side
Internet
HTML
HTML
CSS
FTP Software
• WinSCP
– https://winscp.net
• FileZilla
– https://filezilla-project.org
Hans-Petter Halvorsen
University of Southeast Norway
www.usn.no
E-mail: hans.p.halvorsen@usn.no
Web: https://www.halvorsen.blog

More Related Content

PDF
HTML & CSS 2017
PPTX
HTML CSS and Web Development
PPTX
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
PPT
PPTX
Tech Winter Break - GDG on Campus - PIET
PPTX
1812010023 web developement(ANKITA OJHA)CSE4(A).pptx
RTF
Vijay it 2 year
PPTX
World wide web with multimedia
HTML & CSS 2017
HTML CSS and Web Development
WEBSITE DESIGN AND DEVELOPMENT WITH CASCADING STYLE SHEETS(CSS)
Tech Winter Break - GDG on Campus - PIET
1812010023 web developement(ANKITA OJHA)CSE4(A).pptx
Vijay it 2 year
World wide web with multimedia

Similar to Create Web Pages by programming of your chice.pdf (20)

PPT
Html intro
PPTX
Web design and Development
PPT
HTML & CSS.ppt
PDF
Thinkful - Frontend Crash Course - Intro to HTML/CSS
PPTX
Intermediate Web Design
PPTX
Day of code
PPTX
Web development (html)
PPTX
David Weliver
PDF
Html css crash course may 11th, atlanta
PPT
html and css- 23091 3154 458-5d4341a0.ppt
PDF
Html:css crash course (4:5)
PPTX
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
PPTX
PPT ON SEMINAR REPORT.pptx. bhvhvhchchvhchch
ODP
PSD to HTML Conversion
PPTX
HTMLforbeginerslearntocodeforbeginersinfh
PPTX
Introduction to HTML+CSS+Javascript.pptx
DOC
Intermediate Web Design.doc
DOC
Intermediate Web Design.doc
PPTX
Unit 1wt
PPTX
What is CSS.pptx power point presentation
Html intro
Web design and Development
HTML & CSS.ppt
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Intermediate Web Design
Day of code
Web development (html)
David Weliver
Html css crash course may 11th, atlanta
html and css- 23091 3154 458-5d4341a0.ppt
Html:css crash course (4:5)
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
PPT ON SEMINAR REPORT.pptx. bhvhvhchchvhchch
PSD to HTML Conversion
HTMLforbeginerslearntocodeforbeginersinfh
Introduction to HTML+CSS+Javascript.pptx
Intermediate Web Design.doc
Intermediate Web Design.doc
Unit 1wt
What is CSS.pptx power point presentation
Ad

Recently uploaded (20)

PPTX
EDP Competencies-types, process, explanation
PDF
Quality Control Management for RMG, Level- 4, Certificate
PPT
Machine printing techniques and plangi dyeing
PDF
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
PPTX
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
PDF
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
PPTX
BSCS lesson 3.pptxnbbjbb mnbkjbkbbkbbkjb
PDF
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
PPTX
AD Bungalow Case studies Sem 2.pptxvwewev
PPTX
Implications Existing phase plan and its feasibility.pptx
PPT
UNIT I- Yarn, types, explanation, process
PPTX
mahatma gandhi bus terminal in india Case Study.pptx
PPTX
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
PPTX
DOC-20250430-WA0014._20250714_235747_0000.pptx
PPTX
Wisp Textiles: Where Comfort Meets Everyday Style
PPTX
Entrepreneur intro, origin, process, method
PDF
Urban Design Final Project-Site Analysis
PDF
Phone away, tabs closed: No multitasking
PPTX
Special finishes, classification and types, explanation
PDF
YOW2022-BNE-MinimalViableArchitecture.pdf
EDP Competencies-types, process, explanation
Quality Control Management for RMG, Level- 4, Certificate
Machine printing techniques and plangi dyeing
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
BSCS lesson 3.pptxnbbjbb mnbkjbkbbkbbkjb
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
AD Bungalow Case studies Sem 2.pptxvwewev
Implications Existing phase plan and its feasibility.pptx
UNIT I- Yarn, types, explanation, process
mahatma gandhi bus terminal in india Case Study.pptx
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
DOC-20250430-WA0014._20250714_235747_0000.pptx
Wisp Textiles: Where Comfort Meets Everyday Style
Entrepreneur intro, origin, process, method
Urban Design Final Project-Site Analysis
Phone away, tabs closed: No multitasking
Special finishes, classification and types, explanation
YOW2022-BNE-MinimalViableArchitecture.pdf
Ad

Create Web Pages by programming of your chice.pdf

  • 1. Create Web Pages with HTML & CSS Hans-Petter Halvorsen http://www.halvorsen.blog
  • 2. Contents • Part 1: –Introduction to HTML and CSS • Part 2: –Step by Step Example • Deploy to Web Server –FTP
  • 3. HTML & CSS Introduction Hans-Petter Halvorsen http://www.halvorsen.blog
  • 4. Web Site Example Presentation (Figures and Text) of your Software Product Documents available for download (Hyperlinks)
  • 5. WYSIWYG HTML Editors • Adobe Dreamweaver (Monthly Payment) • Kompozer (Free) • Bluegriffon (Free) • Sparkle ($80), etc... Other HTML Editors (not WYSIWYG) • Visual Studio (ASP.NET) • Visual Studio Code • CoffeeCup ($69, Free Trial) • Coda ($99) • NotePad (-> any textbased editor) WYSIWYG – What You See Is What You Get You dont need to know HTML syntax - Its just like using MS Word. Only possible to change the HTML source code and then select “Preview” in order to see how it looks like in a Web Browser. You need to know HTML syntax
  • 6. Create a Web Site with Visual Studio • Visual Studio is not well suited for creating Static HTML Web Pages. • Visual Studio has poor WYSIWYG Editing possibilities • Visual Studio is more optimized for creating Dynamic Web Pages and creating ASP.NET Web Pages in special • For HTML pages Visual Studio Code may be a better choice.
  • 7. Simple Web Page in Visual Studio Code
  • 8. Web Server Apache Web Server or IIS Web Server Your Development PC PC with Web Browser Visual Studio FTP E.g. WinSCP, FileZilla or use FTP features in Visual Studio Upload Files Web Page Url HTTP Request Response Clients Visual Studio Code
  • 9. Create a Web Site with Visual Studio Note! Make sure the Source Code should be stored in your Team Services Project
  • 10. Create a Web Site with Visual Studio Your Start Page needs to be named “index.htm”
  • 11. Visual Studio HTML Editor Note! Due to the brand new HTML editor in Visual Studio, static HTML files no longer has the Design|Split|Source options enabled by default. • That’s because the new HTML editor is the default editor for all HTML files with the exception of ASP.NET Web Forms files (.aspx, .ascx, .master). • However, it is only the Web Forms editor that has support for the designer and split view. • So all we have to do is to map our .html or .htm files to use the Web Forms editor instead of the new HTML editor. • Simply right-click any .html/.htm file in Solution Explorer and select Open With…
  • 12. HTML Editor in Visual Studio
  • 13. Simple “WYSIWYG” Editor + Preview Code Editor Create your HTML Code here!
  • 14. Simple HTML Page Example 14 <!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> HTML Code Web Browser:
  • 15. Test in Browser Hit F5 to Run It Or Select “View in Browser” Note! All documents should be PDF Files!!
  • 16. Hyper- links: <!DOCTYPE html> <html> <body> <h1>This is a heading</h1> <a href="http://www.google.com">This is a link to Google</a> </body> </html> <!DOCTYPE html> <html> <body> <h1>This is a heading</h1> <img src=“myimage.jpg" alt=”blabla" width="104" height="142"> </body> </html> Images:
  • 17. HTML Tags Overview <a href="http://www.google.com">This is a link to Google</a> <b>This is my Text</b> Hyperlink: Bold Text: <h1>This is my Header</h1> Headers: This is my Text <br> This is also my Text Line Break: <p>My first paragraph.</p> Paragraph: <img src=“myimage.jpg" alt=”blabla" width="104" height="142"> Image: <h2>This is my Header</h2> <h3>This is my Header</h3> <title>This is my Title</title> Title: <!-- Write your comments here --> Comments:
  • 18. HTML Tags - Table <table width="200" border="1"> <tr> <td>a</td> <td>b</td> <td>c</td> <td>d</td> </tr> <tr> <td>e</td> <td>f</td> <td>g</td> <td>h</td> </tr> <tr> <td>i</td> <td>j</td> <td>k</td> <td>l</td> </tr> </table>
  • 19. ... <head ... <link rel="stylesheet" type="text/css" href="stylesheet.css" /> .. </head> ... CSS (Cascading Style Sheet) CSS is a stylesheet language that describes the presentation of an HTML page. body { background-color: #d0e4fe; } h1 { color: orange; text-align: center; } p { font-family: "Times New Roman"; font-size: 20px; } stylesheet.css: myfile.htm:
  • 20. HTML Good Resource for creating Web Pages with HTML, CSS, JavaScript, SQL, etc. http://www.w3schools.com
  • 21. HTML & CSS Step by Step Example Hans-Petter Halvorsen http://www.halvorsen.blog
  • 22. We are going to make a Web Page like this:
  • 23. Create a proper Folder structure, e.g.: My Web Site /css ... /documents ... /html ... /images ... /js ... index.html You should always think structure before you start coding
  • 24. Start with an empty HTML Page
  • 27. Create Hyperlinks Hyperlinks can be other web pages, documents, etc.
  • 28. Learn more HTML • https://www.w3schools.com/html
  • 29. CSS • CSS is a language that describes the style of an HTML document. • CSS describes how HTML elements should be displayed. • Examples: Font Size, Colors, Alignment, etc.
  • 30. Inline CSS • The CSS in part of the HTML file <style> .. </style>
  • 31. External CSS File Here you see a simple example:
  • 34. Explore! Find Colors, Font Sizes, etc. that fits your system
  • 35. Learn more CSS • https://www.w3schools.com/css/
  • 36. Bootstrap http://www.w3schools.com/bootstrap/ Bootstrap is the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first web sites. Bootstrap is completely free to download and use!
  • 39. Explore! With CSS and Bootstrap you have endless possibilities
  • 41. Web Server • You need to deploy your files to the Web Server • Typically you use a FTP program – You need to know the Host Name, and a User Name and a Password
  • 42. Web PCs with Web Browsers Clients Server-side Internet HTML HTML CSS
  • 43. FTP Software • WinSCP – https://winscp.net • FileZilla – https://filezilla-project.org
  • 44. Hans-Petter Halvorsen University of Southeast Norway www.usn.no E-mail: [email protected] Web: https://www.halvorsen.blog