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:
2. Now double-click to open the text document, inside Write something:
#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 about, now our This web page is basically ready. Let’s click it to see the effect: 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:
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: 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 usetags.
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:
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: 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!