First, the HTML
HTML (Hyper text Markup Language) Hypertext Markup Language, so-called hypertext refers to the page can contain pictures, links, and even music, and other non-text elements. HTML contains two parts: tag tags, text content. HTML is the use of tag tags to describe a Web page.
In HTML, the tags can be divided into: active closing tags and self-closing and labeling according to the closed method. Active closing tags have start and end tags < tag names > text content </tag names >; auto-closed and tag < tag name/>.
1. HTML Basic Content
<! DOCTYPE Html> Declaration uses the version of HTML, the declaration must be the first line in the HTML document, before the
Tags that must be used:
1 <HTMLLang= "en">2 <Head>3 4 </Head>5 <Body>6 7 </Body>8 </HTML>
<! The whole behind the doctype~> is enclosed in HTML tags (
In the Head tab, fill in the information associated with the file, and fill in the body tag with the content to be displayed on the browser. Also, in the head tag, there can be only one title tag that represents the title of the file.
2. Tags commonly used in head tags:
- <title> page Title </title> set page title;
- <meta http-equiv= "Content-type" content= "text/html; charset= text Encoding "/> Settings page encoding format, keywords, content introduction, jump and other content
1 <Metaname= "keywords"content= "Keyword 1, keyword 2, ..." />2 3 <Metaname= "description"content= "Content Introduction" />4 5 <Metaname= "Author"content= "Author name" />
This information is not displayed on the screen, but search engines are used when collecting information.
3. Common tags in body:
- <p></p> set up paragraphs;
-
- <br/> line break
- <a href = "URL" ></a> set jump link
Common symbols:
- Space:
- Greater than:>
- Less than:<
1<HTMLLang= "en">2<Head>3<MetaCharSet= "UTF-8">4<title>Test</title>5<!--<meta http-equiv= "Refresh" content= "2; Url=http://www.baidu.com "/> -6</Head>7<Body>8 Tang Poetry 9<H1>Quiet Night thinking<BR/></H1> One<H2>Li White</H2> A<H3>Tang</H3> -<P>Moon Light in front of the bed</P> -<P>Suspected ground frost.</P> the<P>Jutou Look at the moon</P> -<P>To think of my hometown</P> -<ahref= "Http://www.baidu.com">Baidu</a> <!--Open on this page - -<ahref= "Http://www.baidu.com"Target= "_blank">Baidu</a><!--Open in new page - from</Body> A</HTML>
Second, form label
The form label is used to create an HTML form to submit data to the server
Iii. Table Tables
Python Learning-day14