Home  >  Article  >  Web Front-end  >  How to make a simple web page with text? Use Notepad to create a simple web page example

How to make a simple web page with text? Use Notepad to create a simple web page example

寻∝梦
寻∝梦Original
2018-09-11 13:38:0817965browse

Create a webpage with textMany people can do it, but some people have tried to use text to make a webpage. Today’s article explains how to use text to create a simple webpage effect and make a webpage. A lot of tags are needed. The article introduces several of the most commonly used tags and gives renderings. If you are interested, you can take a look at this article

First, let’s take a look at how to make a simple web page:

1. On the computer desktop Right-click the mouse-New-Text Document; then there will be a document on the desktop:

How to make a simple web page with text? Use Notepad to create a simple web page example

2. Now double-click to open the text document, inside Write something:

How to make a simple web page with text? Use Notepad to create a simple web page example

#Write hello world in it! , but how to make it display on the web page? Let’s continue looking;

3. Change the suffix name of the text document from TXT to html:

How to make a simple web page with text? Use Notepad to create a simple web page example

How about, now our This web page is basically ready. Let’s click it to see the effect:

How to make a simple web page with text? Use Notepad to create a simple web page example

Look, it is now displayed on the web page. This is the most basic web page.

4. Now that our basic operations are complete, let’s look at adding some code in it:

How to make a simple web page with text? Use Notepad to create a simple web page example

Of course we This is not done in a standardized way. What is standardized is that you need to add a lot of code and wrap up what you want to write. We are just making it easier for everyone to understand the meaning of these labels. We are looking at this text and there is nothing in it. Let’s save it and go to the browser to see the effect:

How to make a simple web page with text? Use Notepad to create a simple web page example

This is the effect, the h1 we display in the code There is a big difference between tags and what is displayed on the web page. In fact, the h1 tag is only used as a title, which is beneficial to search engines. It is usually enough to have one h1 tag in a web page. If there are more tags, it will be detrimental to search. There is a big difference between text tags and label tags. Text tags usually use

tags.

5. Now that we have seen the display effects of title tags and text tags, let’s take a look at the usage of other tags:

How to make a simple web page with text? Use Notepad to create a simple web page example

Now we introduce two tags, one is the bold tag and the other is the enlarged tag. Let’s take a look at the effect displayed in the browser:

How to make a simple web page with text? Use Notepad to create a simple web page example

This is As shown in the picture above, we can see that the text in the b tag has become bold, and there is a normal text in the middle, making our display effect more obvious. There is also a big tag at the end, which is a tag that enlarges the element and can be one font size larger than the text in the same element. It should be obvious.

This is the basic use of text. This is the entire content of this article. If you want to see more knowledge, go to the

HTML Learning Manual column of the PHP Chinese website to learn. Students who have questions can ask below.

【Editor's Recommendation】

How to set spaces in HTML paragraph elements? Summary of HTML space settings

#How to use the big tag in html? Usage examples of html big tag

The above is the detailed content of How to make a simple web page with text? Use Notepad to create a simple web page example. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn