Previously, we ascertained that HTML documents are basically text files which contain HTML tags. HTML elements are defined by HTML tags and are the building blocks of any HTML webpage. Since HTML elements are made up of tags, it is pertinent to have some idea of HTML tags.
The first thing you should know is that the very first HTML tag is <HTML>. In this language, whenever you insert a tag, it is necessary to close it. This is done by including a forward slash in the closing tag as demonstrated below:
<HTML>àOpening tag.
</HTML>àClosing tag. This indicates to the browser that this is the end of your HTML document.
This is followed by the <body> tag. The data between the opening and closing <body> tags is the data that will be displayed by your browser. This can be preceded by a <head> tag that displays information about the header of your webpage and a <title> tag that specifies the name of your document and appears on the browser’s caption.
Now let’s use these tags in the following beginners html tutorial or example. See below.
<html>
<head>
<title>Test </title>
</head>
<body>
<I>Hello World!!</I>
</body>
</html>
What are the <I> and </I> tags? They are the HTML elements that specify that the text should be italic. Let’s try another example:
<html>
<head>
<title>Test </title>
</head>
<body>
<big><strong><I>Hello World!!</I></big></strong>
</body>
</html>
This example demonstrated how the elements can be used in conjunction with each other which as shown above is quite easy.
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
You must log in to post a comment.