Our social:

Monday

Add More To Your Basic HTML Page

 HTML Tags are used to describe the contents of a web page so that you can view them in browsers. And in some mins, we will spice up our Basic HTML Page with some tags but before then, what is HTML Tags all about?


  1. HTML tags are keywords (tag names) surrounded by angle brackets like <html>
  2.  HTML tags normally come in pairs like <b> and </b>
  3.  The first tag in a pair is the start tag, the second tag is the end tag
  4.  The end tag is written like the start tag, with a forward slash before the tag name 
  5.  Start and end tags are also called opening tags and closing tags
Requirements
  1.  Text Editor (Notepad for those using Windows or TextEdit for Mac users).
  2.  Web Browser (Internet Explorer, Firefox, Google Chrome, Netscape etc).

Step 1
 Open the html file you created based on the Basic HTML Page post  with a text editor (Notepad or TextEdit ).

Step 2
Add the code (or copy & paste) between the <body></body> tags.

<html>

<head>
<title>
A Simple Web Page</title>
</head>

<body>
<center>
<h1>This is a heading</h1>
<p>This is a paragraph</p>
<b>This text is in bold</b>
<i>This text is in italics</i> 
 
<p>
It's nice to be able to add <b>bold text</b> and <i>italics.</i></p>

</center>
 
</body>

</html>

Step 3
  Open the file in any browser by simply
  1. Navigating to your file then double clicking on it
...OR...
  1. Open up your computer's web browser (for example, Internet Explorer, Firefox, Netscape etc).
  2. Select File > Open, then click "Browse". A dialogue box will appear prompting you to navigate to the file. Navigate to the file, then select "Open".
 Summary
  • <title></title> : Sets the title of a web page.
  • <h1></h1> : Beginning and end of a heading.  
  • <p></p> : Beginning and end of a paragraph (puts a space between paragraphs).
  •  <b></b> : Bold text.
  •  <i></i> : Italics.
  •  <center></center> : Centre everything between these tags (note the American spelling).
  Note that not all browsers/user agents support all HTML tags and their attributes, so you should try to test your pages in as many browsers as you can.

<<How To Create A Basic HTML Page

0 comments:

Post a Comment