SlideShare a Scribd company logo
INTRODUCTION TO
HTML
Dr.Ranjitha M
Kristu Jayanti college(Autonomous)
Bangalore
What is HTML?
• HTML, otherwise known as HyperText Markup Language,
is the language used to create Web pages
• Using HTML, you can create a Web page with text,
graphics, sound, and video
3
Definitions
 W W W – World Wide Web.
 HTML – HyperText Markup Language – The Language
of Web Pages on the World Wide Web.
HTML is a text formatting language.
 URL – Uniform Resource Locator.
 Browser – A software program which is used to show web
pages.
4
“Normal text” surrounded by
bracketed tags that tell browsers
how to display web pages
Pages end with “.htm” or “.html”
HTML Editor – A word processor
that has been specialized to make
the writing of HTML documents
more effortless.
5
Tags
Codes enclosed in brackets
Usually paired
<TITLE>My Web Page</TITLE>
Not case sensitive
<TITLE> = <title> = <TITLE>
6
Choosing Text Editor
 There are many different programs that you can use to
create web documents.
 HTML Editors enable users to create documents quickly
and easily by pushing a few buttons. Instead of entering
all of the HTML codes by hand.
 These programs will generate the HTML Source Code for
you.
7
Choosing Text Editor
 HTML Editors are excellent tools for experienced web
developers; however; it is important that you learn and
understand the HTML language so that you can edit code
and fix “bugs” in your pages.
 For this Course, we will focus on using the standard
Microsoft Windows text editors, NotePad.
8
Starting NotePad
NotePad is the standard text editor that comes with the
microsoft windows operating system. To start NotePad
in windows follow the steps bellow:
 Click on the “Start” button located on your Windows
task bar.
 Click on “Programs” and then click on the directory
menu labeled “Accessories”.
 Locate the shortcut “NotePad” and click the shortcut
once.
9
HTML Page Creation & Editing
In this chapter you will learn to create HTML
pages with a standard text editor.
Objectives
Upon completing this section, you should be able to
1. Choose a Text Editor.
2. Create a Basic Starting Document.
3. Understand and set Document Properties.
4. View Your Results in a Browser.
10
Creating a Basic Starting Document
<HTML>
<HEAD>
<TITLE>Kristu Jayanti College </TITLE>
</HEAD>
<BODY>
This is what is displayed.
</BODY>
</HTML>
Tags
• The essence of HTML programming is tags
• A tag is a keyword enclosed by angle brackets ( Example:
<I> )
• There are opening and closing tags for many but not all
tags; The affected text is between the two tags
More Tags...
• The opening and closing tags use the same command
except the closing tag contains and additional forward
slash /
• For example, the expression <B> Warning </B> would
cause the word „Warning‟ to appear in bold face on a Web
page
Nested Tags
• Whenever you have HTML tags within other HTML tags,
you must close the nearest tag first
• Example:
<H1> <I> The Nation </I> </H1>
Structure of a Web Page
• All Web pages share a
common structure
• All Web pages should
contain a pair of
<HTML>, <HEAD>,
<TITLE>, and
<BODY> tags
<HTML>
<HEAD>
<TITLE> Example </TITLE>
</HEAD>
<BODY>
This is where you would include
the text and images on your Web
page.
</BODY>
</HTML>
15
Previewing Your Work
 Once you have created your basic starting
document and set your document properties it
is a good idea to save your file.
 To save a file, in NotePad, follow these steps:
1. Locate and click on the menu called “File”.
2. Select the option under File Menu labeled
“Save As”.
3. In the “File Name” text box, type in the entire
name of your file (including the extension
name .html).
16
Edit, Save and View Cycle
 To preview Your Work, open a web browser and do the
following:
1. Click on the menu labeled “File”.
2. Locate the menu option, “Open”.
17
Edit, Save and View Cycle
3. In the “Open” dialog box, click on the
“Browse” button and locate your web
document.
4. Click “OK” once you have selected your file.
 The web browser will load the same
