How to create an HTML page: 9 steps (with pictures)

Table of contents:

How to create an HTML page: 9 steps (with pictures)
How to create an HTML page: 9 steps (with pictures)

HTML (Hypertext Markup Language) is the primary programming language for developing web pages. Created as a simple and convenient programming language. Most of the pages on the Internet have been developed using one of the forms of this language (ColdFusion, XML, XSLT). After reading this article, you can continue your training using other resources on the Internet. Try to search the internet for other articles related to this topic.


Method 1 of 1: Writing an HTML Page

Write an HTML Page Step 1
Write an HTML Page Step 1

Step 1. Before you begin familiarizing yourself with one of the steps presented here, see the “What You Will Need” section

Write an HTML Page Step 2
Write an HTML Page Step 2

Step 2. What you need to know before you begin to understand this issue: 3 Basics

Have you ever heard of the tag? The tag is surrounded by angle brackets, with the word inside. The end tag is written in the same form, but with the addition of a slash after the first angle bracket. An attribute is an optional word in a tag that is used to add details to a tag. Step 4. Beginning of the document.

In whatever text editor you are using, paste in the following:

wikiHowHello World

The tag must be closed with the same tag, but with a slash after the first angle bracket. There are exceptions such as META or DOCTYPE tags.

Write an HTML Page Step 3
Write an HTML Page Step 3


  • Typically, most web pages are specified with DOCTYPE”. This helps determine the encoding as well as how it will be perceived by web browsers. Most pages will work without it, “but it's necessary if you want to be compliant (They regulate the types of encodings on the Internet and how they are used). The DOCTYPE for HTML 4.01 is presented below: It is one of the most common DOCTYPEs used on pages all over the internet. First, it points to the type of the page describing the ‘html’, then it highlights the type of encoding, and finally, the location of the DOCTYPE, which as a result, describes the page for the web browser.
  • There are different types of HTML (Different versions developed over the years), for example using new tags, or specific tags. Some tags are deprecated (other more useful tags are used instead).
  • and - this is what is currently imposed on tags, because they are used to transform text, but not specifications, as a result, other tags come to replace them. The tag is a substitute for, and, a substitute for.
  • It is important that the previous tags are replaced with tags that are more than formatting. If the text is translated, then not only the formatting, but also its meaning remains the same. This is semantically correct.
  • In XHTML version 2.0, tags and are not used, as in HTML version 3+.
Write an HTML Page Step 4
Write an HTML Page Step 4

Step 6. HTML "Encapsulation Rule"

  • Let's take a look at the more important tags currently in use. During the creation of the page, a simple structure is used. If a tag was opened, then as a result, it should be closed.

    This applies to the entire structure. Here's a valid example of the XHTML layout structure:

  • Hello World!
  • Hello World

  • Sample code that prints the Hello World message. This is called the Hello World test.
Write an HTML Page Step 5
Write an HTML Page Step 5

7 Title

  • The web page title is the content between the tag. This content cannot be viewed by the user (only the title that is shown in the page title). Information between tags can be enclosed by other tags, such as:
    • The META tag is used for information that is useful to search engines and other utilities.
    • LINK tag that creates a link between documents, for example for Styles (CSS).
    • SCRIPT tag, this includes almost any web coding, with the ability to remotely access (from another document).
    • The STYLE tag, which is essentially a style that can be applied to a page.
    • The TITLE tag is the title that appears as the title of a page in your web browser.
  • Let's see a demo of some of these in an example header taken from this website (it has been shortened):

    • In case you haven't noticed, the individual tags have been highlighted, with the actual information removed. The example is pretty short, showing almost every tag that can be found in, with the exception of HTML comment (We'll talk about this in simple tags).

Write an HTML Page Step 6
Write an HTML Page Step 6

8 Simple tags everywhere

  • Let's move on and see other tags. Be careful with your tagging and remember the rule of thumb, "Encapsulation."
    • Highlights important text.
    • Makes text smaller. Font size is measured in standard units from 1 to 7, 3 is the default text size. …
    • Defines a block of rich text. As it is correct, such text is typed in a font of the same size and with all spaces between words.

    • Shows text as a phrase.
    • Strikes through text.
    • Defines the text that has been inserted into the document.
    • One of the many title tags. Tags of this kind start with 'h', with a difference in number. Make sure to close the tag with the same number

    • Defines a paragraph.

    • Unlike other tags, the comment must be inside the tag itself. This information is only visible when the code is viewed.
    • Shows a quote, can be used with a tag.

    • The few examples provided above are not a complete list of existing tags. To find out about others, visit.
Write an HTML Page Step 7
Write an HTML Page Step 7

9 Creating a clear structure

  • Pages are designed to hold data in simple sets of tags so that we can parse the information into paragraphs. The computer recognizes data; it does not know about context or conceptual connection. We have to create computer-friendly HTML pages. This is achieved by using the div tag. It helps to create a huge number of pages. It can be styled with CSS and is easier than creating large code tables for the layout.

    This tag is special because it can be styled and use separate blocks of information that will be understandable to both the user and the computer

  • Let's take a look at a simple HTML layout that uses a div tag.

    • Hello World!
    • Hello World

    • This is some text in div # contentOne.

    • A paragraph in a sub-section of div # contentOne

  • Using tags helps with finding and modifying styles while working with CSS and Javascript. HTML will use different encoding to work with CSS styles and Javascript to create a better and more responsive user experience.


  • After reading this article, do not stop and think that you have learned everything you need to know. There is always something to learn, especially in this technology.
  • Learn, understand, and write code.
  • Please note that some tags only use. Para and br are some examples. Other tags opened with need to be closed further. For example, " ".
  • People expect new discoveries, so reinvent, design, or code.
  • Once you've learned a lot, try learning server programming.
  • Learn to work with CSS as well as Javascript.

Popular by topic