Wednesday, 20 March 2019

Lab 3

<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<h1 align="center">My First Webpage</h1>
<p>Welcome to my first web page. I am writing this page using a text editor and plain old html.</p>
<p>By learning html, I'll be able to create web pages like a pro....<br>
which I am of course.</p>
</body>
</html>

1. Explain about the HTML code above.
<html> Defines the root of an HTML document
<head>
Defines information about the document
<title>
Defines a title for the document
<body>
Defines the document's body
<h1> Defines HTML headings where align="center" arranged its position at the middle
<p>         Defines a paragraph
<br>
Defines a single line break

2. Explain about the two types of HTML Tags?
HTML Tags can be of two types which are paired tags or singular tags.

a) The first one is paired tags which is also called container tag. A tag is said to be a paired tag if the text is placed between a tag and its companion tag. In paired tags, the first tag is referred to as Opening Tag and the second tag is referred to as Closing Tag.

b) The second one type of tag is the singular tag, which is also known as a stand-alone tag or empty tag. The stand-alone tag does not have companion tag or closing tag.

3. Give some examples of HTML tags on both types of HTML tags.
a) Example of Paired Tags in HTML:
<p>this is example of paired tag</p>
<body>this is the second example</body>

b) Example of Singular Tags in HTML:
<br>
<hr>
<img>
<meta>

Wednesday, 6 March 2019

First Post

<html>
<head>
<title> My first Webpage. </title>
</head>
<body>
This is my first homepage. <b>This text is bold </bold>
</body>
</html>

1. Explain about the HTML code above.
The web pages start with the html element. It's also called the root element because it's at the root of the tree of elements that make up a web page. To create the html element, you write an opening <html> tag followed by a closing </html> tag. The head element contains information about the web page, as opposed to the web page content itself. The title element contains the title of the page. The body element appears after the head element in the page. It should contain all the content of your web page: text, images, and so on. HTML doesn't have a <bold> tag, instead you would have to use <b>. Note however, that using <b> is discouraged in favor of CSS for a while now.

2. Why the use of HTM or HTML Extension?
The webpage’s standard file extensions are .htm and .html. Both these extensions are related to HTML, the basic language used for writing webpages. File extensions help the operating system to identify the kind of data file it is dealing with and in identifying an appropriate program to read and edit it.

3. How to View  HTML Source?
To view a html source on Google Chrome, simply Right-click on a blank part of the web page and select View page source from the pop-up menu that appears.