Home >Web Front-end >HTML Tutorial >8 Powerful Tips for HTML Web Page Production_HTML/Xhtml_Web Page Production

8 Powerful Tips for HTML Web Page Production_HTML/Xhtml_Web Page Production

WBOY
WBOYOriginal
2016-05-16 16:46:022086browse

Although there are many webpage production tools that allow you to get the job done easily, you can get greater control if you use HTML. Here are a few tips.
1. It is much better to use , , and
statements to control text layout than
. Such as: <tt>Practical Network<br><i>Zeng Weibin</i><br></tt>

<br> 2. Do not use 800*600 resolution to create web pages. When viewers use 640*480 to view web pages, it will not only slow down the speed, but also cause misalignment of web page images and text. Of course, you can also use frame, horizontal control, table and other identification statements to replace the set pixels, but this will increase the workload. 

<br> 3. Using <br><p> only has one line, while using </p><p><br> will have an extra blank line. 

<br>4. Use hexadecimal numbers to define the color of web pages instead of red, black and other statements, so that you can make full use of the 216 colors of the Web palette (the other 40 colors are difficult for ordinary people to distinguish). 

<br>5. Add </p> inside <base target="_top"> to prevent your page from shrinking when the frame is linked elsewhere, or use <a target="_new" href="http://%E3%80%82%E3%80%82%E3%80%82"></a> <br> to open a new window. 

<br> 6. Use <div> to press it so that many browsers can see the table centering effect. If you are using Netscape 4.0, you can also add align=center to replace it. 

<br>7. The four special characters in HMTL (, &, ") cannot be written directly in the file and must be replaced with the following statements, => &=& "=" (English letters must be lowercase )

<br>8. Font effects for some semantic formats <cite>, italics for titles <code>, wide fonts for source programs <em>, italics for emphasis <kbd>, wide fonts that require keyboard input <samp>, status Broad font <strong> for representation, bold font <var> for emphasis, italic font for constructor variables</var></strong></samp></kbd></em></code></cite>
</div>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn