SlideShare a Scribd company logo
1 of 35
Download to read offline
HTML
●
HTML is the standard markup language for Web
pages.
●
With HTML you can create your own Website.
●
HTML is easy to learn - You will enjoy it!
Let’s get started ......
What is HTML
HTML is the standard markup language for creating Web pages.
●
HTML stands for Hyper Text Markup Language
●
HTML describes the structure of a Web page
●
HTML consists of a series of elements
●
HTML elements tell the browser how to display the content
●
HTML elements are represented by tags
●
HTML tags label pieces of content such as "heading", "paragraph", "table", and so on
●
Browsers do not display the HTML tags, but use them to render the content of the page.
HTML Tags
●
The <!DOCTYPE html> declaration defines this document to be HTML5
●
The <html> element is the root element of an HTML page
●
The <head> element contains meta information about the document
●
The <title> element specifies a title for the document
●
The <body> element contains the visible page content
●
The <h1> element defines a large heading
●
The <p> element defines a paragraph
Example
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>First Heading of DM Diploma</h1>
<p>First paragraph of DM Diploma</p>
</body>
</html>
OUTPUT
HTML Headings
<h1>This is DM Diploma heading 1</h1>
<h2>This is DM Diploma heading 2</h2>
<h3>This is DM Diploma heading 3</h3>
<h4>This is DM Diploma heading 4</h4>
<h5>This is DM Diploma heading 5</h5>
<h6>This is DM Diploma heading 6</h6>
OUTPUT
HTML Links
HTML links are defined with the <a> tag:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is DM Diploma</h1>
<a href="https://www.dmdiploma.com/">This is DM Diploma Website link</a>
</body>
</html>
OUTPUT
HTML Image
●
HTML images are defined with the <img> tag.
●
The source file (src), alternative text (alt), width, and height are provided as
attributes:
<img src="dmdiploma.png" alt="DMDiploma.com">
OUTPUT
HTML Styles
Setting the style of an HTML element, can be done with the style attribute.
The property is a CSS property. The value is a CSS value.
<tagname style="property:value;">
Background Color:
<body style="background-color:blue;">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
OUTPUT
Text and Fonts
Text Color:
<h1 style="color:blue;">This is a heading</h1>
<p style="color:red;">This is a paragraph.</p>
Fonts:
<h1 style="font-family:verdana;">This is a heading</h1>
<p style="font-family:courier;">This is a paragraph.</p>
Text Size:
<p style="font-size:160%;">This is a paragraph.</p>
OUTPUT
Text Formatting
HTML uses elements like <b> and <i> for formatting output, like bold or italic text.
Formatting elements were designed to display special types of text:
<b> - Bold text
<strong> - Important text
<i> - Italic text
<em> - Emphasized text
<mark> - Marked text
<small> - Small text
<del> - Deleted text
<ins> - Inserted text
<sub> - Subscript text
<sup> - Superscript text
Example of Text Formatting
<body>
<b>This text is bold</b>
<strong>This text is strong</strong>
<i>This text is italic</i>
<em>This text is emphasized</em>
<h2>DM Diploma <small>Small</small> Formatting</h2>
<h2>DM Diploma <mark>Marked</mark> Formatting</h2>
<p>My favorite website is <del>Udemy</del>DM Diploma</p>
<p>This is <sub>dm diploma</sub> text.</p>
<p>This is <sup>superscripted</sup> text.</p>
</body>
Output
HTML Comments
<!-- This is a comment -->
<p>This is a paragraph.</p>
<!-- Remember to add more information here -->
Style HTML with CSS
Styling HTML with CSS
CSS stands for Cascading Style Sheets.
CSS describes how HTML elements are to be displayed on screen, paper, or in other media.
CSS saves a lot of work. It can control the layout of multiple web pages all at once.
CSS can be added to HTML elements in 3 ways:
Inline - by using the style attribute in HTML elements
Internal - by using a <style> element in the <head> section
External - by using an external CSS file
Inline CSS
An inline CSS is used to apply a unique style to a single HTML element.
An inline CSS uses the style attribute of an HTML element.
This example sets the text color of the <h1> element to blue:
<h1 style="color:blue;">This is a Blue Heading</h1>
HTML Table
An HTML table is defined with the <table> tag.
Each table row is defined with the <tr> tag. A table header is defined with the <th> tag.
By default, table headings are bold and centered. A table data/cell is defined with the <td> tag.
<table style="width:100%">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
</table>
OUTPUT
HTML List
Unordered HTML List:
An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Example – Disc
<ul style="list-style-type:disc;">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Example – Circle
<ul style="list-style-type:circle;">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul
Order List
An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
OUTPUT
HTML Head
The <head> element is a container for metadata (data about data) and is placed
between the <html> tag and the <body> tag.
HTML metadata is data about the HTML document. Metadata is not displayed.
Metadata typically define the document title, character set, styles, scripts, and other
meta information.
The following tags describe metadata: <title>, <style>, <meta>, <link>, <script>, and
<base>
HTML Forms
The HTML <form> element defines a form that is used to collect user input:
An HTML form contains form elements.
Form elements are different types of input elements, like: text fields, checkboxes, radio
buttons, submit buttons, and more.
<form>
Form elements.......
</form>
Form Elements
<input> Element
The <input> element is the most important form element.
The <input> element is displayed in several ways, depending on the type attribute.
<input type=”text”> = It Define a Single text input.
<input type=”submit”> = It Define a Submitting button for submitting the form.
Example:
<form>
<input type=”text” name=”fname”>
<input type=”text” name=”lname”>
</form>
OUTPUT
The Submit Button
<form>
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname" value="John"><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" name="lname" value="Doe"><br><br>
<input type="submit" value="Submit">
</form>
OUTPUT
HTML Input Types
You can use these input types for different
purposes like :
<input type="button">
<input type="checkbox">
<input type="color">
<input type="date">
<input type="datetime-local">
<input type="email">
<input type="file">
<input type="hidden">
<input type="image">
<input type="month">
<input type="number">
<input type="password">
<input type="radio">
<input type="range">
<input type="reset">
<input type="search">

