Basic knowledge of HTML

What is HTML?

HTML is used to create web pages
Browser common sense:
  • Common browsers:

    Google (Chrome), Apple (Safari), IE (Edge), European friends (Opera), Firefox (Firefox)

  • Browser kernel: browser kernel can be divided into two parts: a rendering engine (layout engineer or Rendering Engine), and the JS engine
    • Rendering engine: responsible for obtaining content pages (HTML, XML, images, etc.) organize messages (adding CSS), calculated page is displayed, responsible for interpreting the page syntax
    • JS engine: parsing the JavaScript language, the implementation of the JavaScript language to achieve the dynamic performance of your pages.
Rendering engine determines the browser formats the information content of the page and how pages are displayed. Explain different browser kernel pages written grammar is also different, so the same page in a different kernel browser rendering (display) results may be different, this is the page writers need to test web pages in different kernel browser the reason display effect.
  • Common Core (rendering engine):
  • Blink : Google (Chrome) kernel , the beginning (webkit) 2013 Nian 4 Yue 3 Ri from the kernel with Safari, Blink actually webkit branch, strengthen it based on the original, most of the domestic browser kernel are used Blink
  • Gecko : Firefox (Firefox) kernel, and with the use of flash
  • Trident : IE (now Edge) kernel, the country which is a nuclear Trident (compatible) a lot of dual-core browser, for example: 360 speed browser IE core kernel and Google
  • Webkit / chromium: Safari kernel, apple family standard, as well as travel browser 3, Symbian mobile browser, Android default browser is webkit
  • Presto: European friends (Opera) kernel, the Norwegian production, now use Google browser kernel
  • Web standards:
    • advantage:
        1. Let broader prospects for the development of web
        2. Content can access a wider range of devices
        3. Search engines are more easily
        4. Reduce the cost of site traffic
        5. Make the site easier to maintain
        6. Improve browsing speed of page
  • web standard quasi-constitution:
web standards, not a single standard, a collection of twenty developed by W3C and other standards organizations a series of standards. Including structure (Structure), performance (Presentation) and behavior (Behavior) three.
        1. Structure standard criteria: the structure is used to organize and categorize page elements, including XML and XHTML two parts. Make content more logical.
        2. Standard Style: the performance for Setting page element plate, color, size, and other exterior style, mainly referring to  CSS. Styles used to modify the contents of
        3. Standards of conduct: action refers to the definition and interactive web pages to write models, including two of the DOM and ECMAScript. Interactive content and operating results.

The basic structure of the HTML

1. Declare the document: <! Doctype html>
2.html Tags: Web biggest label, all content and settings should be placed in the middle
  • head Head: page settings, coding format, titles, etc.
  • body body: displays the contents of which page

HTML grammatical structure and specifications

  1. The composition of the label: <start tag> content </ end tags>
  2. Syntax Specifications: label must be lowercase, the value of the property are generally wrapped in double quotes (following specification)

Guess you like

Origin www.cnblogs.com/jp-code/p/10981200.html