 HTML is a language for describing web pages.
 HTML stands for Hyper Text Markup Language
 HTML is a markup language
 ...
HTML markup tags are usually called HTML tags
 HTML tags are keywords (tag names)
surrounded by angle brackets like <html...
 HTML tags" and "HTML elements" are
often used to describe the same thing.
 But strictly speaking, an HTML element is
ev...
 The purpose of a web browser (such as
Google Chrome, Internet Explorer,
Firefox, Safari) is to read HTML
documents and d...
 Below is a visualization of an HTML page
structure:
 Since the early days of the web, there
have been many versions of HTML:
Version Year
HTML 1991
HTML+ 1993
HTML 2.0 1995
...
 The <!DOCTYPE> declaration helps the
browser to display a web page correctly.
 There are many different documents on
th...
 HTML5
<!DOCTYPE html>
 HTML 4.01
<!DOCTYPE HTML PUBLIC "-//W3C//DTD
HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/h...
HTML can be edited by using a
professional HTML editor like:
 Adobe Dreamweaver
 Microsoft Expression Web
However, for l...
 Step 1: Start Notepad
 To start Notepad go to:
 Start
All Programs
Accessories
Notepad

 Step 2: Edit Your HTML with Notepad
 Type your HTML code into your Notepad:
 Save as and Run
HTML headings are defined with the <h1>
to <h6> tags.
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a ...
 HTML paragraphs are defined with the
<p> tag.
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
 HTML links are defined with the <a> tag.
<a href="http://www.w3schools.com">This
is a link</a>
 HTML images are defined with the <img>
tag.
<img src="w3schools.jpg" width="104"
height="142">
 An HTML element is everything from the start
tag to the end tag:
 * The start tag is often called the opening tag.
The ...
 An HTML element starts with a start tag /
opening tag
 An HTML element ends with an end tag /
closing tag
 The element...
 HTML elements can have attributes
 Attributes provide additional
information about an element
 Attributes are always s...
 Below is a list of some attributes that can
be used on any HTML element:
 The <head> element is a container for all
the head elements. Elements inside
<head> can include scripts, instruct the
br...
 The <title> tag defines the title of the
document.
 The <title> element is required in all
HTML/XHTML documents.
The <t...
 <!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</bo...
 The <link> tag defines the relationship
between a document and an external
resource.
 The <link> tag is most used to li...
 The <style> tag is used to define style
information for an HTML document.
 Inside the <style> element you specify how
H...
 CSS (Cascading Style Sheets) is used to style
HTML elements.
 CSS was introduced together with HTML 4, to
provide a bet...
 EX : <p style="color:blue;margin-
left:20px;">This is a paragraph.</p>
 <body style="background-color:yellow;">
<h2 sty...
 An internal style sheet can be used if one
single document has a unique style.
Internal styles are defined in the <head>...
 <head>
<style type="text/css">
body {background-color:yellow;}
p {color:blue;}
</style>
</head>
 An external style sheet is ideal when the style is
applied to many pages. With an external style
sheet, you can change t...
 Tables are defined with the <table> tag.
 A table is divided into rows (with the <tr>
tag), and each row is divided int...
 Let's start with the semantic HTML code
required to render a basic table
 <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 ...
<caption></caption>:
The <caption> element allows you to
give the table data a caption. Most
browsers will center the cap...
 The <th> element delineates the content
between the tag as the table head titles for
each table section, which can be a
...
 HTML Unordered Lists
 An unordered list starts with the <ul> tag.
Each list item starts with the <li> tag.
 The list i...
 An ordered list starts with the <ol> tag.
Each list item starts with the <li> tag.
 The list items are marked with numb...
Html introduction
Html introduction
Html introduction
Html introduction
Html introduction
Html introduction
Html introduction
Html introduction
Html introduction
Upcoming SlideShare
Loading in...5
×

Html introduction

297
-1

Published on

Html introduction

Published in: Design
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
297
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
23
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Html introduction

  1. 1.  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
  2. 2. 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
  3. 3.  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: <tagname>content</tagname> <p>This is a paragraph.</p>
  4. 4.  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:
  5. 5.  Below is a visualization of an HTML page structure:
  6. 6.  Since the early days of the web, there have been many versions of HTML: 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
  7. 7.  The <!DOCTYPE> declaration helps the browser to display a web page correctly.  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.
  8. 8.  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/xhtml 1-transitional.dtd">
  9. 9. HTML can be edited by using a professional HTML editor like:  Adobe Dreamweaver  Microsoft Expression Web 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.
  10. 10.  Step 1: Start Notepad  To start Notepad go to:  Start All Programs Accessories Notepad 
  11. 11.  Step 2: Edit Your HTML with Notepad  Type your HTML code into your Notepad:  Save as and Run
  12. 12. HTML headings are defined with the <h1> to <h6> tags. <h1>This is a heading</h1> <h2>This is a heading</h2> <h3>This is a heading</h3>
  13. 13.  HTML paragraphs are defined with the <p> tag. <p>This is a paragraph.</p> <p>This is another paragraph.</p>
  14. 14.  HTML links are defined with the <a> tag. <a href="http://www.w3schools.com">This is a link</a>
  15. 15.  HTML images are defined with the <img> tag. <img src="w3schools.jpg" width="104" height="142">
  16. 16.  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. Start tag * Element content End tag * <p> This is a paragraph </p> <a href="default.htm"> This is a link </a> <br>
  17. 17.  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
  18. 18.  HTML elements can have attributes  Attributes provide additional information about an element  Attributes are always specified in the start tag  EX : HTML links are defined with the <a> tag. The link address is specified in the href attribute:  <a href="http://www.w3schools.com">This is a link</a>
  19. 19.  Below is a list of some attributes that can be used on any HTML element:
  20. 20.  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 following tags can be added to the head section: <title>, <style>, <meta>, <link>, <script>, <noscript>, and <base>.
  21. 21.  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
  22. 22.  <!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> The content of the document...... </body> </html>
  23. 23.  The <link> tag defines the relationship between a document and an external resource.  The <link> tag is most used to link to style sheets:  <head> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head>
  24. 24.  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>
  25. 25.  CSS (Cascading Style Sheets) is used to style HTML elements.  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:  Inline - using the style attribute in HTML elements  Internal - using the <style> element in the <head> section  External - using an external CSS file
  26. 26.  EX : <p style="color:blue;margin- left:20px;">This is a paragraph.</p>  <body style="background-color:yellow;"> <h2 style="background-color:red;">This is a heading</h2> <p style="background-color:green;">This is a paragraph.</p> </body>
  27. 27.  An internal style sheet can be used if one single document has a unique style. Internal styles are defined in the <head> section of an HTML page, by using the <style> tag, like this:
  28. 28.  <head> <style type="text/css"> body {background-color:yellow;} p {color:blue;} </style> </head>
  29. 29.  An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one file. Each page must link to the style sheet using the <link> tag. The <link> tag goes inside the <head> section:  <head> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head>
  30. 30.  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.
  31. 31.  Let's start with the semantic HTML code required to render a basic table
  32. 32.  <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>
  33. 33. <caption></caption>: The <caption> element allows you to give the table data a caption. Most browsers will center the caption and render it the same width as the table by default.
  34. 34.  The <th> element delineates the content between the tag as the table head titles for each table section, which can be a column, a row or a group of cells. This is useful not just to help semantically describe what the function of this content is, but it also helps render it more accurately in a variety of browsers and devices.
  35. 35.  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>
  36. 36.  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>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×