To create a website, you need to know the basics of web programming. This requires learning HTML, CSS, JavaScript. The first two languages mentioned are easy to learn. JavaScript is more complex. To make your work easier, you can use various HTML and CSS code editors.
Html
HTML - the language in which web pages are written, is the backbone of the site. To work with this language you need a text editor "Notepad" and a browser. To create a simple page, you need to create a "Notepad" file, then open it and select the "save as" function. You can write any name followed by the extension ".html". The document type must be selected "all files". A file will now appear next to Notepad that you can open in your browser. The next required step is simple web page markup, consisting of doctype and tags. It will look like this:
You can paste this code by opening the web pages with Notepad. Opera browser allows you to edit a web resource right in it. To do this, call the context menu and select "source code".
A doctype is an announcement to browsers about how the content of a page should be displayed. There are several types of declarations, but with the release of the fifth version of HTML, a single doctype was adopted
A tag is a unit of the html language. With the help of tags on the site, images are displayed, the background is set, the text is formatted, etc. Typically, two tags are used to display an element: opening and closing. They both start with ". The only difference is that a slash is written after the "<" sign in the closing tag. For example, Site name. A link will be displayed on the web page.
The list of tags can be found in reference books freely available on the Internet.
CSS
CSS - style parameters, thanks to which you can control the design of all pages on the site. To create the CSS, a text editor file is created, it opens and the "save as" option is selected. Any name is entered, followed by the extension ".css". Let's say it's called ows. To connect this file to pages, you need to insert the code between tags. This will only work if the CSS and web pages are in the same folder. If in different folders, then in the part of the code href = "ows.css" you must specify the path to the location of the file.
You can set the style in the CSS file itself. The code is written according to certain rules:
Examples:
body {background-image: url (img / tree.jpg);}
a: link {color: red;}.
The first code sets the background of the page to an image. The second code sets the color of the link. Body can be any element to which the style is applied. All CSS properties can be found in references.
JavaScript
JavaScript is a scripting language for web pages. It is used to create a dynamic site. With the help of JavaScript, it is possible to make the content of the page flexibly change at any discretion. The language code is entered in the same place as HTML.
The script starts with a tag and ends. The specified functions are written between them. There are tons of them, and you can find them in JavaScript books and reference books. You need to know that there is a hierarchy of objects in this language. When assigning a function to a specific element, the entire path from the higher-standing object is indicated first.
Site placement on the Internet
If the site has already been created, then it's time to put it on the Internet. To do this, you need to purchase a domain and hosting. It will be more convenient if they are bought in one place.
Domain - your own unique name for a website on the Internet. There are three levels. First-level domain names are not for sale. For example, ru, net, com, org. You can choose the second and third levels of domains.
Hosting is a space on the server where the content of the site will be uploaded, for example, images, music, text.