SlideShare ist ein Scribd-Unternehmen logo
1 von 35
<HTML>
Hypertext Markup Language
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 describe document content
• HTML documents contain HTML tags and plain text
• HTML documents are also called web pages
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
HTML ELEMENTS
• "HTML tags" and "HTML elements" are often used to describe the same thing.
HTML Element:
<p>This is a paragraph.</p>
WEB BROWSERS
• The purpose of a web browser (such as Google Chrome, Internet Explorer, Firefox,
Safari) is to read HTML documents and display them as web pages.
• The browser does not display the HTML tags, but uses the tags to determine how
the content of the HTML page is to be presented/displayed to the user
HTML PAGE STRUCTURE
HTML VERSIONS
HTML EDITORS
• HTML can be edited by using a professional HTML editor like:
• Adobe Dreamweaver
• Microsoft Expression Web
• CoffeeCup HTML Editor
• Notepad ++ / Notepad
HTML BASICS
• 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>
HTML BASICS
• HTML Paragraphs
• HTML paragraphs are defined with the <p> tag.
• Example
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
• HTML Links
• HTML links are defined with the <a> tag.
• Example
<a href="http://www.w3schools.com">This is a link</a>
HTML BASICS
• HTML Images
• HTML images are defined with the <img> tag.
• Example
<img src="w3schools.jpg" width="104" height="142">
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
• Example
HTML DOCUMENT EXAMPLE
<!DOCTYPE html>
<html>
<body>
<p>This is my first paragraph.</p>
</body>
</html>
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).
HTML ATTRIBUTES
• Attributes provide additional information about HTML elements.
• 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“
• Example
<a href="http://www.mcsoftsis.com">This is a link</a>
HTML HEADINGS
• HTML Headings
• Headings are defined with the <h1> to <h6> tags.
• <h1> defines the most important heading. <h6> defines the least important heading.
• Example
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
HTML LINES
• The <hr> tag creates a horizontal line in an HTML page.
• The hr element can be used to separate content:
• Example
<p>This is a paragraph.</p>
<hr>
<p>This is a paragraph.</p>
<hr>
<p>This is a paragraph.</p>
HTML COMMENTS
• Comments can be inserted into the HTML code to make it more readable and
understandable. Comments are ignored by the browser and are not displayed.
• Comments are written like this:
• Example
<!-- This is a comment -->
HTML PARAGRAPHS
• Paragraphs are defined with the <p> tag.
• Example
<p>This is a paragraph</p>
<p>This is another paragraph</p>
HTML LINE BREAKS
• Use the <br> tag if you want a line break (a new line) without starting a new
paragraph:
• <p>This is<br>a para<br>graph with line breaks</p>
• The <br> element is an empty HTML element. It has no end tag.
HTML TEXT FORMATTING
• HTML uses tags like <b> and <i> for formatting output, like bold or italic text.
HTML HYPERLINKS (LINKS)
• The HTML <a> tag defines a hyperlink.
• A hyperlink (or link) is a word, group of words, or image that you can click on to
jump to another document.
• When you move the cursor over a link in a Web page, the arrow will turn into a little
hand.
• The most important attribute of the <a> element is the href attribute, which indicates
the link’s destination.
• By default, links will appear as follows in all browsers:
• An unvisited link is underlined and blue
• A visited link is underlined and purple
• An active link is underlined and red
HTML <HEAD>
• The <head> element is a container for all the head elements. Elements inside
<head> can include scripts, instruct the browser where to find style sheets, provide
meta information, and more.
THE HTML <TITLE> ELEMENT
• The <title> tag defines the title of the document.
• The <title> element is required in all HTML/XHTML documents.
• The <title> element:
• defines a title in the browser toolbar
• provides a title for the page when it is added to favorites
• displays a title for the page in search-engine results
THE HTML <STYLE> ELEMENT
• The <style> tag is used to define style information for an HTML document.
• Inside the <style> element you specify how HTML elements should render in a
browser:
<head>
<style type="text/css">
body {background-color:yellow;}
p {color:blue;}
</style>
</head>
HTML STYLES - CSS
• CSS was introduced together with HTML 4, to provide a better way to style HTML
elements.
• CSS can be added to HTML in the following ways:
1. Inline - using the style attribute in HTML elements
2. Internal - using the <style> element in the <head> section
3. External - using an external CSS file
HTML IMAGES
• In HTML, images are defined with the <img> tag.
• The <img> tag is empty, which means that it contains attributes only, and has no
closing tag.
• To display an image on a page, you need to use the src attribute. Src stands for
"source". The value of the src attribute is the URL of the image you want to display.
• Syntax for defining an image:
<img src="url" alt="some_text">
HTML TABLES
• Tables are defined with the <table> tag.
• A table is divided into rows (with the <tr> tag), and each row is divided into data cells(with
the <td> tag). td stands for "table data," and holds the content of a data cell. A <td> tag can
contain text, links, images, lists, forms, other tables, etc.
<table border="1">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
HTML UNORDERED LISTS
• An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
• The list items are marked with bullets (typically small black circles).
• <ul>
<li>Coffee</li>
<li>Milk</li>
</ul>
• How the HTML code above looks in a browser:
• Coffee
• Milk
HTML ORDERED LISTS
• An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
• The list items are marked with numbers.
• <ol>
<li>Coffee</li>
<li>Milk</li>
</ol>
• How the HTML code above looks in a browser:
1. Coffee
2. Milk
HTML FORMS
• HTML forms are used to pass data to a server.
• The <form> tag is used to create an HTML form:
• <form>
.
input elements
.
</form>
HTML FORMS - THE INPUT
ELEMENT
• The most important form element is the <input> element.
• The <input> element is used to select user information.
• An <input> element can vary in many ways, depending on the type attribute. An
<input> element can be of type text field, checkbox, password, radio button, submit
button, and more.
HTML IFRAMES
• An iframe is used to display a web page within a web page.
• Syntax for adding an iframe:
<iframe src="URL"></iframe>
• The URL points to the location of the separate page.
HTML COLORS
• HTML colors are defined using a hexadecimal notation (HEX) for the combination of
Red, Green, and Blue color values (RGB).
THANK
YOU

