SlideShare a Scribd company logo
2
Most read
5
Most read
13
Most read
HTML and CSS
for Absolute Beginners
Presenter: Abdul Basith
IT Trainer, King Saud University
December, 2022 Presenter: Abdul Basith 1
Learning Outcome of this Course
• In this course, we'll create a simple webpage using valid HTML and
CSS code
• By the end of this course, you'll be able to use HTML and CSS with
confidence, following best practices every step of the way!
December, 2022 Presenter: Abdul Basith 2
Week 1: Lecture 1
Basic of HTML
December, 2022 Presenter: Abdul Basith 3
Course Content
• Introduction to HTML
• History of HTML
• Software Tools
• Understanding HTML Syntax
• Work on HTML Code
December, 2022 Presenter: Abdul Basith 4
Introduction to HTML
• HTML is a language which is used to create document on the World Wide Web.
• HTML stands for Hyper Text Markup Language
• HTML is not a programming language, it is a markup language which read and
interpreted by your browser
• A markup language is a set of markup tags
• HTML uses markup tags (HTML Tags) to describe web pages that run on browser
December, 2022 Presenter: Abdul Basith 5
History of HTML
• HTML consists of lines of text with embedded markup tags that specify Web-page
formatting and links to other pages is Invented by Tim Berners-Lee at CERN in
1989
• In 1993, students, faculty, and staff of the National Center for Supercomputing
Applications (NCSA) developed the first Web server and graphical browser -
Mosaic Web browser(Later become Netscape) and Web server
• Current version is HTML 5 and its the Successor of HTML 4.01 and XHTML 1.1
December, 2022 Presenter: Abdul Basith 6
Software Tools
Discover what software you need to write HTML and CSS code, and where to download it for free!
Let's get started!
• Download a free web browser anyone:
1. Chrome (Mac/PC)
2. Firefox (Mac/PC)
3. Internet Explorer (PC)
4. Opera (Mac/PC)
5. Safari (Mac/PC)
• Download a free text editor:
1. Notepad++ or Sublime Text(Win)
2. TextWrangler (Mac)
December, 2022 Presenter: Abdul Basith 7
Understanding HTML Syntax
HOW TO CREATE AN basic HTML DOCUMENT
<!DOCTYPE html>
<html>
<head>
<title>King Saud University</title>
</head>
<body>
Welcome to HTML and CSS language
</body>
</html>
Note: All tags are in lowercase
All tags must be closed - Empty tags and Paired tags
December, 2022 Presenter: Abdul Basith 8
Understanding HTML Syntax
December, 2022 Presenter: Abdul Basith 9
Understanding HTML Syntax
Element Importance Description
<html></html> Essential Surrounds the entire page
<head></head> Optional Contains header information (metadata, CSS styles,
JavaScript code)
<title></title> Optional Holds the page title normally displayed in the title
bar and used in search results
<body></body> Essential Contains the main body text. All parts of the page
normally visible are in the body
<!DOCTYPE html> Optional tells browser how to interpret the markup tags
December, 2022 Presenter: Abdul Basith 10
PAGE STRUCTURE ELEMENTS
The following elements are part of every web page.
Work on HTML Code
Follow the steps to create and view in browser
Step-1: Open text Editor
Step-2: Enter the following lines of code
<!DOCTYPE html>
<html>
<head>
<title>King Saud University</title>
</head>
<body>
Welcome to HTML and CSS language
</body>
</html>
December, 2022 Presenter: Abdul Basith 11
Work on HTML Code
Step-3: Save the file as myfirstpage.html (go to File-Save As give File
name: myfirstpage.html-choose save as type: All Files-click save)
Step-4: Viewing document in web browser (open any browser-click on
File-Open-Browse-select the file myfirstpage.html-click open-click ok
December, 2022 Presenter: Abdul Basith 12
Work on HTML Code
Example 1: Use attributes of body and font color
<html>
<head>
<title>Hello World</title>
</head>
<body bgcolor = “#000000”>
<font color = “#ffffff”>
<H1>Hello World</H1>
</font>
</body>
</html>
The HTML bgcolor attribute is used to set the background color of an HTML element:
• The Atrribute value can be anyone of the following:
• colorname: The background color is set by using the color name. For example “yellow”
• hexnumber: The background color is set using the color hex code. For example “#0000ff”.
• rgbnumber: The background color is set by using the RGB code. For example: “RGB(0, 153, 0)”.
December, 2022 Presenter: Abdul Basith 13
Work on HTML Code
Example 2: Use Text Formatting
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
<big><b>Hello World!</b></big>
</body>
</html>
December, 2022 Presenter: Abdul Basith 14
Work on HTML Code
Example 3: Use Blank Spaces/ Whitespace
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
test1&nbsp;|&nbsp;test2&nbsp;&nbsp;|&nbsp;&nbsp;test3
<pre>test1 | test2| test3</pre>
</body>
</html>
December, 2022 Presenter: Abdul Basith 15
Work on HTML Code
Example 4: Use del and ins tags
<html>
<head>
<title>Deleted Text Example</title>
</head>
<body>
<p>I want to drink <del>cola</del> <ins>wine</ins></p>
</body>
</html>
December, 2022 Presenter: Abdul Basith 16
Work on HTML Code
Element Meaning Purpose
<b> Bold Highlight important information
<strong> Strong Similarly to bold, to highlight key text
<i> Italic To denote text
<em> Emphasised Text Usually used as image captions
<mark> Marked Text Highlight the background of the text
<small> Small Text To shrink the text
<strike> Striked Out Text To place a horizontal line across the text
<u> Underlined Text Used for links or text highlights
<ins> Inserted Text Displayed with an underline to show an inserted text
<sub> Subscript Text Typographical stylistic choice
<sup> Superscript Text Another typographical presentation style
December, 2022 Presenter: Abdul Basith 17
Other Key Elements
These tags must be opened and closed around the text
Work on HTML Code
Use pervious slide elements and do practice now
December, 2022 Presenter: Abdul Basith 18
Conclusion
• Understand HTML Language
• Understand Software Tools
• Learn How to create document and run
December, 2022 Presenter: Abdul Basith 19

More Related Content

Similar to HTML and CSS Week 1 Lecture 1.pptx (20)

PPT
HTML NOTES.ppt BASIC HTML PROGRAMING NOTES
AAFREEN SHAIKH
 
PPTX
Web Designing Lecture 2 in Software.pptx
abpassion478
 
PPT
Web Development
Russell Sergei Gaerlan
 
PDF
Web page design in 7 days
Satish Varma
 
PPTX
Unit_II.pptx thtrhththtrhjjuyujymkfhtyhkmythkymkykymnkmyjnmyjmnykn
PriyanshuGarg59
 
PPTX
IS221__Week1_Lecture chapter one, Web design.pptx
kumaranikethnavish
 
PPSX
Html introduction
Dalia Elbadry
 
PPTX
Introduction to HTML Communication Skills
GraceChokoli1
 
PPTX
Web design - HTML (Hypertext Markup Language) introduction
Mustafa Kamel Mohammadi
 
PPT
Basics-of-HTML Basics-of-HTML Basics-of-HTML
Bala Anand
 
PDF
Girl Develop It Cincinnati: Intro to HTML/CSS Class 1
Erin M. Kidwell
 
PPT
HTML
CONNECTINGTO
 
PPT
html tags
YogeshDhamke2
 
PDF
Module 1 - Introduction to HTML.pdf
Humphrey Humphrey
 
PDF
Html & Html5 from scratch
Ahmad Al-ammar
 
PPTX
How to learn HTML in 10 Days
Manoj kumar Deswal
 
PPTX
HTML Presentation
Nothinguse193
 
PPTX
presentation_html_ppt_1534512076_351187.pptx
ssuser8001a61
 
HTML NOTES.ppt BASIC HTML PROGRAMING NOTES
AAFREEN SHAIKH
 
Web Designing Lecture 2 in Software.pptx
abpassion478
 
Web Development
Russell Sergei Gaerlan
 
Web page design in 7 days
Satish Varma
 
Unit_II.pptx thtrhththtrhjjuyujymkfhtyhkmythkymkykymnkmyjnmyjmnykn
PriyanshuGarg59
 
IS221__Week1_Lecture chapter one, Web design.pptx
kumaranikethnavish
 
Html introduction
Dalia Elbadry
 
Introduction to HTML Communication Skills
GraceChokoli1
 
Web design - HTML (Hypertext Markup Language) introduction
Mustafa Kamel Mohammadi
 
Basics-of-HTML Basics-of-HTML Basics-of-HTML
Bala Anand
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 1
Erin M. Kidwell
 
html tags
YogeshDhamke2
 
Module 1 - Introduction to HTML.pdf
Humphrey Humphrey
 
Html & Html5 from scratch
Ahmad Al-ammar
 
How to learn HTML in 10 Days
Manoj kumar Deswal
 
HTML Presentation
Nothinguse193
 
presentation_html_ppt_1534512076_351187.pptx
ssuser8001a61
 

Recently uploaded (20)

PPT
Agilent Optoelectronic Solutions for Mobile Application
andreashenniger2
 
PPTX
L1A Season 1 Guide made by A hegy Eng Grammar fixed
toszolder91
 
PPTX
Optimization_Techniques_ML_Presentation.pptx
farispalayi
 
PPTX
L1A Season 1 ENGLISH made by A hegy fixed
toszolder91
 
PDF
The-Hidden-Dangers-of-Skipping-Penetration-Testing.pdf.pdf
naksh4thra
 
PPTX
法国巴黎第二大学本科毕业证{Paris 2学费发票Paris 2成绩单}办理方法
Taqyea
 
PPTX
Lec15_Mutability Immutability-converted.pptx
khanjahanzaib1
 
DOCX
Custom vs. Off-the-Shelf Banking Software
KristenCarter35
 
PPTX
Orchestrating things in Angular application
Peter Abraham
 
PDF
Apple_Environmental_Progress_Report_2025.pdf
yiukwong
 
PPTX
原版西班牙莱昂大学毕业证(León毕业证书)如何办理
Taqyea
 
PPTX
Presentation3gsgsgsgsdfgadgsfgfgsfgagsfgsfgzfdgsdgs.pptx
SUB03
 
PPTX
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 
PPT
introduction to networking with basics coverage
RamananMuthukrishnan
 
PPT
introductio to computers by arthur janry
RamananMuthukrishnan
 
PDF
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
PPTX
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 
PPTX
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
PPTX
PM200.pptxghjgfhjghjghjghjghjghjghjghjghjghj
breadpaan921
 
PPTX
英国假毕业证诺森比亚大学成绩单GPA修改UNN学生卡网上可查学历成绩单
Taqyea
 
Agilent Optoelectronic Solutions for Mobile Application
andreashenniger2
 
L1A Season 1 Guide made by A hegy Eng Grammar fixed
toszolder91
 
Optimization_Techniques_ML_Presentation.pptx
farispalayi
 
L1A Season 1 ENGLISH made by A hegy fixed
toszolder91
 
The-Hidden-Dangers-of-Skipping-Penetration-Testing.pdf.pdf
naksh4thra
 
法国巴黎第二大学本科毕业证{Paris 2学费发票Paris 2成绩单}办理方法
Taqyea
 
Lec15_Mutability Immutability-converted.pptx
khanjahanzaib1
 
Custom vs. Off-the-Shelf Banking Software
KristenCarter35
 
Orchestrating things in Angular application
Peter Abraham
 
Apple_Environmental_Progress_Report_2025.pdf
yiukwong
 
原版西班牙莱昂大学毕业证(León毕业证书)如何办理
Taqyea
 
Presentation3gsgsgsgsdfgadgsfgfgsfgagsfgsfgzfdgsdgs.pptx
SUB03
 
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 
introduction to networking with basics coverage
RamananMuthukrishnan
 
introductio to computers by arthur janry
RamananMuthukrishnan
 
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
PM200.pptxghjgfhjghjghjghjghjghjghjghjghjghj
breadpaan921
 
英国假毕业证诺森比亚大学成绩单GPA修改UNN学生卡网上可查学历成绩单
Taqyea
 
Ad

HTML and CSS Week 1 Lecture 1.pptx

  • 1. HTML and CSS for Absolute Beginners Presenter: Abdul Basith IT Trainer, King Saud University December, 2022 Presenter: Abdul Basith 1
  • 2. Learning Outcome of this Course • In this course, we'll create a simple webpage using valid HTML and CSS code • By the end of this course, you'll be able to use HTML and CSS with confidence, following best practices every step of the way! December, 2022 Presenter: Abdul Basith 2
  • 3. Week 1: Lecture 1 Basic of HTML December, 2022 Presenter: Abdul Basith 3
  • 4. Course Content • Introduction to HTML • History of HTML • Software Tools • Understanding HTML Syntax • Work on HTML Code December, 2022 Presenter: Abdul Basith 4
  • 5. Introduction to HTML • HTML is a language which is used to create document on the World Wide Web. • HTML stands for Hyper Text Markup Language • HTML is not a programming language, it is a markup language which read and interpreted by your browser • A markup language is a set of markup tags • HTML uses markup tags (HTML Tags) to describe web pages that run on browser December, 2022 Presenter: Abdul Basith 5
  • 6. History of HTML • HTML consists of lines of text with embedded markup tags that specify Web-page formatting and links to other pages is Invented by Tim Berners-Lee at CERN in 1989 • In 1993, students, faculty, and staff of the National Center for Supercomputing Applications (NCSA) developed the first Web server and graphical browser - Mosaic Web browser(Later become Netscape) and Web server • Current version is HTML 5 and its the Successor of HTML 4.01 and XHTML 1.1 December, 2022 Presenter: Abdul Basith 6
  • 7. Software Tools Discover what software you need to write HTML and CSS code, and where to download it for free! Let's get started! • Download a free web browser anyone: 1. Chrome (Mac/PC) 2. Firefox (Mac/PC) 3. Internet Explorer (PC) 4. Opera (Mac/PC) 5. Safari (Mac/PC) • Download a free text editor: 1. Notepad++ or Sublime Text(Win) 2. TextWrangler (Mac) December, 2022 Presenter: Abdul Basith 7
  • 8. Understanding HTML Syntax HOW TO CREATE AN basic HTML DOCUMENT <!DOCTYPE html> <html> <head> <title>King Saud University</title> </head> <body> Welcome to HTML and CSS language </body> </html> Note: All tags are in lowercase All tags must be closed - Empty tags and Paired tags December, 2022 Presenter: Abdul Basith 8
  • 9. Understanding HTML Syntax December, 2022 Presenter: Abdul Basith 9
  • 10. Understanding HTML Syntax Element Importance Description <html></html> Essential Surrounds the entire page <head></head> Optional Contains header information (metadata, CSS styles, JavaScript code) <title></title> Optional Holds the page title normally displayed in the title bar and used in search results <body></body> Essential Contains the main body text. All parts of the page normally visible are in the body <!DOCTYPE html> Optional tells browser how to interpret the markup tags December, 2022 Presenter: Abdul Basith 10 PAGE STRUCTURE ELEMENTS The following elements are part of every web page.
  • 11. Work on HTML Code Follow the steps to create and view in browser Step-1: Open text Editor Step-2: Enter the following lines of code <!DOCTYPE html> <html> <head> <title>King Saud University</title> </head> <body> Welcome to HTML and CSS language </body> </html> December, 2022 Presenter: Abdul Basith 11
  • 12. Work on HTML Code Step-3: Save the file as myfirstpage.html (go to File-Save As give File name: myfirstpage.html-choose save as type: All Files-click save) Step-4: Viewing document in web browser (open any browser-click on File-Open-Browse-select the file myfirstpage.html-click open-click ok December, 2022 Presenter: Abdul Basith 12
  • 13. Work on HTML Code Example 1: Use attributes of body and font color <html> <head> <title>Hello World</title> </head> <body bgcolor = “#000000”> <font color = “#ffffff”> <H1>Hello World</H1> </font> </body> </html> The HTML bgcolor attribute is used to set the background color of an HTML element: • The Atrribute value can be anyone of the following: • colorname: The background color is set by using the color name. For example “yellow” • hexnumber: The background color is set using the color hex code. For example “#0000ff”. • rgbnumber: The background color is set by using the RGB code. For example: “RGB(0, 153, 0)”. December, 2022 Presenter: Abdul Basith 13
  • 14. Work on HTML Code Example 2: Use Text Formatting <html> <head> <title>My First Web Page</title> </head> <body> <big><b>Hello World!</b></big> </body> </html> December, 2022 Presenter: Abdul Basith 14
  • 15. Work on HTML Code Example 3: Use Blank Spaces/ Whitespace <html> <head> <title>My First Web Page</title> </head> <body> test1&nbsp;|&nbsp;test2&nbsp;&nbsp;|&nbsp;&nbsp;test3 <pre>test1 | test2| test3</pre> </body> </html> December, 2022 Presenter: Abdul Basith 15
  • 16. Work on HTML Code Example 4: Use del and ins tags <html> <head> <title>Deleted Text Example</title> </head> <body> <p>I want to drink <del>cola</del> <ins>wine</ins></p> </body> </html> December, 2022 Presenter: Abdul Basith 16
  • 17. Work on HTML Code Element Meaning Purpose <b> Bold Highlight important information <strong> Strong Similarly to bold, to highlight key text <i> Italic To denote text <em> Emphasised Text Usually used as image captions <mark> Marked Text Highlight the background of the text <small> Small Text To shrink the text <strike> Striked Out Text To place a horizontal line across the text <u> Underlined Text Used for links or text highlights <ins> Inserted Text Displayed with an underline to show an inserted text <sub> Subscript Text Typographical stylistic choice <sup> Superscript Text Another typographical presentation style December, 2022 Presenter: Abdul Basith 17 Other Key Elements These tags must be opened and closed around the text
  • 18. Work on HTML Code Use pervious slide elements and do practice now December, 2022 Presenter: Abdul Basith 18
  • 19. Conclusion • Understand HTML Language • Understand Software Tools • Learn How to create document and run December, 2022 Presenter: Abdul Basith 19