"HTML Basics" <h1>~<h6> <p> <br> <hr>

Source: Internet
Author: User

Learning HTML does not work, just in the W3school HTML manual under the tutorial to learn the next.

What is HTML?

HTML refers to the Hypertext Markup Language , which is Hyper Text Markup Language

HTML is not a programming language, it is a Markup Language (Markup language)

Markup language is a set of tag tags (Markup tag)

HTML uses tag tags to describe web pages

We casually open a Web page, the mouse right-click + = View the page source code, you can see the HTML page Markup language.

HTML consists oftags and text , usually referred to as HTML documents, also called Web pages. The browser reads HTML documents in the form of military service pages (comments are not displayed)

HTML tags are keywords surrounded by angle brackets, usually in pairs, one is the start tag (open tag) one is the end tag (closed label) to <br> and the

definition

HTML title

<H1class= "H1"Align= "Left">This is the title H1 | Apply attribute align= "left"</H1><H2class= "H2"Align= "Center">This is the title H2 | Apply Properties alig= "Center"</H2><H3class= "H3"Align= "Right">This is the title H3 | Apply attribute align= "right"</H3><h4class= "H4"Align= "Justify">This is the title H4 | Apply attribute align= "Justify"</h4><h5class= "H5">This is the title H5</h5><h6class= "H6">This is the title H6</h6>

The effect appears as follows:

<p> tagsDefining paragraphs

Same as above it also has a align attribute, and is also disapproved of use.

<PAlign= "Left">This is the paragraph. Align= "left"</P><PAlign= "Center">This is the paragraph. align= "Center"</P><PAlign= "Right">This is the paragraph. Align= "Right"</P><PAlign= "Justify">The paragraph element is defined by the P tag.</P>

The above effects are as follows:

<br> define a simple fold line

It has the clear property. Typically, the,<br> tag tells the browser to stop the current text stream immediately, and to continue outputting the text stream on the left side of the next line, or on the right side of the inline graphic or table left-aligned. Other lines in the text stream are displayed at the bottom of the inline image, unless the label for the graphic is set to left or right (same for <table> tags). Therefore, the clear property of the,<br> tag only works on these left-aligned or right-aligned images or tables.

See the clear properties of the <br> tab for specific examples

It has four optional properties: Align (same as above, but no justify attribute value), NoShade (attribute value is NoShade), size,width

The latter three respectively specify the color of the HR element as a solid color, the height of the HR element (thickness), and the width of the HR element. Example:

<P>NOSHADE specifies that the color of the HR element is rendered as a solid color, and the property is set to Noshade= "NoShade" as follows:<HRNoShade= "NoShade"></P><P>The size specifies the height (thickness) of the HR element, and the property is set to Size= "20" as follows:<HRsize= " the"></P><P>width Specifies the length of the HR element, and the property is set to Width= "800" as follows:<HRwidth= "$"></P><P>or width= "50%":<HRwidth= "50%"></P>

Shown below:

HTML tags have many common properties, including 16 standard properties and 79 event properties. The standard attributes are commonly used only class,id,title these (class almost every tag to use), the event attributes are used more, here is not listed. You can see for yourself.

"HTML Basics"

Related 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.