HTML Basic
Write your first HTML page example
The first is how to write the first HTML web page. Through the following simple example, you can write a simple web page immediately. Please open Notepad or Notepade++ code editor, copy and paste the following code, and save it as The new file is test.html.
<html>
<head>
<title> My first webpage</title>
</head>
<body>Welcome to…</body>
</html>
Then open the written text.html with a browser, and you can see the text "Welcome to…" displayed on the browser, which means your first step is successful. From this code, you can easily see that a complete HTML web page starts with <html> and ends with </html>, where <head> and </head> are used to place some web page announcements. For example, the title of the webpage, Meta Tag or even Facebook’s Open Graph, and then <body> and </body> are used to put the content of the webpage you want to present, which can be text, pictures or other distinctive content. <head>
<title> My first webpage</title>
</head>
<body>Welcome to…</body>
</html>
Post a Comment
0 Comments