A. Use CSS abbreviations
Using abbreviations can help reduce the size of your CSS files and make it easier to read. The main rules for CSS abbreviations refer to the common CSS abbreviation syntax summary, which does not expand the description.
two. Define units clearly, unless the value is 0
Forgetting to define t
, you can see the "Print Difference" article.
5. Picture Replacement Technique
It is generally recommended that you use standard HTML to display text instead of using pictures, which is faster and more readable. But if you want to use some special fonts, you can only use pictures.
For example you want to sell the whole thing icon, you use this picture:
That's OK, but for search engines, they're less interested in alt text than normal text becaus
Forgetting to define the unit of size is a common mistake for beginners of CSS. In HTML, you can write only width = "100", but in CSS, you must give an accurate unit, for example, width: 100px width: 100em. There are only two exceptions. The unit is not defined: the Row Height and the 0 value. Other values must follow the unit. Note that do not add spaces betwee
Div>9 This is the main contentTen Div> One Body> A HTML>2 "The introduction of CSS style" ibid. js "The difference is that the labels they use are different css= 1 HTML>2 Head>3 styletype= "Text/css">4 H1{Color:Red}5 P{Color:Blue}6 style>7 Head>8 9 Body>Ten
CSS StylesCSS is a shorthand for cascading Style sheets, which allows you to easily set the display location and format of page elements, and even produce filters, image fades, and fade-out gradients. CSS is to display the effect of the Web page with Word layout control a paragraph, font, color, background, border and so On.Note: comments/* * * cannot contain annotations1,
causes of compressed HTML
How to improve the page loading speed, how to optimize the HTML page to believe that each proposed to improve the station technology webmaster had thought of the problem, in fact, the method of Web optimization is still a lot.
There are children's shoes to ask Higrid how to compress HTML, that is, you can all the
manual writing.How to use: http://www.cnblogs.com/huangtailang/p/4499988.htmlHtml/css SketchIf you are engaged in web front-end development, Sublime Text 3 plug-in Emmet is definitely your favorite-it uses the syntax of The imitation CSS selector to generate code, greatly improve the speed of html/css code writing, ab
How to improve the loading speed of web pages requires the optimization of web pages, and so on, are the concerns of webmasters. In fact, there are many ways to compress web pages, this article will explain how php compresses HTML functions to easily compress htmljsCss. if you are interested, I hope this article will help you.
Causes of HTML compression
How to improve the loading speed of web pages, how to
causes of compressed HTML
How to improve the speed of Web page loading, how to optimize the HTML page is believed to be each to improve the construction station technology webmaster had thought of the problem, in fact, the Web page optimization method is still a lot.
Have children's shoes asked Higrid how to compress HTML, that is, can all the
some decorative images and then turn off some navigation buttons. For more information, see "Print differences.
5. Image replacement skills
Generally, we recommend that you use standard HTML to display text instead of images. This is fast and readable. However, if you want to use some special fonts, you can only use images.
For example, if you want to use the entire selling icon, you can use this image:
This is certainly acceptable, but for search e
Chapter 5 Use CSS styles
Key points of this ChapterApply styles to HTML documentsCSS style code writing rulesTypes and usage of CSS style selectors
Directory:5.1 apply styles to HTML documents5.2css style coding rules5.3css style Selector5.4 style priority
5.1 apply styles to HTML
Brief introduction
In part 1th of this series, you will create an application that combines the advantages of the canvas API and the HTML/CSS two models. The canvas API is an ideal choice for WEB applications that require high-performance, low load graphics. However, it is short-sighted to overlook the advantages of the traditional HTML/
Using HTML CSS in 10 minutes makes the blog garden grow taller and HTML in 10 minutes
I have always liked the topic of the blog Park: coffee. But after reading it for a long time, I still feel that there are too many unnecessary things, so I sorted them out and recorded them as follows:Open management, we can see that the blog Park can easily customize
to display CSS to check its effect. Maybe you will use the "display: none" command to turn off some decorative images and then turn off some navigation buttons. For more information, see "Print differences.
5. Image replacement skills
Generally, we recommend that you use standard HTML to display text instead of images. This is fast and readable. However, if you want to use some special fonts, you can only
0 o'clock take-off learn html+css systematically introduces the various common HTML tags and CSS properties in website production, as well as the implementation methods of various parts and layouts of the website, and also provides a lot of examples to guide the readers to learn, so as to make the readers get the real
of the corresponding help, this way is said from the page A to jump to the B position on this page, it is easy to do, it takes two steps.First set the tag in the page B position:"Name" is the attribute of the Then in the a location link path the href attribute value is "#标记名", the syntax is as follows.If you want to implement the anchor link between different pages, that is, from page A to page B, such as clicking on the "User login Help" link on page A, will jump to the help page of the corres
In HTML,,Font styleCommon font Properties
Property name
Meaning
Example
Font-family
Set Font type
Font-family: "Official script";
Font-size
Set Font size
font-size:12px;
Font-style
Set font style
Font-style:italic;
Font-weight
Set the weight of a font
Font-weight:bold;
Font
Set all font properties in a decla
HTML+CSS style settingsCSS: (cascading style Sheets) cascading style settings table. The display of the Web page has a great relationship with its layout. Layout is mainly based on CSS to set, adjust. The following is the process of using CSS in conjunction with HTML :(1)
JavaScript HTML DOMThrough the HTML DOM, you can access all the elements of a JavaScript HTML document.HTML DOM (Document Object model)When a Web page is loaded, the browser creates a Document object model for the page. The HTML DOM model is constructed as a tree of objects.HTML DOM TreeWith the programmable object mod
color, width, and style (in any order ). For example, border: 3px solid #000 (black solid-line border with 3 pixels wide). In this example, the only value to be specified is the style. If you specify the style as solid (solid), the remaining values will use the default value: the default width is medium (equivalent to 3 to 4 pixels ); the default color is the text color in the border. If this is exactly what you want, you can not specify it in css.
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.