There are many ways to add style sheets to HTML, each with its own advantages and disadvantages. New HTML elements and attributes have been added to allow the style sheet to be combined more easily with the HTML document.
Connect to an external
Html basics (3) -- css style sheets and html basic css style sheets
CSS(Cascading Style Sheet, Stacked style sheets ).HTMLWebpage.
/* Comment area */This is the comment syntax
I. Style Sheets
(1) classification of Style Sheets
1.Inline style
Web content has recently been crawled, but regular expressions are not familiar and difficult to write.
Now we need to match this.
Label
Which great God can give a regular expression, when practicing practiced hand ha, grateful!
Reply content:
By using HTML4.0, all the formatting code can be moved out of the HTML document and then moved into a separate style sheet.Instance
Styles in HTML
This example shows how to format HTML using style information added
css| Tutorials | Getting Started | style sheets
1, [topic: What is CSS? What can it do?]
CSS is a technique called style sheet (stylesheet). Some people call it cascading style sheets (cascading Stylesheet).
CSS technology is used on the homepage to
Styles in HTMLHTML>Head>styletype= "Text/css">H1{Color:Red}P{Color:Blue}style>Head>Body>H1>Header 1H1>P>A paragraph.P>two lines can also be>P>A paragraph.P>Body>HTML>HTML>Head>styletype= "Text/css">H1{Color:Red}P{Color:Blue}style>Head>Body>H1>I am
JS version see: http://www.zhangxinxu.com/wordpress/2012/07/google-html-css-javascript-style-guides/Html/cssFix Version 2.1BackgroundThis document defines the authoring format and style rules for html/css. It is designed to improve collaboration and
Jquery (i)--style chapter1.$ (document). The role of ready is to wait until the nodes in the document of the page are loaded and then execute the subsequent code.Because we may rely on an element of the page when we execute the code, we want to make
0. inline style add CSS This is a paragraph 1 DOCTYPE HTML>2 HTMLLang= "en">3 Head>4 MetaCharSet= "UTF-8">5 title>Csstitle>6 Head>7 Body>8 P>FontColor= "Red">This is a paragraphFont>P>9 Pstyle= "color:red;">This is a paragraphP>Ten
Jquery (i)--style chapter1.$ (document). The role of ready is to wait until the nodes in the document of the page are loaded and then execute the subsequent code.Because we may rely on an element of the page when we execute the code, we want to make
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.