<html>
<head>
<title>My first Webpage</title>
</head>
<body>
This is my first homepage.<b>This text is bold</bold>
</body>
</html>
Explain about the HTML code above.
The HTML document itself begins with <html> and ends with </html>.
The visible part of the HTML document is between <body> and </body>.
HTML headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading.
HTML uses elements like <b> and <i> for formatting output, like bold or italic text.
Refer:
https://www.w3schools.com/html/html_basic.asp
https://www.w3schools.com/html/html_formatting.asp
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 files, the basic language used for writing webpages. These extensions are usually used for webpages with static content.
The only difference is that .HTM is used as an alternate to .HTML for some operating systems and servers that do not accept four-letter extensions. In actual fact, .HTM was usually used back in the old days, like during the time when DOS was popular. In the present time, computers can now easily support big files and wide length of file names, therefore, having a four-letter extension is not a problem anymore.
Refer:
https://www.quora.com/What-is-the-difference-between-a-html-and-a-htm-page
http://www.differencebetween.net/technology/internet/difference-between-htm-and-html/#ixzz5hRcLyAYT
How to view HTML source?
To see the HTML source code of a web document, it depends on the browser we’re using. Follow the appropriate instructions below:
- Firefox and Mozilla: Right-click the page and select . To see the source of an individual frame, right-click or
Ctrl-click the frame and select , and then . - Internet Explorer: From the menu (IE 9) or the menu (IE 8), select .If the menu bar is hidden, press
Altto make it visible.To see the source for frames, right-click within the frame, and from the pop-up menu select or . - Chrome: From the options wrench icon on the upper right, select and then , or right-click and select . To see the source for frames, right-click within the frame, and from the pop-up menu, select .
- Safari: In Safari 6, from the menu, click . In the window that opens, check . From the menu that now appears, choose . Alternatively, you can right-click or
Ctrl-click and select this same option.In earlier versions of Safari, from the menu, select . To see the source for frames, right-click orCtrl-click within the frame, and from the pop-up menu, select . - Opera: Right-click and select from the menu. To see the source for frames, right-click within the frame, and from the pop-up menu, select .
Refer: