ComputersSoftware

How to create an HTML page: step-by-step instructions, technology and recommendations

Do you think how to create an HTML page? To do this, you need to spend a few hours and you will know the basics of HTML. And you can create your first page in 5 minutes.

HTML stands for HyperText Markup Language. In translation, this means "hypertext markup language". It is important to understand that HTML is not a programming language, but a website markup.

All modern browsers can recognize it. Then they display the information in a convenient form for the user, as was previously planned by the author.

In this language, special tags are used. Each tag performs its function. There are a lot of them. Ideally, you need to learn everything. But for a beginner basic knowledge is enough.

HTML Basics

Before you create an HTML page, you need to know what it's made of. In this language there are two concepts: an element and a tag.

To specify where this element starts and closes, use the opening and closing tag. It looks like this.

content

As you can see, the opening and closing tags differ only in "/".

The entire HTML document is a collection of these elements. There are certain requirements for the structure of the document. All page content should be between two and tags. When you write the code, take the habit of immediately setting the opening and closing tag.

Also remember that the structure of the HTML language has its own hierarchy. Otherwise it is called nesting. The HTML tag is the most important, because everyone else is inside it.

HTML has two children:

  • ... ;
  • .. .

The HEAD block indicates various service information. This information is not displayed in the browser. For example, instructions for developers, for any programs, for robots and much more.

Most importantly, there is no content here.

The BODY section indicates the contents of the document that will be displayed to the user.

Learn to open and close tags at once, because there may be 10 nested elements. In addition, for convenience, it is recommended that nested tags be indented. For example, like this.

So do that equal in importance tags are at the same level, and the children are "inside". So it is much more convenient for perception and search of the necessary piece of the code. Otherwise, you can get confused. But to save space, head and body tags can be done without indenting. This is done so that everyone else does not have an unnecessary indent. All the rest is desirable to separate.

How to create a simple HTML page

To write the code you need some kind of editor. There are a lot of them. Notepad ++ and Adobe Dreamweaver are popular. You can also use a notebook.

This is how the Notepad ++ editor looks.

This is a very convenient editor and at the same time free. The above Adobe Dreamweaver is a paid one. The difference between editors intended for writing HTML code from a notebook is that special tags are highlighted. If it is not highlighted, then you wrote wrong.

To ensure that the backlight matches the language, you need to specify it in the settings.

Let's look at how to create an HTML page in Notepad. That is, we finish the technical part and then go directly to the study of tags.

How to create a web page in notepad HTML

First, open the notepad.

Then type in it what is shown in the next screenshot.

Get used to writing with your hands, not just copying. When you write with your hands, you better remember the entire tag database.

After that, click on the "Save File" menu and specify any file name, but with the extension .html.

After that, you can open the file in the browser and admire the result. Now you should understand how to create a web page in notepad HTML.

World Consortium W3C

There is an organization like W3C, which develops and implements all standards for the Internet. All browsers comply with these standards and process page layouts (codes) according to these rules.

On the official site of HTML developers, you can find a table with all the tags and rules for their use. Within the framework of this article, we consider the most basic.

Can you think about what the rules might be? All described tags have their own recommendation. There are several of them:

  • Optional tag.
  • Forbidden.
  • Empty tag.
  • Outdated
  • The Lost.

Tags in HTML

Before creating an HTML page, you need to understand what should be in the service part of HEAD.

