In this HTML tutorial we continue to learn HTML tags and also start to learn the basics of attributes.

Standard HTML Heading Styles:

<h1>This is header 1</h1>
<h2>This is header 2</h2>
<h3>This is header 3</h3>

 

Creating Links in HTML:

<a href=”http://NathanNeil.com”>Click Here</a> to go to NathanNeil.com

Note: Links are defined by the <a> tag. The address is specified in the href attribute.

 

Adding Images In HTML:

<img src=”test.jpg” alt=”nathanneil.com” ¬†width=”104″ height=”142″>

 

Note: Images are defined by <img> tag.

The following are additional attributes:
src = source file
alt = alternative text
width = size
height = size

Project Source Code:

Filename: tutorial2.html

<html>
<head>
<title>HTML Basics</title>
</head>

<body>
<h1>We made a HTML page.</h1>
<p>This is our first tutorial on HTML</p>
<h1>This is header 1</h1>
<h2>This is header 2</h2>
<h3>This is header 3</h3>
<a href=”http://NathanNeil.com”>Click Here</a> to go to NathanNeil.com
<img src=”test.jpg” alt=”nathanneil.com” width=”150″ height=”200″>

</body>
</html>

Pin It on Pinterest

Share This

Share this post with your friends!

%d bloggers like this: