Java Basics Rollup 6 (HTML article)

Source: Internet
Author: User

Five, HTML

Defines the document type.
< html> defines an HTML document.
< body> defines the body of the document.


< h1> to < h6> defines the HTML title.
< p> define paragraphs.
< br> defines a simple fold line.
< hr> defines a horizontal line.
<!–...–> definition gaze.
< b> defines bold text.
< font> is not in favor of use. Define font, size, and color for text
< i> defines italic text.
< em> defines the accent text.
< big> defines large text.
< strong> the accent text that defines the tone more strongly.


< small> defines the small text.
< sup> defines superscript text.
< sub> defines the subscript text.
< bdo> defines the direction of the text.
< u> is not in favor of use. Defines the underlined text.

< pre> defining pre-formatted text
< code> defines the computer code text.


< tt> defines the typewriter text.
< kbd> defines the keyboard text.
< var> defines the variable part of the text.


< dfn> define the project.
< samp> defines a sample of computer code.


< xmp> is not in favor of use.

Defines the pre-formatted text.

< acronym> defines just the initials of the initials.
< abbr> define abbreviations.
< address> defines the contact information for the author or owner of the document.
< blockquote> defines a block reference.
< center> is not in favor of use. Defines the center text.
< q> defines a short reference.
< cite> definition Reference (citation).


< ins> definition is inserted into the text.


< del> defines the deleted text.
< s> is not in favor of use. Defines the text to add strikethrough to.


< strike> is not in favor of use.

Defines the text to add strikethrough to.

< a> define anchors.
< link> defines the relationship of documents to external resources.

< frame> a form or frame that defines a frameset.


< frameset> defines a frameset.
< noframes> defines alternative content for users who do not support frames.
< iframe> defines an inline frame.

< form> defines an HTML form for user input.


< input> defines an input control.
< textarea> a text input control that defines multiple lines.
< button> define button.


< select> define a selection list (drop-down list).
< optgroup> defines a combination of related options in the selection list.
< option> defines options in the selection list.
< label> defines the callout for the INPUT element.
< fieldset> defines the bounding rectangle that surrounds the elements in the form.
< legend> defines the title of the FieldSet element.


< isindex> is not in favor of use.

Defines a searchable index associated with a document.

< ul> define unordered lists.
< ol> defines a sequence table.


< li> defines a list of items.


< dir> is not in favor of use. Defines the folder list.


< dl> defines a list of definitions.
< dt> defines the items in the definition list.
< dd> defines the descriptive narrative of the items in the definition list.


< menu> is not in favor of use. Defines a menu list.

< img> define the image.
< map> defines an image map.


< area> defines the area inside the image map.

< table> definition Table
< caption> defines the table title.
< th> defines the header cells in the table.


< tr> defines the rows in the table.
< td> defines the cells in the table.
< thead> defines the header content in the table.


< tbody> defines the body content in the table.


< tfoot> defines the table notes (footnotes) in the table.


< col> defines a property value for one or more columns in a table.
< colgroup> define column groups for formatting in the table.

< style> defines style information for a document.
< div> defines a section in a document.
< span> defines a section in a document.

< head> defines information about the document.
< title> defines the title of the document.
< meta> defines meta-information about HTML documents.


< base> defines the default address or default destination for all links in the page.
< basefont> is not in favor of use. Defines the default font, color, or size of text in a page.

< script> defines the client script.
Defines alternative content for users who do not support client scripting.
Do not approve of use.

Defines the embedded applet.
Defines the embedded object.


Defines the number of parameters for the object.

VI. CSS

CSS Background Properties (Background)
Attribution Description CSS
Background set all the background properties in a declaration. 1
Background-attachment sets whether the background image is fixed or scrolls along with the rest of the page. 1
Background-color sets the background color of the element.

1
Background-image sets the background image of the element. 1
Background-position sets the start position of the background image.

1
Background-repeat sets whether and how to repeat the background image. 1

CSS Border Properties (Border and Outline)
Attribution Description CSS
Border set all the border properties in a declaration. 1
Border-bottom sets all the bottom border properties in a declaration. 1
Border-bottom-color sets the color of the bottom border.

2
Border-bottom-style sets the style of the bottom border. 2
Border-bottom-width sets the width of the bottom border. 1
Border-color sets the color of the four border.

1
Border-left sets all the left border properties in a declaration.

1
Border-left-color sets the color of the left border.

2
Border-left-style sets the style of the left border. 2
Border-left-width sets the width of the left border. 1
Border-right set all the right border properties in a declaration. 1
Border-right-color sets the color of the right border. 2
Border-right-style sets the style of the right border.

2
Border-right-width sets the width of the right border. 1
Border-style sets the style of the four border. 1
Border-top sets all the top border properties in a declaration.

1
Border-top-color sets the color of the top border. 2
Border-top-style sets the style of the top border. 2
Border-top-width sets the width of the top border. 1
Border-width sets the width of the four-bar border. 1
Outline sets all the outline properties in a declaration. 2
Outline-color sets the color of the outline.

2
Outline-style sets the style of the outline. 2
Outline-width sets the width of the contour. 2

