Introduction to the front-end of Programming Language

Source: Internet
Author: User

Introduction to the front-end of Programming Language

We know that the front-end of a website is composed of HTML, CSS, and JavaScript.

Html: Responsible for website structure (Hypertext Markup Language)

Many people think that html is not a programming language. It only uses tags to display the website structure.

Html can be divided into two parts: head and body. They are all written in html tags.

A simple html structure:

 

[Html]View plain copy print?
  1. <! DOCTYPE html>
  2. <Html>
  3. <Head>
  4. <Metacharsetmetacharset = "UTF-8"/>
  5. <Title> webpage title </title>
  6. </Head>
  7. <Body>
  8. Here is the content of the website.
  9. </Body>
  10. </Html>

CSS: Responsible for website styles (stacked style sheets)

CSS is used to display html as the desired display.

Css is usually written in an external file. It can also be written in the head or directly in the Tag Element.

CSS syntax:

Selector {

Attribute: attribute value;

}

JavaScript: responsible for website behavior (script language)

JavaScript is also the largest language on the Internet. JavaScript is indispensable for any website.

Native JavaScript consists of three parts:

ECMAScript: Core JavaScript Language

DOM: Document Object Model

BOM: browser Object Model

There are also many js libraries and front-end frameworks, which will be introduced later.

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.