In general, the file organization of & ldquo; standard webpage & rdquo; Is XHTMLCSS. XHTML is mainly used to represent the webpage structure and display content, while CSS is used to define the structure layout and modify the content style. XHTML commonly used for layout is: DIV: Mainly used for page content logical blocks. For example, a webpage generally includes headers, navigation, sidebar, content, and copyright, the file organization of the "Standard webpage" is xhtml css. XHTML is mainly used to represent the webpage structure and display content, while CSS is used to define the structure layout and modify the content style.
XHTML commonly used for layout generally includes:
DIV: it is mainly used for logical parts of page content. For example, a webpage generally contains responsibility partitions such as the header, navigation, sidebar, content, and copyright. In this case, you can use the DIV label to split.
We recommend that you name each block as follows:
Reference content is as follows:
Header:
Navigation:
Sidebar:
Content:
Copyright:
Note: The id is unique, that is, the ID must not appear more than twice on the same page. Otherwise, use class.
Ul: It is originally an unordered list. It is often used to represent equivalent elements of non-structural classes in xhtml css applications. It must be used with the child element LI of UL.
Reference content is as follows:
Span: If we compare this element with DIV, span is a bag and p is a box (meaning Xiaoyi: Basic Application of XHTML code ). In fact, p is a block-level element, while span is a row-level element (see inline (intra-row) elements and block-level elements ), you can use span to separately define a fragment element in one or more element sets.
For example:
Reference content is as follows:
- (2006-11-13) xhml css layout-XHTML application Summary
When span is defined as left/right float in css, the date and title are displayed on both sides. Relative use
Reference content is as follows:
- 2007-11-5jb51.net
- Xhml css layout Summary
It is much simpler.
========================================================
After the common XHTML labels for layout are completed, other XHTML labels are used to display webpage content. For example:
Reference content is as follows:
Indicates the image
Indicates a hyperlink
(N =,..., 6) indicates the page content title
It is recommended that the h1-h6 decrease in order of importance, h1 is the most important title (see greengnn: p css naming reference)
Originally used
And
Label in bold or italic.
And
.