Weitere ähnliche Inhalte

Ähnlich wie learnhtmlbyvipuladissanayake-170516061515 (1).pptx

Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for studentsvethics
 
BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptxMattMarino13
 
HTML Comprehensive Overview
HTML Comprehensive OverviewHTML Comprehensive Overview
HTML Comprehensive OverviewMohamed Loey
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlvinita mathur
 
Html tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.comHtml tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.comShwetaAggarwal56
 
SEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.inSEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.inSky Infotech
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlveena parihar
 
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptxHTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptxTEJASARGADE5
 
htmlnotes-180924151434.pdf dafdkzndsvkdvdd
htmlnotes-180924151434.pdf dafdkzndsvkdvddhtmlnotes-180924151434.pdf dafdkzndsvkdvdd
htmlnotes-180924151434.pdf dafdkzndsvkdvddhemanthkalyan25
 
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 basichemanthkalyan25
 
Html ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangaloreHtml ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangalorefathima12
 
Basic HTML
Basic HTMLBasic HTML
Basic HTMLSayan De
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTMLAmeer Khan
 

Ähnlich wie learnhtmlbyvipuladissanayake-170516061515 (1).pptx (20)

Basic Html Knowledge for students
Basic Html Knowledge for studentsBasic Html Knowledge for students
Basic Html Knowledge for students
 
BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptx
 
HTML Comprehensive Overview
HTML Comprehensive OverviewHTML Comprehensive Overview
HTML Comprehensive Overview
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.comHtml tutorials by www.dmdiploma.com
Html tutorials by www.dmdiploma.com
 
Html introduction
Html introductionHtml introduction
Html introduction
 
SEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.inSEO Training in Noida- Skyinfotech.in
SEO Training in Noida- Skyinfotech.in
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptxHTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
HTML 5_cfbe4b8d-092saawww24bb33cb2358.pptx
 
Html notes
Html notesHtml notes
Html notes
 
Learn html from www
Learn html from wwwLearn html from www
Learn html from www
 
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
 
Html ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangaloreHtml ppt by Fathima faculty Hasanath college for women bangalore
Html ppt by Fathima faculty Hasanath college for women bangalore
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 

Kürzlich hochgeladen

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 

Kürzlich hochgeladen (20)

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 

