HTML learning Note (ii) HTML basic markup

Source: Internet
Author: User

HTML is a lot of markup, an HTML Help document is very necessary!

The header element of HTML is marked with

The information provided by the META element is not visible to the user, it is not displayed on the page, and is typically used to define the name, keywords, author, etc. of the page information. There are two types of properties: Name and Http-equiv, where the name attribute is used primarily to describe web pages, making it easy for search engines to find and categorize.

1 <!DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd ">2 <HTMLxmlns= "http://www.w3.org/1999/xhtml">3 <Head>4 <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" />5 <Metahttp-equiv= "Refresh"content= "Jump time; url= link Address" />by default, the jump time is in seconds6 <Metahttp-equiv= "Expires"content= "Time Expires" />7 <Metahttp-equiv= "Cache-control"content= "No-cache" />8 <Metahttp-equiv= "Set-cookie"content= "Time Expires" />9 <Metahttp-equiv= "Windows-target"content= "_top" />Ten <Metahttp-equiv= "Transition event"content= "Revealtrans (duration= transition Duration, transition= transition mode)" />the duration of the transition effect is the default in seconds One <Metaname= "keywords"content= "Specific keywords" /> A <Metaname= "description"content= "Description Language of the page" /> - <Metaname= "Generator"content= "Name of the editing software" /> - <Metaname= "Author"content= "Author's name" /> the <Metaname= "Robots"content= "Search Method" />  - <title>Untitled Document</title> - </Head> -  + <Body> - </Body> + </HTML>

HTML pages can convert all relative URLs in the current HTML page to absolute URLs through the base URL. <base href= "link Address" target= "new window opening mode" >

<body> element Properties: Text sets the color of the page text, bgcolor sets the color of the page background, background setting the background image of the page, bgproperties setting page background image is fixed, does not scroll with the page scrolling; Link to set the default links color of the page, ALink set the mouse is the link color when a single machine, Vlink set the link color after the visit, TopMargin set the top margin of the page, LeftMargin set the left margin of the page.

HTML learning Note (ii) HTML basic markup

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.