HTML
HTML
HTML
Introduction
1
HTML
Click to edit Master title style
<!DOCTYPE html>
<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<h1>Welcome to My Webpage</h1>
<p>This is my first paragraph of text!</p>
</body>
</html>
3 3
WhytoLearn
Click HTML?
edit Master title style
4 4
WhytoLearn
Click HTML?
edit Master title style
5 5
Features
Click of HTML
to edit Master title style
6
6
HTML
Click Element
to edit and
Master title styleHTML Tag
• HTML Element and HTML Tags are related but distinct.
• An HTML element is the complete structure, including
the opening tag, content (if any), and the closing tag (if
applicable).
• On the other hand, A tag is the actual keyword or
name enclosed in angle brackets (< >) that tells the
browser what kind of content to expect.
7
7
Click to edit Master title style
AEGAN JOSHUA
8
8
HTML
Click Page
to edit Structure
Master title style
9
9
Click to edit Master title style
1010
Click to edit Master title style
• <!DOCTYPE html> – This is the document type
declaration, not a tag. It declares that the document is
an HTML5 document.
• <html> – This is called the HTML root element. All
other elements are contained within it.
• <head> – The head tag contains the “behind the
scenes” elements for a webpage. Elements within the
head aren’t visible on the front end of a webpage.
Typical elements inside the <head> include:
1111
Click to edit Master title style
1
14
HTML
Click History
to edit Master title style
1515
Click to edit Master title style
1616
Click to edit Master title style
1717
HTML
Click to Editors
edit Master title style
1919
HTML
Click to Editors
edit Master title style
2020
HTML
Click to Editors
edit Master title style
2121
HTML
Click to Editors
edit Master title style
1. Notepad
Notepad is a simple text editor that is also
used to write HTML code. It is an inbuilt
desktop application available in Windows OS.
2222
HTML
Click to Editors
edit Master title style
2. Brackets
Brackets is an open-source software primarily
used for Web development. It provides live
HTML, CSS, and JavaScript editing
functionality. Similar to the Notepad editor, create
a new file and save it with a .html extension to
run the HTML file.
2323
HTML
Click to Editors
edit Master title style
2424
HTML
Click to Editors
edit Master title style
4. Atom
Atom is an open-source code editor tool for
MAC, Linux, and Windows. We can use Atom
to write and edit HTML code. Similar to the
Notepad editor, create a new file and save it
with a .html extension to run an HTML file.
2525
HTML
Click to Editors
edit Master title style
2626
Reasons
Click to editto Usetitle
Master an style
HTML Editor
2727
Click to edit Master title style
2929
How to
Click toedit
Choose the
Master Right
title styleHTML Editor?
Hello
3131
Click toHeadings
HTML edit Master title style
3232
Click to edit Master title style
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-
scale=1.0">
<title>HTML heading tag</title>
</head>
<body>
<h1>Heading 1 (h1)</h1>
<h2>Heading 2 (h2)</h2>
<h3>Heading 3 (h3)</h3>
<h4>Heading 4 (h4)</h4>
<h5>Heading 5 (h5)</h5>
<h6>Heading 6 (h6)</h6>
</body>
</html>
3333
Click to
HTML Paragraph
edit Master
andtitle
Breakstyle
Elements
3434
Click to edit Master title style
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>
Example of paragraph and break elements
</title>
</head>
<body>
<p>
HTML stands for HyperText Markup Language.<br>
It is used to design web pages using a markup
language.<br>HTML is a combination of Hypertext
and Markup language.<br>Hypertext defines the
link between web pages.<br>A markup language
is used to define the text document within the
tag which defines the structure of web pages.
</p>
</body>
</html>
3535
Click to edit Master title style
<!DOCTYPE html>
<html lang="en">
<head>
<title>The p tag</title>
</head>
<body>
<p> I am a programmer, i have no life</p>
<p>It contains well written, well thought articles.</p>
</body>
</html>
3636
HTML
Click to Tables
edit Master title style
3737
Click toisedit
What an HTML
MasterTable?
title style
3838
Click to edit Master title style
3939
Click to edit Master title style
<!DOCTYPE html> <tr>
<html> <td>Arun</td>
<td>Singh</td>
<body> <td>32</td>
<table> </tr>
<tr> <tr>
<th>Firstname</th> <td>Sam</td>
<th>Lastname</th> <td>Watson</td>
<th>Age</th> <td>41</td>
</tr> </tr>
<tr> </table>
<td>Priya</td> </body>
<td>Sharma</td>
<td>24</td> </html>
</tr>
4040
Click to edit Master title style
4343
Typestoof
Click HTML
edit Lists
Master title style
There are three main types of lists in HTML:
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
4646
Click to edit Master title style
<!DOCTYPE html>
<html>
<body>
<h2>Grocery list</h2>
<ul>
<li>Bread</li>
<li>Eggs</li>
<li>Milk</li>
<li>Coffee</li>
</ul>
</body>
</html>
4747
Click to edit Master title style
4848
Click to edit Master title style
<ol>
<li>Item1</li>
<li>Item2</li>
<li>Item3</li>
</ol>
4949
Click to edit Master title style
<!DOCTYPE html>
<html>
<head>
<title>HTML ol tag</title>
</head>
<ol >
<li>HTML</li>
<li>CSS</li>
<li>JS</li>
</ol>
<ol reversed>
<li>HTML</li>
<li>CSS</li>
<li>JS</li>
</ol>
</body>
</html>
5050