HTML First day Study notes 2015 10 01

Source: Internet
Author: User

To display the video in HTML5, all you need is:

<video src= "Movie.ogg" controls= "Controls" >

</video>

Text description page between

The text between <body> and </body> is visible in the page content

The text between

Text between <p> and </p> is displayed as a paragraph

HTML images are defined by tags.

width Widths

Height altitude

HTML links are defined by the <a> tag. The address of the link is specified in the href attribute:

such as: <a href= "http://www.w3school.com.cn" >this is a link</a>

Href hyperlink

Tiy: Centering the headings

<H1 align= "Center" > has additional information about alignment

Tiy: Background color

<body> defines the body of the HTML document.

<body bgcolor= "COLOR" > has additional information about the background color.

bgcolor background color

Tiy form

<table> define HTML tables. (You will learn more about HTML tables in a later section.)

<table border= "1" > has additional information about the table border.

Table tables

Border boundary

HTML Horizontal Line

<HR/> Tags Create horizontal lines in the HTML page.

The HR element can be used to delimit content.

HTML Annotations

You can insert comments into HTML code, which improves readability and makes your code easier to understand. The browser ignores comments and does not display them.

Note This is written:<!—-comment text--

Note: The opening parenthesis (the left parenthesis) needs to be immediately followed by an exclamation mark, which is not required until the closing parenthesis (the right parenthesis).

tip: using annotations wisely can help you with future code editing efforts.

HTML Wrapping

If you want to wrap (a new line) without creating a new paragraph, use the <BR/> Label:

<p> content <br/> content <br/> Content </p>

The <br/> element is an empty HTML element. Because the close tag doesn't make any sense, it doesn't have an end tag.

HTML output-Useful hints

We cannot determine the exact effect of HTML being displayed. The size of the screen, as well as the adjustment of the window, can result in different results.

For HTML, you cannot change the effect of the output by adding extra spaces or line breaks in the HTML code.

When a page is displayed, the browser removes extra spaces and blank lines from the source code . All contiguous spaces or blank lines are counted as a single space. Note that all consecutive empty lines (line breaks) in the HTML code are also displayed as a single space.

Text formatting tags

Label

Describe

<b>(Bold)

Defines bold text.

<big>

Defines a large word.

<em>(emphasized)

Defines the emphasis on text.

<i>(Italic)

defines italic words.

<small>

Define small words.

<strong>

Define the aggravating tone.

<sub>(subscript)

Defines the subscript word.

<sup>(superscript)

Defines the superscript word.

<ins>

Defines the insertion word.

<del>

Defines the deletion word.

<s>

Do not approve of use. Use <del> instead.

<strike>

Do not approve of use. Use <del> instead.

<u>

Do not approve of use. Use style instead.

Contains includes

"Computer Output" tab

Label

Describe

<code>

Defines the computer code.

<kbd>

Defines the keyboard code.

<samp>

Define a sample of computer code.

<tt>

Define the typewriter code.

<var>

Defines a variable.

<pre>

Defines the pre-formatted text.

<listing>

Do not approve of use. Use <pre> instead.

<plaintext>

Do not approve of use. Use <pre> instead.

<xmp>

Do not approve of use. Use <pre> instead.

HTML First day Study notes 2015 10 01

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.