You will need
- 1) Notepad
- 2) the basics of HTML
The basis of a site – html document. It is usually called "index.html". It sets the foundations of the site, blocks, tables, and so on. Open the program Notepad. Enter the following code : . Then write the main tag page is "html", and do not forget to close it. Everything that is between this tag and be html page.
The next step we create the header of the page. Write closing tag for "head". All that is between them, will not be displayed on the page. Here we will prescribe the page title, meta tags, reference to css files, Java scripts.
Give the name of our page. Is responsible for this tag is "title". Write it between tags "head". "Title" is a closing tag, so between the two of them write the name of the created page. Then write the main meta tags. Do the binding (if needed) to the tables in style. Is responsible for the following code: . Tag for "head" over.
Begin to create the body of the document. All that is written in the body of the document will be displayed to users who visit your page. Prescription tag "body". Then begin to create the text on the page, insert objects (tag object), tables ("table").
A necessary element of the page is a link. Tag tag "a" to use in conjunction with the "href" attribute, which is assigned the values: full path to the source. If the reference source is located on the same server as the page, the assigned value can be assigned only the name of the page source. In order to make the link color, set the tag "body" with the following attributes: link (link color), "vlink"(the color of the link after it has already passed), "alink" (color at the time of clicking the link).
For working with text use the tag "p" to denote a paragraph. Tag "H", which was adopted six values, from large to small, for marking the header. Tag "font" to specify font. Alignment can be set using the attribute "align". After creating the document body, closing the tag "body". The Html page is ready.
Advice 2: How to create html page in Notepad
Creating your own website will not seem so difficult as it seems at first glance, if you understand the basics of HTML and create the simplest webpage in an ordinary notebook, which is on each computer. It was with the creation of HTML pages in Notepad, all web programmers started to learn web development, you too can master this simple science.
The <html> tag is the main tag of your website – inside it contains all other code, component of your webpage. Code completion is denoted by end tag </html>.
Save the text document, but not in text format and in html format – when saving rename the file to index.html. Open the resulting file with any browser – you will see a blank pageon which is printed the title of the site you entered in the previous step.
Now you can open the file using Notepad and continue to edit its code to further fill the page. Learn the basic html tags to format the page. The <br> tag use for text wrapping to the line below, and the <head></head> and <title></title> use to define the header of the page. The important tag is <body></body> - it should contain the body of the document.
So creating a base page, start to fill it with text. Take any text you want to insert on a website, copy it and paste right after <body> tag in the document. Save the file.
Now format the text – break it into paragraphs using the <p> tag and align it with the parameter align with values left, center, right, justify. By default all texts in the HTML left-aligned. Some particularly important points and headings, highlight in bold, the concluding part of the text in the <b>tags</b>. To make text slanted, enclose it in tags <i></i>.
In order to make the page look brighter and more attractive, add text to any image. Select the appropriate picture or photo, reduce it in any editor and store it in a file folder for future site. Enter the tag <img src="picture.jpg"> the location in your code where you want the illustration. Instead of a picture enter the full name of your saved picture. If desired, align the image using the above-described parameter align. Save the document and open it in a browser to make sure that the image and text appear on the page.
Be attentive while working with the code. The main problem is due to carelessness when creating the code. Ensure that the tags are closing, have closed.