learnhtmlbyvipuladissanayake-170516061515 (1).pptx

  • 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 describe document content • HTML documents contain HTML tags and plain text • HTML documents are also called web pages
  • 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
  • 4. HTML ELEMENTS • "HTML tags" and "HTML elements" are often used to describe the same thing. HTML Element: <p>This is a paragraph.</p>
  • 5. WEB BROWSERS • The purpose of a web browser (such as Google Chrome, Internet Explorer, Firefox, Safari) is to read HTML documents and display them as web pages. • The browser does not display the HTML tags, but uses the tags to determine how the content of the HTML page is to be presented/displayed to the user
  • 8. HTML EDITORS • HTML can be edited by using a professional HTML editor like: • Adobe Dreamweaver • Microsoft Expression Web • CoffeeCup HTML Editor • Notepad ++ / Notepad
  • 9. HTML BASICS • 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>
  • 10. HTML BASICS • HTML Paragraphs • HTML paragraphs are defined with the <p> tag. • Example <p>This is a paragraph.</p> <p>This is another paragraph.</p> • HTML Links • HTML links are defined with the <a> tag. • Example <a href="http://www.w3schools.com">This is a link</a>
  • 11. HTML BASICS • HTML Images • HTML images are defined with the <img> tag. • Example <img src="w3schools.jpg" width="104" height="142">
  • 12. 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 • Example
  • 13. HTML DOCUMENT EXAMPLE <!DOCTYPE html> <html> <body> <p>This is my first paragraph.</p> </body> </html>
  • 14. 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).
  • 15. HTML ATTRIBUTES • Attributes provide additional information about HTML elements. • 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“ • Example <a href="http://www.mcsoftsis.com">This is a link</a>
  • 16. HTML HEADINGS • HTML Headings • Headings are defined with the <h1> to <h6> tags. • <h1> defines the most important heading. <h6> defines the least important heading. • Example <h1>This is a heading</h1> <h2>This is a heading</h2> <h3>This is a heading</h3>
  • 17. HTML LINES • The <hr> tag creates a horizontal line in an HTML page. • The hr element can be used to separate content: • Example <p>This is a paragraph.</p> <hr> <p>This is a paragraph.</p> <hr> <p>This is a paragraph.</p>
  • 18. HTML COMMENTS • Comments can be inserted into the HTML code to make it more readable and understandable. Comments are ignored by the browser and are not displayed. • Comments are written like this: • Example <!-- This is a comment -->
  • 19. HTML PARAGRAPHS • Paragraphs are defined with the <p> tag. • Example <p>This is a paragraph</p> <p>This is another paragraph</p>
  • 20. HTML LINE BREAKS • Use the <br> tag if you want a line break (a new line) without starting a new paragraph: • <p>This is<br>a para<br>graph with line breaks</p> • The <br> element is an empty HTML element. It has no end tag.
  • 21. HTML TEXT FORMATTING • HTML uses tags like <b> and <i> for formatting output, like bold or italic text.
  • 22. HTML HYPERLINKS (LINKS) • The HTML <a> tag defines a hyperlink. • A hyperlink (or link) is a word, group of words, or image that you can click on to jump to another document. • When you move the cursor over a link in a Web page, the arrow will turn into a little hand. • The most important attribute of the <a> element is the href attribute, which indicates the link’s destination. • By default, links will appear as follows in all browsers: • An unvisited link is underlined and blue • A visited link is underlined and purple • An active link is underlined and red
  • 23. HTML <HEAD> • The <head> element is a container for all the head elements. Elements inside <head> can include scripts, instruct the browser where to find style sheets, provide meta information, and more.
  • 24. THE HTML <TITLE> ELEMENT • The <title> tag defines the title of the document. • The <title> element is required in all HTML/XHTML documents. • The <title> element: • defines a title in the browser toolbar • provides a title for the page when it is added to favorites • displays a title for the page in search-engine results
  • 25. THE HTML <STYLE> ELEMENT • The <style> tag is used to define style information for an HTML document. • Inside the <style> element you specify how HTML elements should render in a browser: <head> <style type="text/css"> body {background-color:yellow;} p {color:blue;} </style> </head>
  • 26. HTML STYLES - CSS • CSS was introduced together with HTML 4, to provide a better way to style HTML elements. • CSS can be added to HTML in the following ways: 1. Inline - using the style attribute in HTML elements 2. Internal - using the <style> element in the <head> section 3. External - using an external CSS file
  • 27. HTML IMAGES • In HTML, images are defined with the <img> tag. • The <img> tag is empty, which means that it contains attributes only, and has no closing tag. • To display an image on a page, you need to use the src attribute. Src stands for "source". The value of the src attribute is the URL of the image you want to display. • Syntax for defining an image: <img src="url" alt="some_text">
  • 28. HTML TABLES • Tables are defined with the <table> tag. • A table is divided into rows (with the <tr> tag), and each row is divided into data cells(with the <td> tag). td stands for "table data," and holds the content of a data cell. A <td> tag can contain text, links, images, lists, forms, other tables, etc. <table border="1"> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table>
  • 29. HTML UNORDERED LISTS • An unordered list starts with the <ul> tag. Each list item starts with the <li> tag. • The list items are marked with bullets (typically small black circles). • <ul> <li>Coffee</li> <li>Milk</li> </ul> • How the HTML code above looks in a browser: • Coffee • Milk
  • 30. HTML ORDERED LISTS • An ordered list starts with the <ol> tag. Each list item starts with the <li> tag. • The list items are marked with numbers. • <ol> <li>Coffee</li> <li>Milk</li> </ol> • How the HTML code above looks in a browser: 1. Coffee 2. Milk
  • 31. HTML FORMS • HTML forms are used to pass data to a server. • The <form> tag is used to create an HTML form: • <form> . input elements . </form>
  • 32. HTML FORMS - THE INPUT ELEMENT • The most important form element is the <input> element. • The <input> element is used to select user information. • An <input> element can vary in many ways, depending on the type attribute. An <input> element can be of type text field, checkbox, password, radio button, submit button, and more.
  • 33. HTML IFRAMES • An iframe is used to display a web page within a web page. • Syntax for adding an iframe: <iframe src="URL"></iframe> • The URL points to the location of the separate page.
  • 34. HTML COLORS • HTML colors are defined using a hexadecimal notation (HEX) for the combination of Red, Green, and Blue color values (RGB).