W3shool Learning-Beginner Tutorial

Source: Internet
Author: User
Tags create index

1. HTML formatting tags

Hypertext Markup Language:

<body>


<p>my First paragraph.</p>

</body>

The label appears in pairs.

1. HTML corresponding Web page

2. Body corresponding content

3. H1 corresponds to the title, which describes the top-level headings in the page. H2 level Two title

4. P corresponds to paragraph,<p> </p> paragraph end mark

5. <DOCTYPE>

All HTML and XHTML pages should use the <Doctype> element to define which HTML version to follow.

DOCTYPE defines the HTML version you are using and provides the browser with important information to render your page more quickly and consistently.


Such as:
<! DOCTYPE HTML Public "-//w3c//dtdHTML 4.01frameset//en "
"Http://www.w3.org/TR/html4/frameset.dtd" >


6. The <title> element is one of the most important HTML elements. Its main function is to describe the content of the Web page.


2.CSS refers to cascading style sheets (cascading style Sheets)

Reason: New HTML tags and attributes, such as font tags and color attributes, are added to the HTML specification, making it increasingly difficult to create a site that is clearly independent of the document's presentation layer.

A style sheet defines how HTML elements are displayed.

Definition and use of detached styles

Font labels and color properties are usually saved in an external. css file.


Precedence of styles for multiple HTML elements with the same name:

What style is used when the same HTML element is defined by more than one style?

Generally, all styles are stacked in a new virtual style sheet according to the following rules, where the number 4 has the highest precedence.

    1. Browser default settings
    2. External style sheet
    3. Internal style sheet (inside the
    4. Inline style (inside HTML elements)

Therefore, the inline style (inside the HTML element) has the highest precedence, which means that it will take precedence over the style declarations in the:


3. javascript

JavaScript is used to improve design, put dynamic text into HTML, respond to events, validate forms, detect browsers, create cookies, and so on.

Used to interact with the page, is a scripting language.


JavaScript is executed by the browser, and Ajax technology is a kind of asynchronous request JavaScript, mainly used for dynamic loading of web pages.


4. xml

A standard for a data collection is a container for describing data, while HTML is used to display data.

The XML Document Object model defines a standard way to access and manipulate XML documents.
The DOM takes an XML document as a tree structure, and leaves are defined as nodes.


5. Server-side scripting

What can server scripts do?

1. First execute on the server:

2. Dynamically edit, change or add any content to a Web page
3. Respond to user requests or data submitted by HTML forms--
4. Accessing data or databases and returning results to the browser
5. Customize the page for different users
6. Improve Web page security so that your page code will not be viewed through the browser

JSP, PHP is the server-side scripting language.


7. SQL

Increase the search and deletion, operation of structured data.

Insert INTO, select, Delete, update.

A statement that defines structured data:

CREATE table-Creates a new table
ALTER TABLE-Change (change) database table
drop table-Delete tables
Create index-Creating indexes (search key)

Drop INDEX-Delete indexes


8. HTML 4.01

XHTML supports HTML for XML.


9. XSLT

A tool for converting data to and from the XML language.


10. Browser type and Features

Internet Explorer
Microsoft's Internet Explorer (IE) is the most popular Internet browser today. It was published in 1995 and surpassed Netscape in the number of users in 1998.

Netscape
Netscape is the first commercially available Internet browser. It was released in 1994. Under the competition of IE, Netscape gradually loses its market share.

Mozilla
The Mozilla project was developed on the basis of Netscape. Today, Mozilla-based browsers have evolved into the second largest browser family on the Internet, with a market share of about 20%.

Firefox
Firefox is a modern browser developed by Mozilla. It was released in 2004 and has grown to be the second most popular browser on the Internet.

Opera
Opera is an internet browser invented by the Norwegian people. It is known for the following characteristics: fast, compact, industry-standard, and suitable for a wide range of operating systems. Opera is undoubtedly the preferred browser for a range of small devices such as mobile phones and handheld computers.

Chrome
Chrome is a free open source web browser developed by Google. This browser was released in September 2008. Chrome 4 is the newest Google browser.

Safari
Safari is a browser developed by Apple for MAC and Windows systems. This browser was released in June 2003.


11. Usage Considerations for Style sheets

1. Do not use the font label

Because it will increase the document, not easy to maintain, use the style, a line can be done


2. Do not use a fixed font size

Relative fonts, such as 100%, 140, use the browser's own functionality


3. Do not use a small default font size


4. Always use a consistent background color


12. Image

Use the "alt" attribute
The ALT attribute allows you to provide a corresponding text description for an image (or other elements).

Instance:


Sometimes the browser will not be able to display images. The specific reasons are:
The user has turned off the image display
Browser is a mini browser that does not support graphical display
Browser is a voice browser (for blind and visually impaired people)
If you use the ALT attribute, the browser can at least display or read a description of the image.


13. International standards

1. Character Set

Tagging each document in a character set is critical to improving the quality of your site.
Always use the following META element within the <meta http-equiv= "Content-type" content= "Text/html;charset=x"/>
Replace X with the character set you are using, such as iso-8859-1, UTF-8, or UTF-16.


2. Date

International Standardization (ISO) for the date definition of the International standard format is "YYYY-MM-DD", YYYY is the year, MM is the month, DD is the day.
If you use the ISO format, most visitors will be able to understand your date.

W3shool Learning-Beginner Tutorial

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.