document but with the new revisions. This
process is the Edit, Save and View Cycle.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
• The <!DOCTYPE html> declaration defines that this
document is an HTML5 document
• The <html> element is the root element of an HTML page
• The <head> element contains meta information about the
HTML page
• The <title> element specifies a title for the HTML page
(which is shown in the browser's title bar or in the page's
tab)
• The <body> element defines the document's body, and is
a container for all the visible contents, such as headings,
paragraphs, images, hyperlinks, tables, lists, etc.
• The <h1> element defines a large heading
• The <p> element defines a paragraph
What is an HTML Element?
• An HTML element is defined by a start tag, some content,
and an end tag:
• <tagname> Content goes here...</tagname>
• The HTML element is everything from the start tag to the
end tag:
• <h1>My First Heading</h1>
• <p>My first paragraph.</p>
Start tag Element content End tag
<h1> My First Heading </h1>
<p> My first paragraph. </p>
<br> none none
Steps
Step 1: Open Notepad (PC)
• Windows 8 or later:
• Open the Start Screen (the window symbol at the bottom
left on your screen). Type Notepad.
• Windows 7 or earlier:
• Open Start > Programs > Accessories > Notepad
• Step 1: Open TextEdit (Mac)
• Open Finder > Applications > TextEdit
• Also change some preferences to get the application to
save files correctly.
• Then under "Open and Save", check the box that says
"Display HTML files as HTML code instead of formatted
text".
• Then open a new document to place the code
Steps
Step 2: Write Some HTML
• Write or copy the following HTML code into Notepad:
• <!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Example 2-Heading
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Paragraph
<!DOCTYPE html>
<html>
<body>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
To do-Class work
• Title- My first HTML Page
• Heading – Resume
• Contents
• Name
• Register Number
• Class
• Course
• College with Address
• End of Lecture

More Related Content

What's hot (20)

PPTX
Introduction to HTML+CSS+Javascript.pptx
KADAMBARIPUROHIT
 
PDF
File system
Mohd Arif
 
PPT
Shell Scripting
Gaurav Shinde
 
PPSX
Php and MySQL
Tiji Thomas
 
PPTX
Inner join and outer join
Nargis Ehsan
 
PPTX
Web html table tags
Kainat Ilyas
 
PDF
SQL Queries - DDL Commands
ShubhamBauddh
 
PPT
Span and Div tags in HTML
Biswadip Goswami
 
PPTX
DTD
Kamal Acharya
 
PPTX
Html5
Shiva RamDam
 
PDF
Html / CSS Presentation
Shawn Calvert
 
PPTX
Dynamic HTML (DHTML)
Himanshu Kumar
 
PPTX
HTML (Web) basics for a beginner
Jayapal Reddy Nimmakayala
 
PDF
JavaScript - Chapter 12 - Document Object Model
WebStackAcademy
 
PPTX
List in Python
Sharath Ankrajegowda
 
PPT
CSS Basics
WordPress Memphis
 
PPTX
Normal forms
Samuel Igbanogu
 
PPT
Xml Presentation-3
Sudharsan S
 
PPTX
Joins And Its Types
Wings Interactive
 
Introduction to HTML+CSS+Javascript.pptx
KADAMBARIPUROHIT
 
File system
Mohd Arif
 
Shell Scripting
Gaurav Shinde
 
Php and MySQL
Tiji Thomas
 
Inner join and outer join
Nargis Ehsan
 
Web html table tags
Kainat Ilyas
 
SQL Queries - DDL Commands
ShubhamBauddh
 
Span and Div tags in HTML
Biswadip Goswami
 
Html5
Shiva RamDam
 
Html / CSS Presentation
Shawn Calvert
 
Dynamic HTML (DHTML)
Himanshu Kumar
 
HTML (Web) basics for a beginner
Jayapal Reddy Nimmakayala
 
JavaScript - Chapter 12 - Document Object Model
WebStackAcademy
 
