Full HTML file

Source: Internet
Author: User
Tags add empty window
The rapid development of the Internet, so many software companies see unlimited business opportunities, have developed a variety of home page production software. In order to let readers understand the characteristics of these software, learning HTML code in the process of learning to use some of the appropriate tools, now we have to create a home page production software site, explain the site production.
Index.html
<HTML>
<HEAD>
<TITLE> Homepage Production software Introduction </TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>
Enter the code above to save the disk. Because this page is the homepage of our website, we want the visitor to enter our URL, will show the content of this page, so we set this file as the default document, the file name is index.html, also can be index.htm.
Fonts and paragraphs

FONT, PRE, Strong, EM, B, I, Hx, P
Paragraph
Now add some substantive content. Add between <BODY> and </BODY>:
If the foolish public bulldozer, perhaps to his grandson generation, can put Taihang, Wang Hui moved, do not have to wait until "posterity, endless." Also, although you can write the home page with Notepad, but a good homepage making software can make you work easily and freely, with less effort.
Go to Yahoo to look up the homepage making software (HTML EDITOR), the result is stunned. The endless business opportunities of the Internet have made many software developers flock to the market, trying to get a slice of the pie. Fortunately, these software are generally free to get or trial, you can try a few, from which to find the software to meet your requirements. This, of course, takes some time, including the need to pay for the Internet download time.
This site mainly introduces several current popular homepage making software, compares their advantages and disadvantages, helps the reader to choose own software.
The source code should be:
Do you remember the words of the primary school language teacher? "When the content of the article changes, make a paragraph, and the beginning of the paragraphs is empty." "Obviously this article in HTML is not a pass." How could that be? Originally, HTML ignores the return and contiguous spaces in the source code, and must arrange paragraph formatting with a special tag.
<P>
The mark of a paragraph is <p></p>, and the middle is a section of content. </P> can be omitted because the HTML touches the next <P> knows another paragraph.
Add <P> at the beginning of each paragraph.


P's Properties
One of the basic properties of P is align (alignment), which can have left, center (middle), right (right-hand) values, and the default is left.
<p align= "Left" > aligned paragraph.
<p align= "Center" > Centered paragraph.
<p align= "Right" > aligned paragraph.
Space
A space is a special character. HTML uses a & plus string to represent some special characters. The space is "".
A Chinese character to occupy the size of 2 English characters, empty the position of 2 Chinese characters need to add 4 "".
Now the effect is more satisfactory.
Special paragraph
PRE
Address
HR
Title
Although the reader can know the title of your homepage based on the contents of the title of the browser. But because most of the content in the browser window client area, so in the body part of a title, can make people at a glance.
followed by the <BODY> add a sentence:
Homepage Production Software Introduction
The title's character is naturally larger, just as Microsoft Word specifically defines several formats for the title, HTML has several tags that define the font size of the caption, that is, <H1> title 1<H2> title 2<H3> title 3<H4> title 4<H5> title 5<H6> title 6No need to add <P>,<Hx></Hx> text is a paragraph. Also, the HX tag has a align property, and its settings are the same as <P>.
Now set the title to the H1 format, which is:
&LT;H1 align= "Center" > Homepage Production software Introduction </H1>
Line Wrap
<BR>
You can see that in the place where there is <P>, the HTML is empty, and then the next paragraph begins. If I want to write a poem or a lyric, I have to change lines in one paragraph, so the interval is too large. Can be implemented with <BR>, such as:
<HTML>
<HEAD>
<TITLE> Silent Night Thinking </TITLE>
</HEAD>
<BODY>
The bright moonlight,<br> before the bed
Doubt is frost on the ground. <br>
Looking up at the moon,<br>
Head down and think of home. <br>
</BODY>
</HTML>
<NOBR>
Let's consider another extreme. The line of the poem is shorter, and some of the lyrics may be long. When the browser's width is not reached, the line wraps automatically. And I don't want to, I want to make sure this line is displayed in the same line, even if the browser requires a horizontal scroll bar. Just include this line in <NOBR></NOBR>.
<HTML>
<HEAD>
<TITLE> Silent Night Thinking </TITLE>
</HEAD>
<BODY>
<NOBR> the bright moonlight,</nobr><br> before bed
<NOBR> is frost on the ground. </NOBR><br>
<NOBR> look at the moon,</nobr><br>
<NOBR> bow to think of home. </NOBR><br>
</BODY>
</HTML>
<WBR>
You can use <WBR> if you want to wrap a few places in a <NOBR></NOBR> pair.
<HTML>
<HEAD>
<TITLE> Silent Night Thinking </TITLE>
</HEAD>
<BODY>
<NOBR>
The bright moonlight,<wbr> before the bed
Doubt is frost on the ground. <wbr>
Looking up at the moon,<wbr>
Head down and think of home. <wbr>
</NOBR>
</BODY>
</HTML>
When the window width is wide enough, the four verses are displayed in one line. If not, you will be able to change lines where there is <wbr>, so that you can guarantee that every verse is in one line.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.