="http://www.w3.org/1999/xhtml">
head>
Meta http-equiv= "content-type" content= "text/html; charset=gb2312 " />
title>css Reference Method Instance-www.divcss5.com test instance title>
style type="Text/css">
@import URL (wcss.css);/* Here is the
better.What is the difference between 2.xhtml and HTML?HTML is a basic Web page design language, XHTML is an XML-based labeling language;The most important differences are:XHTML elements must be nested correctly.XHTML elements must be closed.The label name must be in lowercase letters.The
Http://www.cnblogs.com/wanglongshuai/p/[email protected] Wang Lungyu1, Code First experience, make my first pagehtml> head> meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "> title> make my first page title> head> body> h1>Hello Worldh1> body>HTML> 2. The relationship between
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/
of formal entry into HTML (1), the form must be in Label name > Label name >(2), label classification 1, double tags (such as: HTML, body) HTML > Head > Head > HTML > 2, single label (such as: BR, HR)\>\> \ > t
, but 相对的只是 HTML 根元素 .What are the ways 7.CSS is introduced? What is the difference between link and @import?There are four kinds: inline (the style attribute on the element), inline (style label), outer chain, import (@import) The difference between link and @import:
linkis the XHTML tag, in addition to loading CSS
HTML Overview:HTML is an abbreviation for the English Hyper Text mark-up Language (Hypertext Markup Language), which is a standard language (tag) for making Web pages. The equivalent of a uniform set of rules, everyone to abide by him, so that you can let the browser according to the rules of the markup language to explain it. The browser is responsible for translating the label into a user "readable" format, presented to the user! (Example: Djangomoa
DIV + CSS does not necessarily conform to the standard. Recently, more people use DIV + CSS to represent XHTML. This is fundamentally incorrect!
First, CSS is a technology called stylesheet. Some people call it Cascading Stylesheet, while DIV is a label in HTML. DIV and T
0. inline style add CSS1 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 Pstyle= "Color:green;">This is a paragraphP> One P>This is a paragraphP> A Body> - HTML
CSS3 Border-radius PropertiesDefinition and usageThe Border-radius property is a shorthand property for setting four Border-*-radius properties.Tip: This property allows you to add rounded borders to elements!1 DOCTYPE HTML>2 HTMLLang= "en">3 Head>4 MetaCharSet= "UTF-8">5 title>Documenttitle>6 style>7 Div{8 width:200px;9 Height:200px;Ten background:Red; One Border-radius:10px 40px 70px 100px; A
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
the following but not limited to:
Mastering the meaning and usage of common HTML tagsAbility to properly plan HTML document structures based on design draftsUnderstand semantics and use HTML tags wisely to build pagesMaster the basic CSS coding, including the following but not limited to:
Understand the d
CSS is all called Cascading style sheets.CSS BASIC Syntax structureCSS rules consist of two parts: selectors and declarations. The declaration must be placed in curly braces {}, and the declaration can be one or more, and each declaration consists of a property and a value separated by a colon, with each statement ending with a semicolon. as shown below.h1{font-size:12px;Color: #F000;}font-size:12px; and color: #F000; represents two declarations in wh
standard requirements. XHTML 1.0 does not define any new elements and attributes, but inherits all elements and attributes of HTML 4.0. Therefore, XHTML 1.0 is compatible with HTML 4.0. XHTML 2.0 has greatly improved XHTML 1.0, a
;data-" to avoid using "data: "And other naming methods;6. Semantic html. For example, if the title uses h based on importance (only one h1 can be found on the same page), p is used for Section marking, ul is used for the list, and block-level elements cannot be nested in inline elements;7. Minimize div nesting8. Avoid redirection when writing the link address. For example, href = "http://www.example.com/" must be added after
. This process is called a nested tag. The tag closest to the content of the nested tag must be ended first, in the order of internal and external.4. Standard attributes
HTML tags can have attributes. Attribute provides more information about HTML elements. Attribute always appears in the form of name = "value. For example, name = "form1", where "name" is the property name, and "form1" is the property value
or for the language of some Web pages. This is helpful for search engines and browsers.according to the recommendation criteria, you should declare the primary language on each page through the lang attribute in the
Xhtml
XHTML is a more rigorous and pure HTML version. XHTML is almost identical to
First, the CSS definition(cascading style sheets) cascading style SheetsPerformance of standard language, control of the display of web informationsecond, the establishment of CSS2.1 Internal Establishment(built in head with tag Description: (1) div is a selector, {} is a declaration, Width/height is a property, 300px is a property value(2) Border is a property, it has three attribute values, 1px border wid
A recent article on trim (Frames) gave me the idea of the current state of web design. Not long ago, many web page standards were published. The advantages of developing web applications using CSS and XHTML are gaining popularity, but many developers still rely more on HTML tables to control page output. Let's take a look at the advantages of using
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.