SlideShare a Scribd company logo
HTML
INTRODUCTION, EDITORS, BASIC,
ELEMENTS, ATTRIBUTES
WHAT IS HTML?
• HTML is a language for describing web pages.
• HTML stands for Hyper Text Markup Language
• HTML is a markup language
• A markup language is a set of markup tags
• The tags describes document content
• HTML documents contain HTML tags and plain text
• HTML documents are also called web pages
Apep Kamaludin, MT. | http://www.w3schools.com
HTML TAGS
HTML markup tags are usually called HTML tags
HTML tags are keywords (tag names) surrounded by angle
brackets like <html>
HTML tags normally come in pairs like <b> and </b>
The first tag in a pair is the start tag, the second tag is the end
tag
The end tag is written like the start tag, with a forward
slash before the tag name
Start and end tags are also called opening tags and closing
tags
Apep Kamaludin, MT. | http://www.w3schools.com
<tagname> content </tagname>
HTML ELEMENTS
"HTML tags" and "HTML elements" are often used to describe
the same thing.
But strictly speaking, an HTML element is everything between the
start tag and the end tag, including the tags:
HTML Element:
Apep Kamaludin, MT. | http://www.w3schools.com
<p> This is a paragraph. </p>
WEB BROWSERS
The purpose of a web browser (Chrome, Internet
Explorer, Firefox) is to read HTML documents and
display them as web pages. The browser does not
display the HTML tags, but uses the tags to interpret
the content of the page:
Apep Kamaludin, MT. | http://www.w3schools.com
HTML PAGE STRUCTURE
Below is a visualization of an HTML page structure:
<html>
<body>
<h1>This a Heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
Apep Kamaludin, MT. | http://www.w3schools.com
HTML VERSIONS
Version Year
HTML 1991
HTML+ 1993
HTML 2.0 1995
HTML 3.2 1997
HTML 4.01 1999
XHTML 1.0 2000
HTML5 2012
XHTML5 2013
Apep Kamaludin, MT. | http://www.w3schools.com
THE <!DOCTYPE> DECLARATION
There are many different documents on the web, and a browser can only display an HTML
page 100% correctly if it knows the HTML type and version used.
The <!DOCTYPE> declaration helps the browser to display a web page correctly.
Common Declarations
HTML5
<!DOCTYPE html>
HTML 4.01
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
XHTML 1.0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Apep Kamaludin, MT. | http://www.w3schools.com
HTML EDITORS
Writing HTML Using Notepad or TextEdit
HTML can be edited by using a professional HTML editor like:
• Adobe Dreamweaver
• Microsoft Expression Web
• CoffeeCup HTML Editor
However, for learning HTML we recommend a text editor like
Notepad (PC) or TextEdit (Mac). We believe using a simple text
editor is a good way to learn HTML.
Apep Kamaludin, MT. | http://www.w3schools.com
HTML EDITORS
Follow the 4 steps below to create your first web page with
Notepad.
Step 1: Start Notepad
To start Notepad go to:
Start
All Programs
Accessories
Notepad
Apep Kamaludin, MT. | http://www.w3schools.com
HTML EDITORS
Step 2: Edit Your HTML with Notepad
Type your HTML code into your Notepad:
Apep Kamaludin, MT. | http://www.w3schools.com
HTML EDITORS
Step 3: Save Your HTML
Select Save as.. in Notepad's file menu.
When you save an HTML file, you can use either the .htm or the
.html file extension. There is no difference, it is entirely up to you.
Save the file in a folder that is easy to remember, like w3schools.
Apep Kamaludin, MT. | http://www.w3schools.com
HTML EDITORS
Step 4: Run the HTML in Your Browser
Start your web browser and open your html file from
the File, Open menu, or just browse the folder and double-click your
HTML file.
The result should look much like this:
Apep Kamaludin, MT. | http://www.w3schools.com
HTML BASIC
HTML Headings
HTML headings are defined with the <h1> to <h6>
tags.
Example
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
Apep Kamaludin, MT. | http://www.w3schools.com
HTML BASIC
HTML Paragraphs
HTML paragraphs are defined with the <p> tag.
Example
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
Apep Kamaludin, MT. | http://www.w3schools.com
HTML BASIC
HTML Links
HTML links are defined with the <a> tag.
Example
<a href="http://www.w3schools.com">This is a link</a>
Note: The link address is specified in the href attribute.
(You will learn about attributes in a later chapter of this tutorial).
Apep Kamaludin, MT. | http://www.w3schools.com
HTML BASIC
HTML Images
HTML images are defined with the <img> tag.
Example
<img src="w3schools.jpg" width="104" height="142">
Note: The filename and the size of the image are provided as attributes.
Apep Kamaludin, MT. | http://www.w3schools.com
HTML ELEMENTS
HTML documents are defined by HTML
elements.
An HTML element is everything from the start
tag to the end tag:
* The start tag is often called the opening tag. The end tag is often called
the closing tag.
Apep Kamaludin, MT. | http://www.w3schools.com
Start tag * Element content End tag *
<p> This is a paragraph </p>
<a href="default.htm"> This is a link </a>
<br>
HTML ELEMENTS
HTML Element Syntax
An HTML element starts with a start tag / opening tag
An HTML element ends with an end tag / closing tag
The element content is everything between the start and the end tag
Some HTML elements have empty content
Empty elements are closed in the start tag
Most HTML elements can have attributes
Tip: You will learn about attributes in the next chapter of this tutorial.
Apep Kamaludin, MT. | http://www.w3schools.com
HTML ELEMENTS
Nested HTML Elements
Most HTML elements can be nested (can contain other HTML
elements).
HTML documents consist of nested HTML elements.
Apep Kamaludin, MT. | http://www.w3schools.com
HTML ELEMENTS
HTML Document Example
<!DOCTYPE html>
<html>
<body>
<p>This is my first paragraph.</p>
</body>
</html>
The example above contains 3 HTML elements.
Apep Kamaludin, MT. | http://www.w3schools.com
HTML ELEMENTS
Don't Forget the End Tag
Some HTML elements might display correctly even if you forget
the end tag:
<p>This is a paragraph
<p>This is a paragraph
The example above works in most browsers, because the closing
tag is considered optional.
Never rely on this. Many HTML elements will produce unexpected
results and/or errors if you forget the end tag .
Apep Kamaludin, MT. | http://www.w3schools.com
HTML ELEMENTS
Empty HTML Elements
HTML elements with no content are called empty elements.
<br> is an empty element without a closing tag (the <br> tag
defines a line break).
Tip: In XHTML, all elements must be closed. Adding a slash inside
the start tag, like <br />, is the proper way of closing empty
elements in XHTML (and XML).
Apep Kamaludin, MT. | http://www.w3schools.com
HTML ELEMENTS
HTML Tip: Use Lowercase Tags
HTML tags are not case sensitive: <P> means the same as <p>.
Many web sites use uppercase HTML tags.
W3Schools use lowercase tags because the World Wide Web
Consortium (W3C) recommends lowercase in HTML 4,
and demands lowercase tags in XHTML.
Apep Kamaludin, MT. | http://www.w3schools.com
HTML ATTRIBUTES
• HTML elements can have attributes
• Attributes provide additional information about an element
• Attributes are always specified in the start tag
• Attributes come in name/value pairs like: name="value"
Apep Kamaludin, MT. | http://www.w3schools.com
HTML ATTRIBUTES
Attribute Example
HTML links are defined with the <a> tag. The link address is
specified in the href attribute:
Example
<a href="http://www.w3schools.com">This is a link</a>
Apep Kamaludin, MT. | http://www.w3schools.com
HTML ATTRIBUTES
Always Quote Attribute Values
Attribute values should always be enclosed in quotes.
Double style quotes are the most common, but single
style quotes are also allowed.
Tip: In some rare situations, when the attribute value
itself contains quotes, it is necessary to use single
quotes: name='John "ShotGun" Nelson'
Apep Kamaludin, MT. | http://www.w3schools.com
HTML ATTRIBUTES
HTML Tip: Use Lowercase Attributes
Attribute names and attribute values are case-
insensitive.
However, the World Wide Web Consortium (W3C)
recommends lowercase attributes/attribute values in
their HTML 4 recommendation.
Newer versions of (X)HTML will demand lowercase
attributes.
Apep Kamaludin, MT. | http://www.w3schools.com

