Introduction to HTML (HTML Overview)
What is an HTML file?
HTML is an abbreviation for Hyper Text Markup Language. An HTML file is a text file containing many small marks. These tags tell the browser how to display this information. An HTML file extension is .html or .htm. You can use notepad to create these HTML files.
Do you want to try it now?
If you use Windows, please open a notepad.
If you use an Apple, open SimpleText.
Open TeXtedit in OSX and change the following settings: Select "Plain Text" in the parameter setting window instead of "RICH TEXT" and select "Ignore Rich Text Commands in Html Files". This is very important, if you don't do this, then your HTML code may not work properly.
Then type the following text:
hEAD>
This is my first web page. These texts are bold. b>
body>
html>
Save the file as "mypage.htm".
Open your browser. Select Open options from your browser's file menu. Then you will see a dialog.. Click Browse and select the HTML file you created, you just created "mypage.htm", select it to click the open button. Now you will see an address appeared in the dialog, such as "c: /mydocuments/mypage.htm". Click OK, browse will show this page.
Example analysis
The first tag in your HTML file is . This tag tells you a browser now is an HTML document. The last tag of your HTML file is html>. This tag tells your browser that this HTML document is over. .
The text between
tags and head> is header information. This information will not be displayed in the window of the browser.In the
The text in the
The files between the and b> tags will be displayed in bold.
HTM or HTML extension?
When you save an HTML file, you can use .htm or .html extension. We used .htm in the past example. I think it is a bad habit, which is from three characters from the extensions used in the past software. But now we should use .html better.
HTML editor
You can use a visible HTML editor instead of writing an HTML file. Frontpage, Claris Home Page, or Adobe Pagemill
But if you want to be a good web designer, we strongly recommend that you use Notepad to learn about the basic knowledge of HTML.
FAQ
Q: After I edited my HTML file, I can't see the result in the browser. Why? A: Make sure you save your files such as "c: /mypage.htm". Make sure you open in your browser Is the same file. Q: I modified my html file but didn't see change in the browser. Why? A: Browser caches your page is that you don't have to read the same file. When you modify your web, browser I don't know it modified because it uses the content in the cache.. You can click the refresh button on your browser to force your browser to reload this file.
Q: Can I use Internet Explorer and Netscape Navigator? A: Of course, you can do all the training using Netscape 3.0 or higher, Internet Explorer 3.0 or higher. However, behind the course has a small number of examples You need you to use Internet Explorer 4.0 / 5.0 or 6.0, or Netscape 6.0 to display it. Q: Is my computer to run under Windows? Is the Apple? A: You can run these examples such as Mac in a non-Windows environment. However, there is a small number of examples of the following courses. You need to use the newer versions of Windows such as Windows 98 or Windows 2000. This article is translated from http://www.w3schools.com/html/html_intro.asp, is an HTML Tutorial.