HTML Learning (2)

Source: Internet
Author: User

The semantics of tags, that is, the use of tags.

HTML, CSS, JavaScript functions:

    1. HTML is the carrier of Web content. The content is the information that the Web creator puts on the page to let the user browse, can contain text, picture, video and so on.
    2. CSS styles are expressive. Just like a web coat. For example, the title font, color changes, or for the title to add background pictures, borders and so on.
    3. JavaScript is used to achieve special effects on a Web page. such as: Mouse over Popup drop-down menu. or the mouse slide over the background color of the table changes. There is also the rotation of the Focus news (news pictures). It can be understood that there are animations and interactions that are generally done with JavaScript.
Add accent tone, use <strong> and <em> tags

There is a difference between the two in the tone of emphasis,:<em> stressed that,<strong> expressed a stronger emphasis. And in the browser <em> by default in italics,,<strong> is indicated in bold.

Syntax :

<em>需要强调的文本</em>  

<strong>需要强调的文本</strong>

Use <span> tags to set individual styles for text

<span>Tags are non-semantic, and are intended to be used to set individual styles, which is custom.

Syntax :

<span>文本</span>

1 <style>2 span{3 Color:Blue;4 }5 </style>6 </Head>7 <Body>8     <P>In the spring of 1922, a writer who wanted to fame named Nick Callaway (Toby McGuire Tobey Maguire) left the Midwest and came to New York. It was a time of rising morality, popular jazz, smuggling as king, and soaring stocks. To9 chasing him.Ten         <span>American Dream</span>, he moved into a bay near New York to live.</P> One </Body>

Output: American Dream

Display text using the <br> label branch

Unlike the label we learned before, the label is an empty tag, and the label with <br> no HTML content is an empty tag, and an empty tag only needs to write a start tag.

Grammar:

xhtml1.0 notation:

<br />

html4.01 notation:

<br>

HTML Learning (2)

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.