More Related Content

What's hot

Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
adelaticleanu
 
Html
HtmlHtml
Hyper text markup Language
Hyper text markup LanguageHyper text markup Language
Hyper text markup Language
Naveeth Babu
 
Hyper Text Mark-up Language
Hyper Text Mark-up Language Hyper Text Mark-up Language
Hyper Text Mark-up Language
Fritz Earlin Therese Lapitaje Pondantes
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
Eric Marilag
 
Html
HtmlHtml
Html basic
Html basicHtml basic
Html basic
Charitha Bandara
 
Html basics
Html basicsHtml basics
Html basics
Vjay Vijju
 
Html basics
Html basicsHtml basics
Html basics
Zewaqar Khan
 
Let me design
Let me designLet me design
Let me design
Anurag Deb
 

What's hot (10)

Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 
Html
HtmlHtml
Html
 
Hyper text markup Language
Hyper text markup LanguageHyper text markup Language
Hyper text markup Language
 
Hyper Text Mark-up Language
Hyper Text Mark-up Language Hyper Text Mark-up Language
Hyper Text Mark-up Language
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Html
HtmlHtml
Html
 
Html basic
Html basicHtml basic
Html basic
 
Html basics
Html basicsHtml basics
Html basics
 
Html basics
Html basicsHtml basics
Html basics
 
