We know that the front end of the website is made up of three large html,css,javascript.
Html: Responsible for the structure of the Web site (Hyper-text markup Language)
Many people think that HTML is not a programming language, it is just a label to show the structure of the site.
HTML can be divided into head and body two parts, they are written in the HTML tag.
A simple HTML structure:
[HTML]View PlainCopyprint?
- <! DOCTYPE HTML>
- <html>
- <head>
- <metacharsetmetacharset= "utf-8" />
- title of < title > page </title>
- </head>
- <body>
- This place is the content of the website
- </Body>
- </html>
CSS: The style that is responsible for the site (cascading style sheets)
CSS is used to display the HTML Chengxiang to display the look.
CSS is usually written in an external file, can be written in the head, or directly in the tag element.
CSS syntax:
selector {
Attribute: property value;
}
JavaScript: Responsible for Web site behavior (scripting language)
JavaScript is also the first language of the Internet, and for any Web site, JavaScript is a big part of it.
Native JavaScript consists of three main parts:
Ecmascript:javascript Core language
DOM: Document Object Model
BOM: Browser Object model
There are more JS libraries, front-end frames, and follow-up will also be introduced.
Introduction to the front end of programming language