HTML tip Assembly _ CSS/HTML

Source: Internet
Author: User
HTML skills Assembly 1. How to define a Web language (character set )?
When creating a webpage, you must first define the webpage language so that the visitor's browser can automatically set the language. However, we did not notice this problem when using what we see is what we get, because it is the default setting. The language to be set can be found in the HTML code status:



Change charset = gb2312 to other language codes, such as English harset = en.

2. How to prevent others from putting your webpage into the framework?
Because of frame, many people place others' webpages in their own frames to make them their own pages. If you want to prevent others from doing so, you can add the following JavaScript code, which will automatically monitor and jump out of others' frameworks.



19. What are the steps for creating an attractive site?
To create an attractive site, consider the following suggestions:

1) who should be your guest, music or games? 2) What content can attract these people and update information faster, we still need to provide more downloads. 3) How can we stay with the visitor? Of course, we should not use bugs, for example, to let the visitor's machine crash. 4) What can we let the visitor come back, for example, if there are good things tomorrow, remember to come, but don't lie; 5) set your own goals and achieve it; 6) solicit comments from everyone and then gradually improve.

20. How do I create a survey table?
More and more sites need to interact with each other to attract visitors. When the Forum loses new ideas, you can create a questionnaire to allow visitors to choose the questions you set and immediately display the results.

Connect to the website.

1. How to Make a text layout compatible with IE4 and NN4?
Sometimes, the text you set is well browsed in IE4, but in the NN4 browser, it turns into a line of text, which is really annoying, you only need to check the text in the NN4 browser and add
This does not affect the browsing in ie4.

21. How to open a new browser window and set window properties?
If you need to open another new window while loading the site, add the following code:


In this way, when someone enters the website from the frame, it will automatically redirect to the homepage file index.htm.

102. Some shortcut keys for IE5.0:
A: Turn on the search function: Ctrl + F
Close the browser window: Ctrl + W
Open the address bar drop-down list box: F4
New Refresh: F5
Save the current web page to the Favorites list: Ctrl + D
Open a copy of the current IE window: Ctrl + N
Stop downloading the current webpage: Esc
Move the cursor to the beginning of the webpage: Home
Move the cursor quickly to the End of the webpage: End
Open the new address. Enter Ctrl + O.
Open favorites: Ctrl + I
Open the history Folder: Ctrl + H
Open the default homepage set in the browser: Alt + HOME

103. How can I enable full-screen web pages with different resolutions?

Use a table (do not use a layer), set the content of the outermost table to 100% in width, and adjust it as appropriate.

104. How do I regularly close a webpage?

Add in head Area

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.