HTML Basic Examples

please click here for more wordpress cource

Sure, here are some basic examples of HTML code:

  1. Creating a basic web page:




<!DOCTYPE html>
<html>
<head>
	<title>My Web Page</title>
</head>
<body>
	<h1>Welcome to my web page</h1>
	<p>This is my first web page.</p>
</body>
</html>

Adding an image to the web page:

<!DOCTYPE html>
<html>
<head>
	<title>My Web Page</title>
</head>
<body>
	<h1>Welcome to my web page</h1>
	<p>This is my first web page.</p>
	<img src="myimage.jpg" alt="My Image">
</body>
</html>

Adding an image to the web page:

<!DOCTYPE html>
<html>
<head>
	<title>My Web Page</title>
</head>
<body>
	<h1>Welcome to my web page</h1>
	<p>This is my first web page.</p>
	<img src="myimage.jpg" alt="My Image">
</body>
</html>

Creating a link to another web page:

<!DOCTYPE html>
<html>
<head>
	<title>My Web Page</title>
</head>
<body>
	<h1>Welcome to my web page</h1>
	<p>This is my first web page.</p>
	<a href="http://www.example.com">Visit Example.com</a>
</body>
</html>

You may also like...

Popular Posts

Leave a Reply

Your email address will not be published. Required fields are marked *