More Related Content

What's hot

What's hot (20)

Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Css
CssCss
Css
 
HTML Tags
HTML TagsHTML Tags
HTML Tags
 
Css notes
Css notesCss notes
Css notes
 
Html mod1
Html mod1Html mod1
Html mod1
 
Html
HtmlHtml
Html
 
Html 5
Html 5Html 5
Html 5
 
Css module1
Css module1Css module1
Css module1
 
Html
HtmlHtml
Html
 
Css
CssCss
Css
 
Html introduction
Html introductionHtml introduction
Html introduction
 
Ict html
Ict htmlIct html
Ict html
 
Crash Course Web - HTML Presentation
Crash Course Web - HTML PresentationCrash Course Web - HTML Presentation
Crash Course Web - HTML Presentation
 
Html training part1
Html training part1Html training part1
Html training part1
 
Html presentation
Html presentationHtml presentation
Html presentation
 
Html and its tags
Html and its tagsHtml and its tags
Html and its tags
 
Html
HtmlHtml
Html
 
html tags
 html tags html tags
html tags
 

Similar to Html tutorials by www.dmdiploma.com

learnhtmlbyvipuladissanayake-170516061515 (1).pptx
learnhtmlbyvipuladissanayake-170516061515 (1).pptxlearnhtmlbyvipuladissanayake-170516061515 (1).pptx
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
ManuAbraham17
 

Similar to Html tutorials by www.dmdiploma.com (20)

Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html introduction
Html introductionHtml introduction
Html introduction
 
Intodcution to Html
Intodcution to HtmlIntodcution to Html
Intodcution to Html
 
html
htmlhtml
html
 
Html ppt
Html pptHtml ppt
Html ppt
 
INTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdfINTERNSHIP PROJECT PPT RAJ HZL.pdf
INTERNSHIP PROJECT PPT RAJ HZL.pdf
 
Learn html Basics
Learn html BasicsLearn html Basics
Learn html Basics
 
Html2
Html2Html2
Html2
 
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
learnhtmlbyvipuladissanayake-170516061515 (1).pptxlearnhtmlbyvipuladissanayake-170516061515 (1).pptx
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
 
Java script and html new
Java script and html newJava script and html new
Java script and html new
 
Java script and html
Java script and htmlJava script and html
Java script and html
 
Introduction to Html
Introduction to HtmlIntroduction to Html
Introduction to Html
 
HTML5 2019
HTML5 2019HTML5 2019
HTML5 2019
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
Computer application html
Computer application htmlComputer application html
Computer application html
 
About html
About htmlAbout html
About html
 
Html 5
Html 5Html 5
Html 5
 
Webithon Workshop
Webithon WorkshopWebithon Workshop
Webithon Workshop
 
Intro to html
Intro to htmlIntro to html
Intro to html
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

