Basic knowledge of HTML (keep for myself)

Source: Internet
Author: User

1. Usually label <strong> replace bold label <b> to use, <em> replace <i> label to use.

2. In the

Elements that can be added to the head area are labeled: <title>, <style>, <meta>, <link>, <script>, <noscript>, and < Base>.

The <base> tag describes the basic link address/link target, which is the default link for all the link labels in the HTML document

<link> tags are typically used to link to style sheets

The <style> tag defines the style file reference address for the HTML document.

In the <style> element you need to specify a style file to render the HTML document

The <meta> tag provides metadata. Metadata is not displayed on the page, but is parsed by the browser

The <script> tag is used to load script files, such as: JavaScript.

3. How do I use CSS?

CSS is used in HTML 4 and is introduced for better rendering of HTML elements.

CSS can be added to HTML in the following ways:

    • Inline style-use the Style property in HTML elements
    • Internal style sheet-use <style> elements to include CSS in the header
    • External references-Using external CSS files

The best way to do this is by referencing the CSS file externally.

4.

The syntax for defining an image is:

url" alt= "some_text" >URL refers to the location where the image is stored. The Alt attribute is used to define a string of prepared, replaceable text for an image (the replacement Text property tells the reader what information they have lost when the browser fails to load the image.) Good habit!)If the image specifies a height width, the specified size (good habit) is retained when the page loads. Advice: Use pictures with caution5. HTML <div> elements: (1) a container for combining other HTML elements; (2) Document layout6. HTML <span> elements: The use of the composition of the container, the combination of inline elements7. Creating an advanced layout is time consuming, and using a template is a quick option.

Basic knowledge of HTML (keep for myself)

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.