CSS literal properties (text)
Attribution Description CSS
Color sets the colors of the text. 1
direction specifies the direction/direction of the text. 2
Letter-spacing set the character spacing. 1
Line-height set the row height.

1
TEXT-ALIGN Specifies the horizontal alignment of the text.

1
text-decoration Specifies the decorative effect added to the text.

1
Text-indent Specifies the indentation of the first line of the text block. 1
TEXT-SHADOW Specifies the shadow effect added to the text.

2
Text-transform controls the uppercase and lowercase text.

1
Unicode-bidi sets the text orientation.

2
White-space rules how to deal with whitespace in elements. 1
Word-spacing set the word spacing.

1

CSS Fonts Property (font)
Attribution Description CSS
Font sets all font properties in a declaration. 1
Font-family the font family for the specified text.

1
font-size Specifies the font size of the text.

1
FONT-SIZE-ADJUST Specifies the aspect value for the element. 2
Font-stretch shrinks or stretches the current font family.

2
Font-style Specifies the font style for the text. 1
FONT-VARIANT Specifies whether to display text in a small capital letter font. 1
Font-weight Specifies the thickness of the font. 1

CSS margin Properties (margin)
Attribution Description CSS
Margin sets all margin properties in a declaration. 1
Margin-bottom sets the bottom margin of the element.

1
Margin-left sets the left margin of the element. 1
Margin-right sets the right margin of the element. 1
Margin-top sets the top margin of the element.

1

CSS Inner margin Properties (Padding)
Attribution Description CSS
Padding set all padding properties in a declaration. 1
Padding-bottom sets the bottom padding of the element. 1
Padding-left sets the left padding of the element.

1
Padding-right sets the right padding for the element.

1
Padding-top sets the top padding of an element. 1

CSS Listing Properties (list)
Attribution Description CSS
List-style sets all the list properties in a declaration. 1
List-style-image sets the image as a list item marker.

1
List-style-position sets the placement position of the list item marker.

1
List-style-type sets the type of the list item tag. 1
Marker-offset 2

Content generation (Generated contents)
Attribution Description CSS
Content is used in conjunction with: Before and: after pseudo-elements. To insert the build content. 2
Counter-increment increments or decrements one or more counters.

2
Counter-reset Create or reset one or more counters. 2
Quotes sets the type of a nested reference. 2
CSS Dimension Properties (Dimension)

Attribution Description CSS
Height sets the altitude of the element. 1
Max-height sets the maximum height of the element.

2
Max-width sets the maximum width of the element. 2
Min-height sets the minimum height of the element. 2
Min-width sets the minimum width of the element. 2
Width sets the widths of the elements.

1

CSS positioning properties (positioning)
Attribution Description CSS
Bottom sets the offset between the margin boundary under the anchor element and its inclusion of the lower boundary of the block. 2
Clear specifies which side of the element does not agree with other floating elements. 1
Clip Trim absolutely positioned element. 2
The cursor specifies the type (shape) of cursors to display.

2
display specifies the type of box that the element should generate.

1
FLOAT Specifies whether the box should float. 1
Left sets the offset between the right margin boundary of the anchor element and the left border of the block. 2
Overflow specifies what happens when the content overflows the element box.

2
Position the positioning type of the specified element.

2
Right sets the offset between the left margin boundary of the anchor element and the right edge of its containing block. 2
Top sets the offset between the top margin boundary of the anchored element and its inclusion of the upper boundary of the block.

2
Vertical-align sets the vertical alignment of elements. 1
visibility Specifies whether the element is visible. 2
Z-index sets the stacking order of elements.

2

CSS Printing properties (print)
Attribution Description CSS
Orphans sets the minimum number of rows that must be retained at the bottom of the page when pagination occurs within an element. 2
Page-break-after the paging behavior after the element is set. 2
Page-break-before the paging behavior before the element is set.

2
Page-break-inside sets the paging behavior inside the element. 2
Widows sets the minimum number of rows that must be retained at the top of the page when pagination occurs within an element.

2

CSS Table Properties (table)
Attribution Description CSS
BORDER-COLLAPSE Specifies whether to merge table borders. 2
border-spacing specifies the distance between adjacent cell borders. 2
Caption-side Specifies the position of the table title. 2
EMPTY-CELLS Specifies whether to display borders and backgrounds on empty cells in a table. 2
Table-layout sets the layout algorithm for the table. 2

CSS pseudo-Class (pseudo-classes)
Attribution Description CSS
: Active adds style to the element being activated.

1
: Focus adds a style to the element that has keyboard input focus. 2
: Hover adds a style to an element when the mouse hovers over the element. 1
: Link adds a style to a link that has not been interviewed.

1
: visited adds a style to a link that has been interviewed. 1
First-child: Adds a style to the first child element of an element. 2
: Lang adds a style to the element with the specified lang attribute. 2

CSS Pseudo-elements (Pseudo elements)
Attribution Description CSS
: First-letter adds a special style to the first letter of the text.

1
: First-line adds a special style to the first line of text. 1
: Before add content before the element. 2
: After after elements are added to the content. 2

Java Basics Rollup 6 (HTML article)

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.