1. Explain about the HTML code above?
The HTML code is about the language working on displaying html file on a browser. The html file contains important parts such as head, title and body. Function of HTML tags :-
- <html> - Defines an html document.
- <head> - Contains any code that is not used to display elements on the webpage.
- <title> - Defines the title of the webpage .
- <body> - Contains the visible elements of the webpage.
2. Why the use of HTM or HTML Extension?
- HTML stands for Hyper Text Markup Language, which is a markup language used for creating web pages. HTML actually uses markup tags for describing web pages and applications.
- HTML actually uses markup tags for describing web pages. As file extensions, they are denoted as .htm or .html. If you use HTML files to create your web page, then an .html or .htm will most likely appear at the end of its URL. Here are examples: ‘http://code.google.com/chrome/extensions/samples.html’ and ‘http://edgewisdom.com/Finance1.htm’.
- HTM is used only as an alternate extension to .HTML. This happens for some reasons, for example, in some operating systems, like the Disk Operating System and Window 3.X, they do not allow the use of four-letter extensions.
- HTM or HTML Extension is very important in creating a webpage :-
- 1) Both the .htm and .html is used as extension for html page or file.
- 2) In recent days, html extension is widely used for example in the new operating systems while the htm extension which was widely used in the olden days can still be used in the older operating systems such as DOS and also the newer operating systems.
3. How to view the HTML Source?
- PC
- Firefox – CTRL + U (Meaning press the CTRL key on your keyboard and hold it down. While holding down the CTRL key, press the “u” key.) Alternatively, you can go to the “Firefox” menu and then click on “Web Developer,” and then “Page Source.”
- Internet Explorer – CTRL + U. Or right click and select “View Source.”
- Chrome – CTRL + U. Or you can click on the weird-looking key with three horizontal lines in the upper right hand corner. Then click on “Tools” and select “View Source.”
- Opera – CTRL + U. Or you can right click on the webpage and select "View Page Source.key with three horizontal lines in the upper right hand corner. Then click on “Tools” and select “View Source.”
Mac - Safari – The keyboard shortcut is Option+Command+U. You also can right click on the webpage and select "Show Page Source."
- Firefox – You can right click and select "Page Source" or you can navigate to your "Tools" menu, select "Web Developer," and click on "Page Source." The keyboard shortcut is Command + U.
- Chrome – Navigate to "View" and then click on "Developer" and then "View Source." You also can right click and select "View Page Source." The keyboard shortcut is Option+Command+U.
No comments:
Post a Comment