Lab 2- HTML

 

Name

 

 

LOY DONG XUAN

 

 

Matric. No.

 

AI2000236

 

 

Section

 

 

6

 

LabSheet2

Introduction to Web Technology

 

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


Figure 1.1 shows the HTML code displayed on the browser.




1. Explain about the HTML code above.

<html> 
 //We have everything surrounded in the HTML tag, with the start ending tag.
<head>
<title>My first Webpage.</title>     //This is the page title 
</head>
<body>
This is my first homepage.                        //This is the first sentence in the body.
<b> This text is bold</b>                           //Since there is no "<p></p>", or "<div>
                                                                      </div">, the sentence continues in the  
                                                                      same line. "<b></b>" makes the text bold 
</body>
</html>

We have everything surrounded in the HTML tag, we have the start and ending tag. Inside that, we have a head area and a body area. The head has nothing to do with the output that is in the browser.

 

The head has things like the page title it has things like links to CSS files and JavaScript files that we want to use metadata such as the description and keywords things like that the description and keywords are actually used by search engines like Google so that it knows some more information about what actually on the web page. In this case, the page title is “My first Webpage.”

 

Then in the body, we have the actual markup that is going to display in the browser so headings text images things like that now. In this case, the text displayed is “This is my first homepage” and followed by the bold text “This text is bold.”

 

 

2. Why the use of HTM or HTML Extension?

HTML is used for developing web pages and applications. HTML consists of elements; these elements define the structure of HTML pages. HTML elements are used to represent heading, paragraph, images, tables, and many more features. HTM is used as one of the file extensions for HTML pages.

 

 

The advantages of HTML are:-

  • HTML is easy to learn and use.

Since the goal of HTML is to describe the content of a page it has to be simple. HTML is not a programming language and writing HTML is not programming

 

  • HTML is supported by all browsers

In general, most core HTML and CSS functionality (such as basic HTML elements, CSS basic colors and text styling) works across most browsers you'll want to support

 

  • HTML is the most friendly search engine.

An HTML document is a plain text file that can be created or modified with any word processing program that can handle text.

 

3. How to View HTML Source?

 

Figure 2.1 shows the steps to view the HTML source.

1. First right click on the website we want to view the page source

2. Then click on “View page source.”

 


 Figure 2.2 shows the page source of the web we want to navigate.








Comments

Popular posts from this blog

Genshin HTML

LabSheet8_The div dl, dd, and dt elements