HTML self-study notes (Basic HTML structure + document settings ),

Source: Internet
Author: User

HTML self-study notes (Basic HTML structure + document settings ),
Basic HTML Structure

Function: contains basic information about a file, such as the title of a webpage.

Note: content marked in

3. <title> HTML file title tag </title>

Function: the "topic" of the page is displayed in the upper-left corner of the browser window.

Note: The title of a Web page cannot be too long. It must be short and accurate to reflect the content of the page. <Title> </title> tags cannot contain other tags.

4. <body> HTML subject tag </body>

Function: This tag is the main part of a Web page. It can be included between tags, for example, <p> </p>,

Common attributes: bgcolor, text, link, vlink, and alink)

For example, <body alink = "red"> </body>

5. <meta> meta-information)

Function: provides meta information about pages, such as descriptions and keywords for search engines and update frequency.

Required attribute: The content value, some text, defines metadata related to the name attribute.

Common name attributes: author (webpage author) keyword (webpage keyword) description (webpage description) others (Other Language Information)

Note: <meta> must be placed in the head element.

 

HTML document settings

I. Format mark

<Li value = "">

8. <dl> <dt> <dd> definition list

Usage: Brief description of list entries

Format: Both <dt> and <dd> are in <dl>.

<Dl>

<Dt> Software Description: </dt>

<Dd> briefly introduces software functions and basic applications </dd>

</Dl>

9.

10. <div> the display tag of a partition is also called a layer tag.

HTML paragraphs that are commonly used to orchestrate a large section can also be used to format a table similar to P. div can be nested in multiple layers.

Ii. Text mark

  • <B> bold font </B>
  • <I> oblique font mark </I>
  • <Sub> font Markup
  • <Cite> the font of the reference method, usually italic (such as references) </cite>
  • <Em> emphasize, usually in italic </em>
  • <Strong> indicates emphasis, usually in a bold font </strong>
  • <Small> small font, nested </small>
  • <Big> large font, nesting </big>
  • <U> underline </u>
  •  

    Related Article

    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.