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 The instances in 1:w3school are all simulated once<BR/> One 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