List in Python
Sharath Ankrajegowda
 
CSS Basics
WordPress Memphis
 
Normal forms
Samuel Igbanogu
 
Xml Presentation-3
Sudharsan S
 
Joins And Its Types
Wings Interactive
 

Similar to Html introduction (20)

PPTX
Hyper text markup language course details description
joyabisha1
 
PPTX
WEB TECHNOLOGY SLIDE 2 coe35mgfdggdh.pptx
simukondasankananji8
 
PDF
Html Tutorial
DenMas Hengky
 
PPTX
TLE_8/PowerpointPresentation/Project_8lo
ChrisTian609473
 
PPTX
HTML5 Topic 1
Juvywen
 
PPTX
Introduction-to-HTML_introduction content for learning
Bala Anand
 
PPTX
HTML 5 Tutorial
Tahasin Chowdhury
 
PPTX
HTML for Education
Notre Dame of Midsayap College
 
PDF
Html beginner
wihrbt
 
PDF
Html beginners tutorial
nikhilsh66131
 
PPTX
How to Create a Simple Webpage Using Notepad.pptx
minhanaa21
 
PDF
Module 1 - Introduction to HTML.pdf
Humphrey Humphrey
 
DOCX
HTML (Hyper Text Markup Language) Project
Ankit Gupta
 
PPT
902350 html jar
siva thirumal
 
PDF
Introduction to html (912 kb)
IMRAN KHAN
 
DOCX
Web Designing.docx
AtulTiwari578750
 
PPTX
Appdev appdev appdev app devAPPDEV 1.2.pptx
ArjayBalberan1
 
PPT
html
tumetr1
 
DOCX
HTML Notes And Some Attributes
HIFZUR RAHMAN
 
Hyper text markup language course details description
joyabisha1
 
WEB TECHNOLOGY SLIDE 2 coe35mgfdggdh.pptx
simukondasankananji8
 
Html Tutorial
DenMas Hengky
 
TLE_8/PowerpointPresentation/Project_8lo
ChrisTian609473
 
HTML5 Topic 1
Juvywen
 
Introduction-to-HTML_introduction content for learning
Bala Anand
 
HTML 5 Tutorial
Tahasin Chowdhury
 
HTML for Education
Notre Dame of Midsayap College
 
Html beginner
wihrbt
 
Html beginners tutorial
nikhilsh66131
 
How to Create a Simple Webpage Using Notepad.pptx
minhanaa21
 
Module 1 - Introduction to HTML.pdf
Humphrey Humphrey
 
HTML (Hyper Text Markup Language) Project
Ankit Gupta
 
902350 html jar
siva thirumal
 
Introduction to html (912 kb)
IMRAN KHAN
 
Web Designing.docx
AtulTiwari578750
 
Appdev appdev appdev app devAPPDEV 1.2.pptx
ArjayBalberan1
 
html
tumetr1
 
HTML Notes And Some Attributes
HIFZUR RAHMAN
 
Ad

More from RanjithaM32 (14)

PPTX
Gives an overview of intelligent storage system
RanjithaM32
 
PPT
svm.ppt
RanjithaM32
 
PPTX
Various types of File Operations in Java
RanjithaM32
 
PPTX
Unit 4 Ethics in health research.pptx
RanjithaM32
 
PPTX
Unit 1 NoSQL commands.pptx
RanjithaM32
 
PPTX
Java Multithreading.pptx
RanjithaM32
 
PPT
Java Exception.ppt
RanjithaM32
 
PPTX
ARtificial Intelligence Knowledge Representation.pptx
RanjithaM32
 
PPTX
Lisp.pptx
RanjithaM32
 
PPT
Java interfaces
RanjithaM32
 
PPT
Threads
RanjithaM32
 
PDF
Types of learning
RanjithaM32
 
PDF
Ml introduction
RanjithaM32
 
PPTX
Knowledge base system
RanjithaM32
 