Let me design
Let me designLet me design
Let me design
 

Viewers also liked

Robocode
RobocodeRobocode
Contoh.html1
Contoh.html1Contoh.html1
Contoh.html1
Yuri Mahbubi
 
belajar HTML
belajar HTML belajar HTML
Tutorial dasar laravel
Tutorial dasar laravelTutorial dasar laravel
Tutorial dasar laravel
M Nurilman Baehaqi
 
Belajar Web HTML – Modul 4 List
Belajar Web HTML – Modul 4 ListBelajar Web HTML – Modul 4 List
Belajar Web HTML – Modul 4 List
Muhammad Ibrahim
 
Arsitektur dan Organisasi Komputer - infiniband
Arsitektur dan Organisasi Komputer - infiniband Arsitektur dan Organisasi Komputer - infiniband
Arsitektur dan Organisasi Komputer - infiniband
Muhammad Ibrahim
 
Belajar Web HTML – Modul 6 Hyperlink
Belajar Web HTML – Modul 6 Hyperlink Belajar Web HTML – Modul 6 Hyperlink
Belajar Web HTML – Modul 6 Hyperlink
Muhammad Ibrahim
 
Bermain main dengan linux
Bermain main dengan linuxBermain main dengan linux
Bermain main dengan linux
Imam Safrullah
 
CARA BELAJAR EFEKTIF
CARA BELAJAR EFEKTIFCARA BELAJAR EFEKTIF
CARA BELAJAR EFEKTIF
Risa A. Harmadani
 
Buku pemrograman web html-css-javascript
Buku pemrograman web html-css-javascriptBuku pemrograman web html-css-javascript
Buku pemrograman web html-css-javascript
Deka M Wildan
 
Belajar netbeans java pemula dari 0 sampai mahir
Belajar netbeans java pemula dari 0 sampai mahirBelajar netbeans java pemula dari 0 sampai mahir
Belajar netbeans java pemula dari 0 sampai mahir
harisonmtd
 
Panduan Pemrograman Berbasis Web dengan HTML, PHP, dan Database MySQL
Panduan Pemrograman Berbasis Web dengan HTML, PHP, dan Database MySQLPanduan Pemrograman Berbasis Web dengan HTML, PHP, dan Database MySQL
Panduan Pemrograman Berbasis Web dengan HTML, PHP, dan Database MySQL
Doni Tobing
 
Core java slides
Core java slidesCore java slides
Core java slides
Abhilash Nair
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
Veerabadra Badra
 

Viewers also liked (15)

sunu (Html-1)
sunu (Html-1)sunu (Html-1)
sunu (Html-1)
 
Robocode
RobocodeRobocode
Robocode
 
Contoh.html1
Contoh.html1Contoh.html1
Contoh.html1
 
