HTML framing and CSS basic syntax

Source: Internet
Author: User

Frame: Short Frame

The HTML framework is the technique of dividing windows into multiple windows where each window displays different Web content, which is also called a sub-frame in the background.

The labels for the frames are:

<frameset></frameset>

To divide the window into several, you need to have a corresponding number of <frame> tags appear.

Note: If you write frameset on the page, you cannot have the body.

Common properties are:

Cols units; You can write a pixel or write a percentage, and then you can write a * (* for all remaining) in addition to the above content

Rows branch units; You can write a pixel or write a percentage, and then you can write * (* for all remaining) except for the above content

Frameborder Frame Border 0/1

Border Border thickness

<frame> Common Properties:

Name to set the area a name to use as a jump

SRC Default Display page link

Noresize not allow border adjustment

Scrolling scroll bar

Auto|yes scroll bar appears |no no scroll bar appears

One, CSS introduction:

A) cascading style Sheets cascading style sheet (cascading style sheets)

b) is a text file that does not need to be compiled by the browser to execute directly

c) Role is to define the appearance of Web pages such as fonts, backgrounds, etc...

D) can be used with JavaScript to make brilliant effects

Second, CSS features

A) precise positioning, accurate control of any element of the page

b) fine control; pixel-level adjustment possible

c) Separation of style from content, ease of maintenance, ease of reuse

Iii. Methods of Use

1, inline: The style attribute written in the tag is called inline

Example: <p style= "Color:yellow" > Face Blast Bar </p>

2, Inline: A property written in the style tag of the head tag is called inline

For example:

<style>

p{color:red;}

</style>

3, outreach; Used in an externally introduced way

For example: <link rel= "stylesheet" type= "Text/css" href= "./css.css"/>

Iv. Basic Grammar

1.CSS format:

Selector:

The collection of elements responsible for scoping, to be modified

Statement:

Consists of a property name and a property value that is concatenated with a colon (attribute name: Property value) for setting a specific style

CSS composition:

Consists of a selector and one or more declarations, with semicolons between multiple declarations

Selector {Property Name: property value; Property Name: property value;}

2.CSS notes:

Html comments <!---->

The annotation inside the stylesheet is a

/* This is the content of the comment * *

Annotations cannot be nested

Today, let's talk about the priority of CSS selectors tomorrow!

HTML framing and CSS basic syntax

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.