Gives an overview of intelligent storage system
RanjithaM32
 
svm.ppt
RanjithaM32
 
Various types of File Operations in Java
RanjithaM32
 
Unit 4 Ethics in health research.pptx
RanjithaM32
 
Unit 1 NoSQL commands.pptx
RanjithaM32
 
Java Multithreading.pptx
RanjithaM32
 
Java Exception.ppt
RanjithaM32
 
ARtificial Intelligence Knowledge Representation.pptx
RanjithaM32
 
Lisp.pptx
RanjithaM32
 
Java interfaces
RanjithaM32
 
Threads
RanjithaM32
 
Types of learning
RanjithaM32
 
Ml introduction
RanjithaM32
 
Knowledge base system
RanjithaM32
 
Ad

Recently uploaded (20)

PDF
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
PPTX
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PDF
Zilliz Cloud Demo for performance and scale
Zilliz
 
PDF
monopile foundation seminar topic for civil engineering students
Ahina5
 
PPTX
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
PPTX
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
PDF
6th International Conference on Machine Learning Techniques and Data Science ...
ijistjournal
 
PDF
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
PPTX
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PPTX
Server Side Web Development Unit 1 of Nodejs.pptx
sneha852132
 
PPTX
Introduction to Neural Networks and Perceptron Learning Algorithm.pptx
Kayalvizhi A
 
PDF
Water Design_Manual_2005. KENYA FOR WASTER SUPPLY AND SEWERAGE
DancanNgutuku
 
PPTX
Snet+Pro+Service+Software_SNET+Pro+2+Instructions.pptx
jenilsatikuvar1
 
PPTX
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
Zilliz Cloud Demo for performance and scale
Zilliz
 
monopile foundation seminar topic for civil engineering students
Ahina5
 
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
6th International Conference on Machine Learning Techniques and Data Science ...
ijistjournal
 
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
Server Side Web Development Unit 1 of Nodejs.pptx
sneha852132
 
Introduction to Neural Networks and Perceptron Learning Algorithm.pptx
Kayalvizhi A
 
Water Design_Manual_2005. KENYA FOR WASTER SUPPLY AND SEWERAGE
DancanNgutuku
 
Snet+Pro+Service+Software_SNET+Pro+2+Instructions.pptx
jenilsatikuvar1
 
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
Design Thinking basics for Engineers.pdf
CMR University
 