belajar HTML
belajar HTML belajar HTML
belajar HTML
 
Tutorial dasar laravel
Tutorial dasar laravelTutorial dasar laravel
Tutorial dasar laravel
 
Belajar Web HTML – Modul 4 List
Belajar Web HTML – Modul 4 ListBelajar Web HTML – Modul 4 List
Belajar Web HTML – Modul 4 List
 
Arsitektur dan Organisasi Komputer - infiniband
Arsitektur dan Organisasi Komputer - infiniband Arsitektur dan Organisasi Komputer - infiniband
Arsitektur dan Organisasi Komputer - infiniband
 
Belajar Web HTML – Modul 6 Hyperlink
Belajar Web HTML – Modul 6 Hyperlink Belajar Web HTML – Modul 6 Hyperlink
Belajar Web HTML – Modul 6 Hyperlink
 
Bermain main dengan linux
Bermain main dengan linuxBermain main dengan linux
Bermain main dengan linux
 
CARA BELAJAR EFEKTIF
CARA BELAJAR EFEKTIFCARA BELAJAR EFEKTIF
CARA BELAJAR EFEKTIF
 
Buku pemrograman web html-css-javascript
Buku pemrograman web html-css-javascriptBuku pemrograman web html-css-javascript
Buku pemrograman web html-css-javascript
 
Belajar netbeans java pemula dari 0 sampai mahir
Belajar netbeans java pemula dari 0 sampai mahirBelajar netbeans java pemula dari 0 sampai mahir
Belajar netbeans java pemula dari 0 sampai mahir
 
Panduan Pemrograman Berbasis Web dengan HTML, PHP, dan Database MySQL
Panduan Pemrograman Berbasis Web dengan HTML, PHP, dan Database MySQLPanduan Pemrograman Berbasis Web dengan HTML, PHP, dan Database MySQL
Panduan Pemrograman Berbasis Web dengan HTML, PHP, dan Database MySQL
 
Core java slides
Core java slidesCore java slides
Core java slides
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 

Similar to belajar HTML 1

Html
HtmlHtml
Html example
Html exampleHtml example
Html example
Dorothy Dominic
 
Htmlnotes 150323102005-conversion-gate01
Htmlnotes 150323102005-conversion-gate01Htmlnotes 150323102005-conversion-gate01
Htmlnotes 150323102005-conversion-gate01
Niraj Bharambe
 
Html notes
Html notesHtml notes
Html notes
Ismail Mukiibi
 
HTML Presentation
HTML Presentation HTML Presentation
HTML Presentation
pradeepthakur87
 
htmlnotes-180924151434.pdf dafdkzndsvkdvdd
htmlnotes-180924151434.pdf dafdkzndsvkdvddhtmlnotes-180924151434.pdf dafdkzndsvkdvdd
htmlnotes-180924151434.pdf dafdkzndsvkdvdd
hemanthkalyan25
 
htmlnotes Which tells about all the basic
htmlnotes Which tells about all the basichtmlnotes Which tells about all the basic
htmlnotes Which tells about all the basic
hemanthkalyan25
 
Learn html from www
Learn html from wwwLearn html from www
Learn html from www
alvinblue1212
 
Html basics 1
Html basics 1Html basics 1
Html basics 1
google
 
Html basics
Html basicsHtml basics
Html basics
Adityaroy110
 
Html basics
Html basicsHtml basics
Html basics
Vivek Khandelwal
 
HTML_Basics.pdf
HTML_Basics.pdfHTML_Basics.pdf
HTML_Basics.pdf
Bhavani Testone
 
Html basic file
Html basic fileHtml basic file
Html basic file
Md Mozaddidul Karim
 
Html BASICS
Html BASICSHtml BASICS
Html basics
Html basicsHtml basics
Html basics
Yernur Kassymbayev
 
Html basics
Html basicsHtml basics
Html basics
Adityaroy110
 
Html basics
Html basicsHtml basics
Html tutorial
Html tutorialHtml tutorial
Html tutorial
Hassan Nasir
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
Vinay Vinnu
 
Html presentation
Html presentationHtml presentation
Html presentation
Amber Bhaumik
 

