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?
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.
<p>It's nice to be able to add <b>bold text</b> and <i>italics.</i></p>
</center>
</body>
</html>
<<How To Create A Basic HTML Page
- HTML tags are keywords (tag names) surrounded by angle brackets like <html>
- HTML tags normally come in pairs like <b> and </b>
- The first tag in a pair is the start tag, the second tag is the end tag
- The end tag is written like the start tag, with a forward slash before the tag name
- Start and end tags are also called opening tags and closing tags
- Text Editor (Notepad for those using Windows or TextEdit for Mac users).
- 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>
<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
- Navigating to your file then double clicking on it
- Open up your computer's web browser (for example, Internet Explorer, Firefox, Netscape etc).
- 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".
- <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).
<<How To Create A Basic HTML Page
0 comments:
Post a Comment