Html tutorials by www.dmdiploma.com

  • 1.
  • 2. HTML ● HTML is the standard markup language for Web pages. ● With HTML you can create your own Website. ● HTML is easy to learn - You will enjoy it! Let’s get started ......
  • 3. What is HTML HTML is the standard markup language for creating Web pages. ● HTML stands for Hyper Text Markup Language ● HTML describes the structure of a Web page ● HTML consists of a series of elements ● HTML elements tell the browser how to display the content ● HTML elements are represented by tags ● HTML tags label pieces of content such as "heading", "paragraph", "table", and so on ● Browsers do not display the HTML tags, but use them to render the content of the page.
  • 4. HTML Tags ● The <!DOCTYPE html> declaration defines this document to be HTML5 ● The <html> element is the root element of an HTML page ● The <head> element contains meta information about the document ● The <title> element specifies a title for the document ● The <body> element contains the visible page content ● The <h1> element defines a large heading ● The <p> element defines a paragraph
  • 5. Example <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>First Heading of DM Diploma</h1> <p>First paragraph of DM Diploma</p> </body> </html>
  • 7. HTML Headings <h1>This is DM Diploma heading 1</h1> <h2>This is DM Diploma heading 2</h2> <h3>This is DM Diploma heading 3</h3> <h4>This is DM Diploma heading 4</h4> <h5>This is DM Diploma heading 5</h5> <h6>This is DM Diploma heading 6</h6>
  • 9. HTML Links HTML links are defined with the <a> tag: <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>This is DM Diploma</h1> <a href="https://www.dmdiploma.com/">This is DM Diploma Website link</a> </body> </html>
  • 11. HTML Image ● HTML images are defined with the <img> tag. ● The source file (src), alternative text (alt), width, and height are provided as attributes: <img src="dmdiploma.png" alt="DMDiploma.com">
  • 13. HTML Styles Setting the style of an HTML element, can be done with the style attribute. The property is a CSS property. The value is a CSS value. <tagname style="property:value;"> Background Color: <body style="background-color:blue;"> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body>
  • 15. Text and Fonts Text Color: <h1 style="color:blue;">This is a heading</h1> <p style="color:red;">This is a paragraph.</p> Fonts: <h1 style="font-family:verdana;">This is a heading</h1> <p style="font-family:courier;">This is a paragraph.</p> Text Size: <p style="font-size:160%;">This is a paragraph.</p>
  • 17. Text Formatting HTML uses elements like <b> and <i> for formatting output, like bold or italic text. Formatting elements were designed to display special types of text: <b> - Bold text <strong> - Important text <i> - Italic text <em> - Emphasized text <mark> - Marked text <small> - Small text <del> - Deleted text <ins> - Inserted text <sub> - Subscript text <sup> - Superscript text
  • 18. Example of Text Formatting <body> <b>This text is bold</b> <strong>This text is strong</strong> <i>This text is italic</i> <em>This text is emphasized</em> <h2>DM Diploma <small>Small</small> Formatting</h2> <h2>DM Diploma <mark>Marked</mark> Formatting</h2> <p>My favorite website is <del>Udemy</del>DM Diploma</p> <p>This is <sub>dm diploma</sub> text.</p> <p>This is <sup>superscripted</sup> text.</p> </body>
  • 20. HTML Comments <!-- This is a comment --> <p>This is a paragraph.</p> <!-- Remember to add more information here -->
  • 21. Style HTML with CSS Styling HTML with CSS CSS stands for Cascading Style Sheets. CSS describes how HTML elements are to be displayed on screen, paper, or in other media. CSS saves a lot of work. It can control the layout of multiple web pages all at once. CSS can be added to HTML elements in 3 ways: Inline - by using the style attribute in HTML elements Internal - by using a <style> element in the <head> section External - by using an external CSS file
  • 22. Inline CSS An inline CSS is used to apply a unique style to a single HTML element. An inline CSS uses the style attribute of an HTML element. This example sets the text color of the <h1> element to blue: <h1 style="color:blue;">This is a Blue Heading</h1>
  • 23. HTML Table An HTML table is defined with the <table> tag. Each table row is defined with the <tr> tag. A table header is defined with the <th> tag. By default, table headings are bold and centered. A table data/cell is defined with the <td> tag. <table style="width:100%"> <tr> <th>Firstname</th> <th>Lastname</th> <th>Age</th> </tr> <tr> <td>Jill</td> <td>Smith</td> <td>50</td> </tr> </table>
  • 25. HTML List Unordered HTML List: An unordered list starts with the <ul> tag. Each list item starts with the <li> tag. <ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul>
  • 26. Example – Disc <ul style="list-style-type:disc;"> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> Example – Circle <ul style="list-style-type:circle;"> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul
  • 27. Order List An ordered list starts with the <ol> tag. Each list item starts with the <li> tag. <ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol>
  • 29. HTML Head The <head> element is a container for metadata (data about data) and is placed between the <html> tag and the <body> tag. HTML metadata is data about the HTML document. Metadata is not displayed. Metadata typically define the document title, character set, styles, scripts, and other meta information. The following tags describe metadata: <title>, <style>, <meta>, <link>, <script>, and <base>
  • 30. HTML Forms The HTML <form> element defines a form that is used to collect user input: An HTML form contains form elements. Form elements are different types of input elements, like: text fields, checkboxes, radio buttons, submit buttons, and more. <form> Form elements....... </form>
  • 31. Form Elements <input> Element The <input> element is the most important form element. The <input> element is displayed in several ways, depending on the type attribute. <input type=”text”> = It Define a Single text input. <input type=”submit”> = It Define a Submitting button for submitting the form. Example: <form> <input type=”text” name=”fname”> <input type=”text” name=”lname”> </form>
  • 33. The Submit Button <form> <label for="fname">First name:</label><br> <input type="text" id="fname" name="fname" value="John"><br> <label for="lname">Last name:</label><br> <input type="text" id="lname" name="lname" value="Doe"><br><br> <input type="submit" value="Submit"> </form>
  • 35. HTML Input Types You can use these input types for different purposes like : <input type="button"> <input type="checkbox"> <input type="color"> <input type="date"> <input type="datetime-local"> <input type="email"> <input type="file"> <input type="hidden"> <input type="image"> <input type="month"> <input type="number"> <input type="password"> <input type="radio"> <input type="range"> <input type="reset"> <input type="search">