In the HEAD area, there are both mandatory and optional tags. A mandatory tag is a heading. It is indicated by Title </ title>. It is assigned to the entire document. And what you see in the results to the Google search engine is the title tag. </p> <p> Let's move on to the BODY section. There are elements that are displayed in the browser, and there are also non-displayed ones. For example, comments are not displayed to the user. They can be used for notes or for hinting to other employees if you work in a team. </p> <p> They are designated as <em><! - comment -></em> </p> <p> Everything that is between <! - and ->, is evaluated by the program that way. Note that you can not attach a comment tag to another comment tag. Since as soon as you open <! -, everything that goes on will not be displayed. Information will not be visible until the handler sees the closing tag ->. </p> <p> An example of this nesting: </p> <p> <em><! - the first comment <! - the second comment -> the continuation of the first comment -></em> </p> <p> The result in the browser will be the following </p> <p> <em>Continuation of the first comment -></em> </p> <p> But the piece <em><! - the first comment <! - the second comment -></em> will not be visible. The second opening <! - tag was ignored and was treated as a plain text. </p> <h2> Headings in the text </h2><p> The title is indicated not only in the HEAD section with the title tag. In the context, the title should be indicated necessarily. Because only the user will see it. </p> <p> Headings come in different levels. This creates a hierarchy in the text. Equivalent to the volumes, chapters, paragraphs in the books. </p> <p> There are only 6 levels. The most important heading is denoted by <h1> Header </ h1>. In terms of page advancement, the text in the h1 and title tags must match. Moreover, h1 from the aesthetic point of view should be only one. But this does not mean that the browser will not process the subsequent h1. They can be done as many as you want, but this is undesirable. </p> <p> For subtitles use tags from h2 to h6. They are so-called the headline of the first, second, third, fourth, fifth and sixth levels. This creates the nesting of information and a subdivision into categories. </p> <p> It looks like this. </p> <p><amp-img src="https://i7.unansea.com/image/32c0ae3c7dd50ec7.jpg" alt="Link to html" width="371" height="256" layout="intrinsic"></amp-img></p> <h2> Paragraph </h2><p> The main text in the code needs to be formatted in the <p> ... </ p> tag. It originated from the word "paragraph". Each paragraph should be formatted with a <p> tag, and not all in one heap. A normal line break will not be processed. All will be displayed in one line. For hyphens, you must use <a href="https://en.unansea.com/break-a-line-in-html-use-the-br-tag/">the <br> tag.</a> </p> <p> Note that the migration tag is not closed. He is single. </p> <p> Consider the example of poetry. </p> <p><amp-img src="https://i7.unansea.com/image/7560d4ec7dd00ec6.jpg" alt="Pushkin's poems" width="700" height="627" layout="intrinsic"></amp-img></p> <p> Different tags, in addition to their "name", have their own attribute. For example, a paragraph tag has an "alignment" attribute, which is denoted by align. It can take the value left, right, center. That is, align on the left or right edge or center. </p> <h2> Using links </h2><p> Probably, you already thought: how to create an HTML page with links? There is nothing complicated in this. Creating links to an HTML page is easy. For this, there is a special <a> tag. It has its own mandatory attributes. The correct link looks like this: </p> <p> <em><a href="http:// site /article/255842/%D0%B0%D0%B4%D1%80%D0%B5%D1%81 pages"> link text </a></em> </p> <p> <em><amp-img src="https://i7.unansea.com/image/8008f29b7e1b0ed1.jpg" alt="Link to html" width="700" height="199" layout="intrinsic"></amp-img></em> </p> <p> If you do not specify the address and text, then this link will be useless or invisible to the user. </p> <h2> Conclusion </h2><p> There are so many tags, and each has its own set of attributes. After reading this information, you had to understand how to create an HTML web page. </p> <p> In order to expand your knowledge in this area, you need to read additional literature and use the official HTML tags directory that is located on the W3C website. If you do not use the periodically updated directory of language authors, it will be difficult for you to become a professional in this field. </p> </div> <!--mvp-content-main--> </div> <!--mvp-content-body-top--> </div> <!--mvp-content-body--> </div> <!--mvp-content-wrap--> </div> <!--mvp-post-content--> </div> <!--mvp-post-main--> <div id="mvp-post-more-wrap" class="left relative"> <h4 class="mvp-post-header"> <span class="mvp-post-header">Similar articles</span> </h4> <ul class="mvp-post-more-list left relative"> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/the-best-program-for-laying-tiles/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/d0c8a4df7db20ec9-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/d0c8a4df7db20ec9-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/the-best-program-for-laying-tiles/"> <p>The best program for laying tiles</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Computers</span></h3> </a> </div> <!--mvp-post-more-text--> </li> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/how-to-subtract-percentages-from-numbers-three-effective-ways/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/fd9e3a0e7e570ed6-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/fd9e3a0e7e570ed6-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/how-to-subtract-percentages-from-numbers-three-effective-ways/"> <p>How to subtract percentages from numbers: three effective ways</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Computers</span></h3> </a> </div> <!--mvp-post-more-text--> </li> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/what-is-steam-installation-and-use/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/7a72da966ff40e9f-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/7a72da966ff40e9f-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/what-is-steam-installation-and-use/"> <p>What is Steam? Installation and use</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Computers</span></h3> </a> </div> <!--mvp-post-more-text--> </li> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/joomla-or-wordpress-which-is-better-joomla-or-wordpress/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/5e62b74e6fc70e99-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/5e62b74e6fc70e99-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/joomla-or-wordpress-which-is-better-joomla-or-wordpress/"> <p>Joomla or WordPress? Which is better: Joomla or WordPress?</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Computers</span></h3> </a> </div> <!--mvp-post-more-text--> </li> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/watermarks-how-to-create-in-the-program-how-to-remove-watermarks-from-the-picture/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/440a6b7070500e9e-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/440a6b7070500e9e-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/watermarks-how-to-create-in-the-program-how-to-remove-watermarks-from-the-picture/"> <p>Watermarks - how to create in the program. How to remove watermarks from the picture?</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Computers</span></h3> </a> </div> <!--mvp-post-more-text--> </li> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/using-html-in-a-table/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/48e87deb7e2a0ed4-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/48e87deb7e2a0ed4-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/using-html-in-a-table/"> <p>Using HTML in a table</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Computers</span></h3> </a> </div> <!--mvp-post-more-text--> </li> </ul> </div> <!--mvp-post-more-wrap--> <p> </p><p> </p><p> </p><p> </p> <div id="mvp-post-more-wrap" class="left relative"> <h4 class="mvp-post-header"> <span class="mvp-post-header">Trending Now</span> </h4> <ul class="mvp-post-more-list left relative"> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/ascorbicum-with-glucose-instructions-for-use-and-reviews/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/a0c0008a7e6d0ed7-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/a0c0008a7e6d0ed7-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/ascorbicum-with-glucose-instructions-for-use-and-reviews/"> <p>Ascorbicum with glucose: instructions for use and reviews</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Health</span></h3> </a> </div> <!--mvp-post-more-text--> </li> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/is-liquid-chestnut-sold-in-pharmacies-reviews/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/c2fb43bc7db10ec5-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/c2fb43bc7db10ec5-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/is-liquid-chestnut-sold-in-pharmacies-reviews/"> <p>Is "Liquid Chestnut" sold in pharmacies: reviews</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Health</span></h3> </a> </div> <!--mvp-post-more-text--> </li> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/dyslipidemia-what-is-this-disease/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/0ee770f570350ea1-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/0ee770f570350ea1-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/dyslipidemia-what-is-this-disease/"> <p>Dyslipidemia - what is this disease?</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Health</span></h3> </a> </div> <!--mvp-post-more-text--> </li> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/termination-of-an-employment-contract-at-the-initiative-of-an-employee-is-a-right-not-an-obligation/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/bfd2c77761b90e64-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/bfd2c77761b90e64-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/termination-of-an-employment-contract-at-the-initiative-of-an-employee-is-a-right-not-an-obligation/"> <p>Termination of an employment contract at the initiative of an employee is a right, not an obligation</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Law</span></h3> </a> </div> <!--mvp-post-more-text--> </li> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/astoria-cheese-sauce-producer-reviews/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/fa5dd84b70350e9f-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/fa5dd84b70350e9f-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/astoria-cheese-sauce-producer-reviews/"> <p>"Astoria", cheese sauce: producer, reviews</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Food and drink</span></h3> </a> </div> <!--mvp-post-more-text--> </li> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/delicious-and-gentle-shins-in-the-multivariate-recipe/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/57cfe47e6fea0ea2-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/57cfe47e6fea0ea2-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/delicious-and-gentle-shins-in-the-multivariate-recipe/"> <p>Delicious and gentle shins in the multivariate: recipe</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Food and drink</span></h3> </a> </div> <!--mvp-post-more-text--> </li> </ul> </div> <!--mvp-post-more-wrap--> <p> </p><p> </p><p> </p><p> </p> <div id="mvp-post-more-wrap" class="left relative"> <h4 class="mvp-post-header" style="margin-top:40px;"> <span class="mvp-post-header">Newest</span> </h4> <ul class="mvp-post-more-list left relative"> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/big-and-kind-giant-actors-and-briefly-about-the-plot-of-the-film/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/d60f438b7e5d0ed2-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/d60f438b7e5d0ed2-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/big-and-kind-giant-actors-and-briefly-about-the-plot-of-the-film/"> <p>Big and kind giant: actors and briefly about the plot of the film</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Arts & Entertainment</span></h3> </a> </div> <!--mvp-post-more-text--> </li> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/pictures-of-victor-vasnetsov-the-history-of-russia-and-its-culture/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/242ac0cf62720e6f-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/242ac0cf62720e6f-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/pictures-of-victor-vasnetsov-the-history-of-russia-and-its-culture/"> <p>Pictures of Victor Vasnetsov - the history of Russia and its culture</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Arts & Entertainment</span></h3> </a> </div> <!--mvp-post-more-text--> </li> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/world-contraceptive-day-when-and-how-is-it-celebrated/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/48dc41316ffc0e9f-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/48dc41316ffc0e9f-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/world-contraceptive-day-when-and-how-is-it-celebrated/"> <p>World Contraceptive Day: when and how is it celebrated</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Home and family</span></h3> </a> </div> <!--mvp-post-more-text--> </li> <li> <div class="mvp-post-more-img left relative"> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/what-to-give-for-the-birth-of-a-child/"> <p>What to give for the birth of a child?</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Fashion</span></h3> </a> </div> <!--mvp-post-more-text--> </li> <li> <div class="mvp-post-more-img left relative"> <a href="https://en.unansea.com/gofre-is-a-hair-iron-tips-for-using/"> <amp-img class="mvp-reg-img" src="https://i7.unansea.com/image/9796b5177e670ecf-560x315.jpg" width="560" height="315" layout="responsive"></amp-img> <amp-img class="mvp-mob-img" src="https://i7.unansea.com/image/9796b5177e670ecf-80x80.jpg" width="80" height="80" layout="responsive"></amp-img> </a> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/gofre-is-a-hair-iron-tips-for-using/"> <p>Gofre is a hair iron. Tips for using</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Beauty</span></h3> </a> </div> <!--mvp-post-more-text--> </li> <li> <div class="mvp-post-more-img left relative"> </div> <!--mvp-post-more-img--> <div class="mvp-post-more-text left relative"> <a href="https://en.unansea.com/the-medicine-haliksol-instructions-for-use/"> <p>The medicine 'Haliksol'. Instructions for use</p> <h3 class="mvp-cat-bub"><span class="mvp-cat-bub">Health</span></h3> </a> </div> <!--mvp-post-more-text--> </li> </ul> </div> <!--mvp-post-more-wrap--> </div> <!--mvp-main-box--> </div> <!--mvp-article-cont--> </article> <!--mvp-article-wrap--> </div> <!--mvp-main-body-wrap--> <footer id="mvp-foot-wrap" class="left relative"> <div id="mvp-foot-bot" class="left relative"> <div class="mvp-main-box"> <div id="mvp-foot-copy" class="left relative"> <p>Copyright © 2018 en.unansea.com. Theme powered by WordPress.</p> </div> <!--mvp-foot-copy--> </div> <!--mvp-main-box--> </div> <!--mvp-foot-bot--> </footer> </div> <!--mvp-site-main--> </div> <!--mvp-site-wall--> </div> <!--mvp-site--> <div id="statcounter"> <amp-pixel src="https://c.statcounter.com/11999983/0/a97b263e/1/"> </amp-pixel> </div> </body> </html> <!-- Dynamic page generated in 1.726 seconds. --> <!-- Cached page generated by WP-Super-Cache on 2019-10-02 05:54:02 --> <!-- 0.002 -->