Similar to belajar HTML 1 (20)

Html
HtmlHtml
Html
 
Html example
Html exampleHtml example
Html example
 
Htmlnotes 150323102005-conversion-gate01
Htmlnotes 150323102005-conversion-gate01Htmlnotes 150323102005-conversion-gate01
Htmlnotes 150323102005-conversion-gate01
 
Html notes
Html notesHtml notes
Html notes
 
HTML Presentation
HTML Presentation HTML Presentation
HTML Presentation
 
htmlnotes-180924151434.pdf dafdkzndsvkdvdd
htmlnotes-180924151434.pdf dafdkzndsvkdvddhtmlnotes-180924151434.pdf dafdkzndsvkdvdd
htmlnotes-180924151434.pdf dafdkzndsvkdvdd
 
htmlnotes Which tells about all the basic
htmlnotes Which tells about all the basichtmlnotes Which tells about all the basic
htmlnotes Which tells about all the basic
 
Learn html from www
Learn html from wwwLearn html from www
Learn html from www
 
Html basics 1
Html basics 1Html basics 1
Html basics 1
 
Html basics
Html basicsHtml basics
Html basics
 
Html basics
Html basicsHtml basics
Html basics
 
HTML_Basics.pdf
HTML_Basics.pdfHTML_Basics.pdf
HTML_Basics.pdf
 
Html basic file
Html basic fileHtml basic file
Html basic file
 
Html BASICS
Html BASICSHtml BASICS
Html BASICS
 
Html basics
Html basicsHtml basics
Html basics
 
Html basics
Html basicsHtml basics
Html basics
 
Html basics
Html basicsHtml basics
Html basics
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html presentation
Html presentationHtml presentation
Html presentation
 

More from Universitas Pendidikan Indonesia

Perencanaan sumberdaya manusia
Perencanaan sumberdaya manusiaPerencanaan sumberdaya manusia
Perencanaan sumberdaya manusia
Universitas Pendidikan Indonesia
 
Lm301 t05 12-4563_upaya preservasi terhadap data laptop pribadi
Lm301 t05 12-4563_upaya preservasi terhadap data laptop pribadiLm301 t05 12-4563_upaya preservasi terhadap data laptop pribadi
Lm301 t05 12-4563_upaya preservasi terhadap data laptop pribadi
Universitas Pendidikan Indonesia
 
Gaya Kepemimpinan
Gaya KepemimpinanGaya Kepemimpinan
3. tipe dan fungsi kepemimpinan!
3. tipe dan fungsi kepemimpinan!3. tipe dan fungsi kepemimpinan!
3. tipe dan fungsi kepemimpinan!
Universitas Pendidikan Indonesia
 
bahaya banjir di indonesia
bahaya banjir di indonesia bahaya banjir di indonesia
bahaya banjir di indonesia
Universitas Pendidikan Indonesia
 
html 4
html 4html 4
belajar HTML 3
belajar HTML 3belajar HTML 3

More from Universitas Pendidikan Indonesia (7)

Perencanaan sumberdaya manusia
Perencanaan sumberdaya manusiaPerencanaan sumberdaya manusia
Perencanaan sumberdaya manusia
 
Lm301 t05 12-4563_upaya preservasi terhadap data laptop pribadi
Lm301 t05 12-4563_upaya preservasi terhadap data laptop pribadiLm301 t05 12-4563_upaya preservasi terhadap data laptop pribadi
Lm301 t05 12-4563_upaya preservasi terhadap data laptop pribadi
 
Gaya Kepemimpinan
Gaya KepemimpinanGaya Kepemimpinan
Gaya Kepemimpinan
 
3. tipe dan fungsi kepemimpinan!
3. tipe dan fungsi kepemimpinan!3. tipe dan fungsi kepemimpinan!
3. tipe dan fungsi kepemimpinan!
 
bahaya banjir di indonesia
bahaya banjir di indonesia bahaya banjir di indonesia
bahaya banjir di indonesia
 
html 4
html 4html 4
html 4
 
belajar HTML 3
belajar HTML 3belajar HTML 3
belajar HTML 3
 

Recently uploaded

The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 

