Академический Документы
Профессиональный Документы
Культура Документы
HTML
What is HTML?
1
11/29/2018
HTML Tags
HTML Elements
2
11/29/2018
Web Browsers
3
11/29/2018
<html>
<body>
<h1>This a Heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
4
11/29/2018
5
11/29/2018
HTML Elements
6
11/29/2018
HTML Elements
HTML Elements
7
11/29/2018
HTML Elements
HTML Document Example
<!DOCTYPE html>
<html>
<head>
<title> HTML Document </title>
</head>
<body>
<p>This is my first paragraph.</p>
</body>
</html>
HTML Elements
HTML Document Example
<!DOCTYPE html>
<html>
<head>
<title> HTML Document </title>
</head>
<body>
<p>This is my first paragraph.</p>
</body>
</html>
8
11/29/2018
HTML Elements
HTML Elements
9
11/29/2018
HTML Elements
HTML Attributes
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"
10
11/29/2018
HTML Attributes
Attribute Example
HTML links are defined with the <a> tag. The link
address is specified in the href attribute:
HTML Attributes
11
11/29/2018
HTML Attributes
HTML Headings
12
11/29/2018
HTML Headings
HTML Headings
13
11/29/2018
HTML Lines
HTML Lines
The <hr /> tag creates a horizontal line in an HTML
page.
The hr element can be used to separate content:
<!DOCTYPE html>
<html> <body>
<p>The hr tag defines a horizontal rule:</p>
<hr />
<p>This is a paragraph</p>
<hr />
<p>This is a paragraph</p>
<hr />
<p>This is a paragraph</p>
</body> </html>
HTML Comments
14
11/29/2018
HTML Paragraphs
15
11/29/2018
Use the <br /> tag if you want a line break (a new
line) without starting a new paragraph:
Example:
<p>This is<br />a para<br />graph with
line breaks</p>
16
11/29/2018
HTML Editors
17