HTML control elements and CSS style basics understand

Source: Internet
Author: User

  HTML (Hyper-text markup Language)

   1. The language is used to write hypertext documents , and on the device containing browser software, hypertext document refers to the collection of video, audio, hyperlinks, text, images, pictures and other multimedia information as one of the documents.

  Label element (control Element)

1. Tags are divided into inline and block-level labels, inline labels have small (text font size), big (text font Dahua), address (text address style), img (load picture element), a (load link) and so on. block-level labels have div (block-level elements), UL (list parent element), Li (List child element), p (text), and so on. The difference is the rendering effect in the browser.

2. Each label has a unique function, in the browser, only the page loaded with HTML elements, the page has something to appear, and then the control on the basis of the effect.

3.HTML language is to conform to the norms of the consortium, the Internet has been improving and trimming HTML, and now most browser manufacturers are also in accordance with the specification of the browser.

  

  attribute element (style element)


1. Attribute, is to load the tag element style, than like a P tag, the same text content, respectively, given two attributes, in the browser is rendered, is the same thing, but can be different font or color.

2. Introduce styles in three ways inline style, inline style, external style. External styles need to write CSS files, which are cascading style sheets . Load the style sheet into the HTML document with a style tag.

In the head, write this sentence: <link rel= "stylesheet" href= "path to CSS file" >

 Summary: using HTML and CSS a colorful Web page is available, has content, has a basic style.

    

HTML control elements and CSS style basics understand

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.