belajar HTML 1

  • 2. WHAT IS HTML? • HTML is a language for describing web pages. • HTML stands for Hyper Text Markup Language • HTML is a markup language • A markup language is a set of markup tags • The tags describes document content • HTML documents contain HTML tags and plain text • HTML documents are also called web pages Apep Kamaludin, MT. | http://www.w3schools.com
  • 3. HTML TAGS HTML markup tags are usually called HTML tags HTML tags are keywords (tag names) surrounded by angle brackets like <html> HTML tags normally come in pairs like <b> and </b> The first tag in a pair is the start tag, the second tag is the end tag The end tag is written like the start tag, with a forward slash before the tag name Start and end tags are also called opening tags and closing tags Apep Kamaludin, MT. | http://www.w3schools.com <tagname> content </tagname>
  • 4. HTML ELEMENTS "HTML tags" and "HTML elements" are often used to describe the same thing. But strictly speaking, an HTML element is everything between the start tag and the end tag, including the tags: HTML Element: Apep Kamaludin, MT. | http://www.w3schools.com <p> This is a paragraph. </p>
  • 5. WEB BROWSERS The purpose of a web browser (Chrome, Internet Explorer, Firefox) is to read HTML documents and display them as web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page: Apep Kamaludin, MT. | http://www.w3schools.com
  • 6. HTML PAGE STRUCTURE Below is a visualization of an HTML page structure: <html> <body> <h1>This a Heading</h1> <p>This is a paragraph.</p> <p>This is another paragraph.</p> </body> </html> Apep Kamaludin, MT. | http://www.w3schools.com
  • 7. HTML VERSIONS Version Year HTML 1991 HTML+ 1993 HTML 2.0 1995 HTML 3.2 1997 HTML 4.01 1999 XHTML 1.0 2000 HTML5 2012 XHTML5 2013 Apep Kamaludin, MT. | http://www.w3schools.com
  • 8. THE <!DOCTYPE> DECLARATION There are many different documents on the web, and a browser can only display an HTML page 100% correctly if it knows the HTML type and version used. The <!DOCTYPE> declaration helps the browser to display a web page correctly. Common Declarations HTML5 <!DOCTYPE html> HTML 4.01 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> XHTML 1.0 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Apep Kamaludin, MT. | http://www.w3schools.com
  • 9. HTML EDITORS Writing HTML Using Notepad or TextEdit HTML can be edited by using a professional HTML editor like: • Adobe Dreamweaver • Microsoft Expression Web • CoffeeCup HTML Editor However, for learning HTML we recommend a text editor like Notepad (PC) or TextEdit (Mac). We believe using a simple text editor is a good way to learn HTML. Apep Kamaludin, MT. | http://www.w3schools.com
  • 10. HTML EDITORS Follow the 4 steps below to create your first web page with Notepad. Step 1: Start Notepad To start Notepad go to: Start All Programs Accessories Notepad Apep Kamaludin, MT. | http://www.w3schools.com
  • 11. HTML EDITORS Step 2: Edit Your HTML with Notepad Type your HTML code into your Notepad: Apep Kamaludin, MT. | http://www.w3schools.com
  • 12. HTML EDITORS Step 3: Save Your HTML Select Save as.. in Notepad's file menu. When you save an HTML file, you can use either the .htm or the .html file extension. There is no difference, it is entirely up to you. Save the file in a folder that is easy to remember, like w3schools. Apep Kamaludin, MT. | http://www.w3schools.com
  • 13. HTML EDITORS Step 4: Run the HTML in Your Browser Start your web browser and open your html file from the File, Open menu, or just browse the folder and double-click your HTML file. The result should look much like this: Apep Kamaludin, MT. | http://www.w3schools.com
  • 14. HTML BASIC HTML Headings HTML headings are defined with the <h1> to <h6> tags. Example <h1>This is a heading</h1> <h2>This is a heading</h2> <h3>This is a heading</h3> Apep Kamaludin, MT. | http://www.w3schools.com
  • 15. HTML BASIC HTML Paragraphs HTML paragraphs are defined with the <p> tag. Example <p>This is a paragraph.</p> <p>This is another paragraph.</p> Apep Kamaludin, MT. | http://www.w3schools.com
  • 16. HTML BASIC HTML Links HTML links are defined with the <a> tag. Example <a href="http://www.w3schools.com">This is a link</a> Note: The link address is specified in the href attribute. (You will learn about attributes in a later chapter of this tutorial). Apep Kamaludin, MT. | http://www.w3schools.com
  • 17. HTML BASIC HTML Images HTML images are defined with the <img> tag. Example <img src="w3schools.jpg" width="104" height="142"> Note: The filename and the size of the image are provided as attributes. Apep Kamaludin, MT. | http://www.w3schools.com
  • 18. HTML ELEMENTS HTML documents are defined by HTML elements. An HTML element is everything from the start tag to the end tag: * The start tag is often called the opening tag. The end tag is often called the closing tag. Apep Kamaludin, MT. | http://www.w3schools.com Start tag * Element content End tag * <p> This is a paragraph </p> <a href="default.htm"> This is a link </a> <br>
  • 19. HTML ELEMENTS HTML Element Syntax An HTML element starts with a start tag / opening tag An HTML element ends with an end tag / closing tag The element content is everything between the start and the end tag Some HTML elements have empty content Empty elements are closed in the start tag Most HTML elements can have attributes Tip: You will learn about attributes in the next chapter of this tutorial. Apep Kamaludin, MT. | http://www.w3schools.com
  • 20. HTML ELEMENTS Nested HTML Elements Most HTML elements can be nested (can contain other HTML elements). HTML documents consist of nested HTML elements. Apep Kamaludin, MT. | http://www.w3schools.com
  • 21. HTML ELEMENTS HTML Document Example <!DOCTYPE html> <html> <body> <p>This is my first paragraph.</p> </body> </html> The example above contains 3 HTML elements. Apep Kamaludin, MT. | http://www.w3schools.com
  • 22. HTML ELEMENTS Don't Forget the End Tag Some HTML elements might display correctly even if you forget the end tag: <p>This is a paragraph <p>This is a paragraph The example above works in most browsers, because the closing tag is considered optional. Never rely on this. Many HTML elements will produce unexpected results and/or errors if you forget the end tag . Apep Kamaludin, MT. | http://www.w3schools.com
  • 23. HTML ELEMENTS Empty HTML Elements HTML elements with no content are called empty elements. <br> is an empty element without a closing tag (the <br> tag defines a line break). Tip: In XHTML, all elements must be closed. Adding a slash inside the start tag, like <br />, is the proper way of closing empty elements in XHTML (and XML). Apep Kamaludin, MT. | http://www.w3schools.com
  • 24. HTML ELEMENTS HTML Tip: Use Lowercase Tags HTML tags are not case sensitive: <P> means the same as <p>. Many web sites use uppercase HTML tags. W3Schools use lowercase tags because the World Wide Web Consortium (W3C) recommends lowercase in HTML 4, and demands lowercase tags in XHTML. Apep Kamaludin, MT. | http://www.w3schools.com
  • 25. HTML ATTRIBUTES • HTML elements can have attributes • Attributes provide additional information about an element • Attributes are always specified in the start tag • Attributes come in name/value pairs like: name="value" Apep Kamaludin, MT. | http://www.w3schools.com
  • 26. HTML ATTRIBUTES Attribute Example HTML links are defined with the <a> tag. The link address is specified in the href attribute: Example <a href="http://www.w3schools.com">This is a link</a> Apep Kamaludin, MT. | http://www.w3schools.com
  • 27. HTML ATTRIBUTES Always Quote Attribute Values Attribute values should always be enclosed in quotes. Double style quotes are the most common, but single style quotes are also allowed. Tip: In some rare situations, when the attribute value itself contains quotes, it is necessary to use single quotes: name='John "ShotGun" Nelson' Apep Kamaludin, MT. | http://www.w3schools.com
  • 28. HTML ATTRIBUTES HTML Tip: Use Lowercase Attributes Attribute names and attribute values are case- insensitive. However, the World Wide Web Consortium (W3C) recommends lowercase attributes/attribute values in their HTML 4 recommendation. Newer versions of (X)HTML will demand lowercase attributes. Apep Kamaludin, MT. | http://www.w3schools.com