Things to note in HTML authoring

Source: Internet
Author: User

There are a number of key issues to be aware of during the authoring process, as I have recently encountered in my studies:

    • Code Specification Questions:

In code view to write code, must standardize the format, do not write all the code to a piece, so not only affect the efficiency, more impact on the visual, when the problem is often difficult to find the reason, for example, I write HTML tags are always shelf write every label, the results today in the experiment, there was a mistake Mistake, I look at their own code to find the problem are anxious, and finally based on the number of nested layers to find the reason, missing the end tag caused by serious errors, so I would like to write code format specification;

    • Layout issues:

When designing a Web page, you should first construct the entire frame of the Web page and then refine each frame one at a time, so that when something goes wrong with that part, we can find the module individually and modify it, for example, when we have just learned the div+css part, we should create a total container first. Then add each module of login, navigation, advertisement display, main content, copyright information in the container, set up the respective CSS style, and then further refine. In such a design, if the overall structure is not first designed, div position will be confused, so that can not be very clear to find the cause of the situation;

    • Input question:

Be sure to enter the label correctly. When entering a label, do not enter extra spaces, or the browser may not recognize the label, causing the information to be displayed incorrectly. All kinds of symbols must be entered in the English state, otherwise it will not show the correct effect. Source code is case insensitive;

    • property setting Problem:

The corresponding label corresponding to their own properties, because the individual labels are too many properties, it is easy to confuse, if we want to set a tag in the corresponding properties of the content, we must find the corresponding property method in the tag set, such as the width of the <table> set to 700, The border width is set to 1, the cell spacing is 0, and the corresponding code setting is: <table width= "border=" 1 "cellspacing=" 0 ">;

    • Reference question:

When we set the CSS style externally, and we want to refer to this style sheet, we have to add <link> tags inside the

When you want to always insert a picture or set a background picture in the Web page must also be introduced, this is the key moment, such as inserting image tag src is the introduction of the path can be an absolute path, can also be a relative path, but we generally use a relative path, Because what we usually do will change position or move to other machines for some reason, if we use absolute path, then he can not find the position of the picture accurately, but after using the relative path, as long as we put together the catalog file containing the webpage and picture, no matter where we move it , we can all find and introduce the image accurately ...

(Ben Boven is purely original)


There are a lot of things to pay attention to also need us to find it in practice, if you see my blog friends have any suggestions or find the issue of the blog, please advise, look forward to working with you to learn common progress!

Things to note in HTML authoring

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.