Use DW8 to master the basic webpage code format

Source: Internet
Author: User
Tags dreamweaver

When it comes to code, someone may ask: can I create a webpage without knowing the code? The answer is yes. Some people do not understand the code and can make very good web pages.

Each time you add or change a content in the Dreamweaver design window, the corresponding code is automatically generated. Another problem arises: why do you need to understand or be familiar with the code? It can be said that getting familiar with the code will make you more powerful, and make your web page more icing on the cake. Hypertext Mark Language (HTML) provides many extensions to meet more needs. Home page creators often use Java applets, embedded scripts, plug-ins, and other extended HTML functions to make full use of their imagination and design a charming home page.

Some effects can only be produced by editing the code, or it is easier to edit the code. Many netizens asked in the forum that the special webpage effect code provided by this site could not be put into their own webpage, or that problem may occur. Therefore, it is necessary to understand or be familiar with the code.

Basic format

<Html>

<Head>
<Title>Webpage Tutorial (This is the title of your site and the content that will be displayed in the title bar when you browse the web page.)</Title>
</Head>

<Body>
Here is the main part of the source code!
</Body>

</Html>

HTML uses the sign pair method to compile files, which is simple and convenient, it usually uses <flag name> </flag name> to indicate the start and end of a flag (for example,

1.

<Html> The marker is used to mark the beginning of an HTML document. The

2.

The HTML file consists of the header and the subject. <Head> and

3. <title> </title>

Those who have browsed the web page may notice the text information displayed in the blue section at the top of the browser window, which is generally the subject information of the web page, to display the subject information of your webpage to the top of the browser, that is, the title bar, the method is very simple, add the text to be displayed between <title> </title>.

Note: <title> </title> flag pairs can only be placed between

4. <body> </body>

<Body> </body> is the main part of an HTML document, there are many signs between these signs, such as <p>, </p>,

Dreamweaver has three "document" view windows:

1. "code" view window. This is the code editing window.

2. "design" view window. This is a common window for editing text and adding images.

3. Split View window. Select this window when we need the above two windows for editing. The code to be added is mainly used in this window.

</

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.