HTML Base Tag

Source: Internet
Author: User

I am a rookie, learn in www.w3school.com.cn, share the latest study.

1. A simple HTML file that mainly distinguishes <title> and <body> where the content is displayed in the Web page.

1 <!DOCTYPE HTML>2     <HTML>3         <Head>4             <title>A simple HTML file</title>5             <MetaCharSet= "Utf-8">6         </Head>7         <Body>8             <P>Body content is displayed in the browser</P>9             <P>Title content is displayed in the browser title bar</P>Ten         </Body> One     </HTML>

2. A simple paragraph.

1 <!DOCTYPE HTML>2         <HTML>3             <Head>4             <title>A simple paragraph</title>5             <MetaCharSet= "Utf-8">6             </Head>7             <Body>8             <P>This is a paragraph</P>9             <P>This is the second paragraph.</P>Ten             <P>This is the third paragraph.</P> One             <P>The paragraph is defined by the P tag</P> A             </Body> -         </HTML>

3. More paragraphs, the browser ignores the layout of the source code, ignoring the extra spaces and line breaks.

1 <!DOCTYPE HTML>2 <HTML>3 <Head>4     <title>More passages</title>5     <MetaCharSet= "Utf-8">6 </Head>7 <Body>8 <P>This paragraph9 included in the source codeTen many rows but the browser ignores them One </P> A <P> - This paragraph - contains a lot of lines in the source code the but browsers ignore them. - </P> - <P>The number of lines in a paragraph depends on the size of the browser window, resizing the browser window, changing the number of paragraph lines</P> - </Body> + </HTML>

4. Line Break <br/>

1 <!DOCTYPE HTML>2 <HTML>3 <Head>4 <title>Wrapping lines in HTML</title>5     <MetaCharSet= "Utf-8">6 </Head>7 <Body>8 <P>9Getting Started with web front end requires<BR/>Ten     &nbsp;&nbsp;The instances in 1:w3school are all simulated once<BR/> One     &nbsp;&nbsp;2: The Web front-end engineer course of Mu-net look it over.<BR/> A </P> - </Body> - </HTML>

5. Title

<!DOCTYPE HTML><HTML><Head><title>Title</title>    <MetaCharSet= "Utf-8"></Head><Body><H1>Beijing</H1><H2>Beijing</H2><H3>Beijing</H3><h4>Beijing</h4><h5>Beijing</h5><h6>Beijing</h6></Body></HTML>

6. Background color (bgcolor)

1 <!DOCTYPE HTML>2 <HTML>3 <Head>4     <title>Background color</title>5     <MetaCharSet= "Utf-8">6 </Head>7 <Bodybgcolor= "#cd5c5c">8 <PAlign= "Center" >HTML instance</P>9 </Body>Ten </HTML>

Share there are many not mentioned in the hope that everyone understanding, this document to those and I like the rookie and small white. Let's work together to study.

HTML Base Tag

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.