Welcome. You're here to study, so study!

Friday, February 14, 2014

Html

Assalamualaikum. Today we are going to share about HTML code. What is HTML ? Basically, HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language. It is also known as markup language. Markup language is a set of markup tags. Then, the tags describe document content. In addition, HTML documents contain HTML tags and plain text. It is also called as web pages. Okay here we will explain briefly about HTML Tags. HTML tags are keywords (tag names) surrounded by angle brackets like . It is normally come in pairs like and . The first tag in a pair is known as start tag, then the second tag is known as end tag. The end tag is written like the start tag, with a forward slash before the tag name. Start tags is called as OPENING TAGS while end tags is called as CLOSING TAGS. Besides, do you even know about the HTML elements? “HTML elements” and “HTML tags” are often used to describe the same thing. But an HTML element is everything between the start tag and the end tag, including the tags: HTML element:

This is a paragraph.
<p> = start tag
</p> = end tag

What we learn today is the basic of how to create HTML code.

Step 1: open a application named NOTEPAD.


Step 2: write the code.


Step 3: save the document as HTML document.


Step 4: Open the folder where you save the code and click on the document you just saved.


Then a window will appear.The code that you create will show what should appear on the window.for example,if you type the code below you will see a table appears on the window.

For example:

<html>
<body>

<table border="1" style="width:300px">
<tr>
<td>Jill</td>
<td>Smith</td> <td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>

</body>
</html>

The outcome will be:


Jill Smith 50
Eve Jackson 94


Try it yourself :)
For further infos on this, try http://www.w3schools.com/html/html_tables.asp
Goodluck!

No comments:

Post a Comment