Html introduction

  • 1. INTRODUCTION TO HTML Dr.Ranjitha M Kristu Jayanti college(Autonomous) Bangalore
  • 2. What is HTML? • HTML, otherwise known as HyperText Markup Language, is the language used to create Web pages • Using HTML, you can create a Web page with text, graphics, sound, and video
  • 3. 3 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web. HTML is a text formatting language.  URL – Uniform Resource Locator.  Browser – A software program which is used to show web pages.
  • 4. 4 “Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm” or “.html” HTML Editor – A word processor that has been specialized to make the writing of HTML documents more effortless.
  • 5. 5 Tags Codes enclosed in brackets Usually paired <TITLE>My Web Page</TITLE> Not case sensitive <TITLE> = <title> = <TITLE>
  • 6. 6 Choosing Text Editor  There are many different programs that you can use to create web documents.  HTML Editors enable users to create documents quickly and easily by pushing a few buttons. Instead of entering all of the HTML codes by hand.  These programs will generate the HTML Source Code for you.
  • 7. 7 Choosing Text Editor  HTML Editors are excellent tools for experienced web developers; however; it is important that you learn and understand the HTML language so that you can edit code and fix “bugs” in your pages.  For this Course, we will focus on using the standard Microsoft Windows text editors, NotePad.
  • 8. 8 Starting NotePad NotePad is the standard text editor that comes with the microsoft windows operating system. To start NotePad in windows follow the steps bellow:  Click on the “Start” button located on your Windows task bar.  Click on “Programs” and then click on the directory menu labeled “Accessories”.  Locate the shortcut “NotePad” and click the shortcut once.
  • 9. 9 HTML Page Creation & Editing In this chapter you will learn to create HTML pages with a standard text editor. Objectives Upon completing this section, you should be able to 1. Choose a Text Editor. 2. Create a Basic Starting Document. 3. Understand and set Document Properties. 4. View Your Results in a Browser.
  • 10. 10 Creating a Basic Starting Document <HTML> <HEAD> <TITLE>Kristu Jayanti College </TITLE> </HEAD> <BODY> This is what is displayed. </BODY> </HTML>
  • 11. Tags • The essence of HTML programming is tags • A tag is a keyword enclosed by angle brackets ( Example: <I> ) • There are opening and closing tags for many but not all tags; The affected text is between the two tags
  • 12. More Tags... • The opening and closing tags use the same command except the closing tag contains and additional forward slash / • For example, the expression <B> Warning </B> would cause the word „Warning‟ to appear in bold face on a Web page
  • 13. Nested Tags • Whenever you have HTML tags within other HTML tags, you must close the nearest tag first • Example: <H1> <I> The Nation </I> </H1>
  • 14. Structure of a Web Page • All Web pages share a common structure • All Web pages should contain a pair of <HTML>, <HEAD>, <TITLE>, and <BODY> tags <HTML> <HEAD> <TITLE> Example </TITLE> </HEAD> <BODY> This is where you would include the text and images on your Web page. </BODY> </HTML>
  • 15. 15 Previewing Your Work  Once you have created your basic starting document and set your document properties it is a good idea to save your file.  To save a file, in NotePad, follow these steps: 1. Locate and click on the menu called “File”. 2. Select the option under File Menu labeled “Save As”. 3. In the “File Name” text box, type in the entire name of your file (including the extension name .html).
  • 16. 16 Edit, Save and View Cycle  To preview Your Work, open a web browser and do the following: 1. Click on the menu labeled “File”. 2. Locate the menu option, “Open”.
  • 17. 17 Edit, Save and View Cycle 3. In the “Open” dialog box, click on the “Browse” button and locate your web document. 4. Click “OK” once you have selected your file.  The web browser will load the same document but with the new revisions. This process is the Edit, Save and View Cycle.
  • 18. <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
  • 19. • The <!DOCTYPE html> declaration defines that this document is an HTML5 document • The <html> element is the root element of an HTML page • The <head> element contains meta information about the HTML page • The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in the page's tab) • The <body> element defines the document's body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. • The <h1> element defines a large heading • The <p> element defines a paragraph
  • 20. What is an HTML Element? • An HTML element is defined by a start tag, some content, and an end tag: • <tagname> Content goes here...</tagname> • The HTML element is everything from the start tag to the end tag: • <h1>My First Heading</h1> • <p>My first paragraph.</p>
  • 21. Start tag Element content End tag <h1> My First Heading </h1> <p> My first paragraph. </p> <br> none none
  • 22. Steps Step 1: Open Notepad (PC) • Windows 8 or later: • Open the Start Screen (the window symbol at the bottom left on your screen). Type Notepad. • Windows 7 or earlier: • Open Start > Programs > Accessories > Notepad • Step 1: Open TextEdit (Mac) • Open Finder > Applications > TextEdit • Also change some preferences to get the application to save files correctly. • Then under "Open and Save", check the box that says "Display HTML files as HTML code instead of formatted text". • Then open a new document to place the code
  • 23. Steps Step 2: Write Some HTML • Write or copy the following HTML code into Notepad: • <!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
  • 24. Example 2-Heading <!DOCTYPE html> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
  • 25. Paragraph <!DOCTYPE html> <html> <body> <p>This is a paragraph.</p> <p>This is another paragraph.</p> </body> </html>
  • 26. To do-Class work • Title- My first HTML Page • Heading – Resume • Contents • Name • Register Number • Class • Course • College with Address
  • 27. • End of Lecture