create your own

Sample HTML Program and Resulting Web Page

63
rate or flag this page

By dyesebel10

Here’s a sample web page and the HTML Markup behind it.

 

Sample web page
Sample web page

The above page contains different components such as image (picture), heading, paragraph, and a list of bulleted items. Notice that the heading size is big and in bold.

To view the HTML source program behind it, you can either click File then View Source or right-click on the page and select View Source.

Below is the HTML Markup or source you’ll see:

<html>
  <head>
  <title>Online Social Networking</title>
  </head>
  <body>
    <h1><img src=”social_networking.jpg” width=”75” height=”100” Alt=”Social Networking” align=”middle” hspace=”5”>Online Social Networking is the Way
    </h1>
    <p>In order to stay in touch with friends, family, and other relatives, one way to do it is through social networking online. Among most popular websites are the following:”
    </p>
    <ul>
      <li>Facebook</li>
      <li>MySpace</li>
      <li>Friendster</li>
      <li>Twitter</li>
      <li>Classmates</li>
      <li>Bebo</li>
    </ul>
  </body>
</html>

The text inside the less-than and greater-than signs (< >) is the HTML markup. In the above example, the <p>…</p> markup identifies the text as a paragraph while the <li>…</li> markup identifies each item in the bullet list. HTML almost always uses beginning and ending markups, also called tags.

Comments

RSS for comments on this Hub

No comments yet.

Submit a Comment

Members and Guests

Sign in or sign up and post using a hubpages account.


optional


  • No HTML is allowed in comments, but URLs will be hyperlinked
  • Comments are not for promoting your hubs or other sites

working