[Web Programming Learning] 230910 The first front-end program

Front-end development mainly refers to the development of user interfaces in web pages or mobile applications. It covers the use of technologies such as HTML, CSS and JavaScript to build user interfaces and implement functions such as page layout, style design, interactive effects and data display.

Basic skills for front-end development include:

  1. HTML (Hypertext Markup Language): A markup language used to define the structure and content of web pages and is responsible for building the skeleton of the page.

  2. CSS (Cascading Style Sheets): used to describe the style and layout of web pages and is responsible for beautifying the appearance of the page.

  3. JavaScript (JS): A scripting language used to implement interactive functions on web pages, including user input verification, dynamic content generation, event processing, etc.

There are also other related technologies and frameworks, such as:

  1. Responsive design: enables web pages to automatically adjust layout and style according to the screen sizes of different devices, providing a better user experience.

  2. jQuery: A popular JavaScript library that simplifies tasks such as DOM manipulation, event handling, and animation effects.

  3. Front-end frameworks such as React, Angular, and Vue.js: use componentization ideas to build complex user interfaces to improve development efficiency and maintainability.

  4. AJAX: Asynchronous JavaScript and XML for data interaction with backend servers without refreshing the entire web page.

In general, front-end development is the work of building user interfaces, which requires mastering technologies such as HTML, CSS, and JavaScript, as well as some related frameworks and tools. These skills help developers achieve a good user experience and interact with data on the backend.

The above problem comes from an AI text tool, which is, of course, usually used as a search engine.

This article mainly focuses on creating a simple front-end program first.
step:

  1. Create a new file [Welcome.txt] in an empty local folder [...\230910\source code example]
    Note: Use the computer's default text editor to write code. You can install some professional software later.
  2. Write the following information in the text:
<html>
	<head>
		<title>我的网页</title>
	</head>
	<body>
		hello,我的第一个网页!!!!
	</body>
</html>

Note:

  • All codes need to be written under the English input method. Most of the problems at the beginning are caused by the mixing of Chinese and English symbols.
  • HTML: are two tags in HTML markup language, indicating the beginning and end of an HTML document. It is used to define the root element of an HTML document, which contains the content of the entire HTML document. Inside the tag, it can contain and two sub-tags.
  • head: The tag is used to define the head of the document, which contains some descriptive information about the document, such as title, character encoding, etc., and can reference external style sheets (CSS files) and script files (JavaScript files).
  • Body: The tag is used to define the main content of the document, including the page content displayed to the user, such as text, pictures, links, forms, etc.
  1. Change the suffix of the file to .html and choose to open it with a browser:
    Insert image description here
    Note: Here you can see what the running front-end program looks like. It is very simple. What you can see is the title written in the html file (mine web page) and the content displayed in the body tag of the page (hello, my first web page!!!!)

That's it, see you later.

Guess you like

Origin blog.csdn.net/weixin_43958438/article/details/132797079