Teaching html css programming from scratch. Basic html for beginners in plain language

From the author: Hi all. We all want to better understand website building in order to engage in interesting projects and bring our ideas to life. But what if you are a complete beginner? Our html tutorial for dummies with practical lessons will help you finally make such an important breakthrough in website building from the zero level to at least a basic understanding.

In learning website building, as in almost any other business, practice is important. You can re-read the recipe for borscht 1000 times, but this will not make you cook it. You can learn the basic principles of driving a car, but until you get behind the wheel, all this is up to the light bulb. There is undoubtedly some benefit from knowing the theory, but not as much as from real skills.

So, if we are talking about learning html, then there is also theory, but there is practice. The theory in this case is just some kind of series of articles, lessons on the topic of the language, basic tags and their application, etc.

Practice for you begins when you create an html file yourself, write the start code there and begin to study with your own hands how it all works. Wrote a tag, looked how it works. Inserted a picture - checked. Added some attributes, etc. It is practice that makes it possible to quickly understand and remember the main tags. Then you just write them on the machine and you do not need to remember for half an hour how to create a list.

Well, for rare tags, you should always use a dictionary. No one, not a single super layout designer and web developer, I think, knows all the tags by heart. It's just not necessary. If you use a tag once every 10 years, then why keep it in your head? I think it's understandable.

But I would call such a practice just a kind of sandbox game. You just write different tags, trying to deal with everything as detailed as possible, but all for what? There must be some purpose. Usually html and css are studied in order to then create their own web pages and full-fledged sites.

So, the best practice is to take a ready-made website layout and lay it out. Layout is precisely the process of creating web pages from a multi-layered drawing using html and css languages. They can also use frameworks, javascript and application libraries during layout, but this is a topic for another conversation. All this is an addition. Html is a basic technology that needs to be understood very well.

But I will please you - it is basic, it is the simplest. Learning how certain tags work and how to apply them is very easy. In html, there are no complex algorithms, functions, methods, classes, as is the case in programming languages. This is a markup language, it is enough to study it a little, and everything will be very clear.

How to learn the language and where to get practice?

Again, I'm talking about easy learning only if you go the right way. That is, watch sensible video tutorials, where the necessary things are explained step by step, from simple to complex. If you watch lessons that are not built according to this format, then most likely you will simply not understand most of the material.

Fortunately, on our site all the lessons are structured and arranged from simple to complex. Therefore, if you study html according to our lessons, then there will be no problems with mastering the material.

I can assure you that css is more fun to learn! And in some respects even easier. Firstly, css also has quite a few properties and rules that you have to remember. Secondly, this language has a very simple syntax, so even a beginner will have no problems writing code in it. Thirdly, since css is responsible for the appearance of the page, at first you will be delighted that you made the page turn red, and you made a frame for that picture.

In general, learning css is simple and interesting, so I recommend not to delay and start immediately after you finish with the basics of html.

Your final practice

Finally, you have an exam. But don't worry, it will be easy. Moreover, you will not have to do it yourself, but only according to the instructions that are in the lessons. This exam is a course. In it, you will finally achieve the main intermediate goal - make up your first site and get an understanding of how to use html and css in real site building. Let it be a simple site, but the knowledge gained will be enough for you to grow further and create more complex layouts.

HTML is the hypertext markup language that made the web the way we know and love it. It is thanks to this wonderful tool that the sites look beautiful and modern, and the convenience of their use is also ensured. HTML simply arranges the elements of a web page into a user-friendly way. His work is comparable to what MS Word or OpenOffice do. They turn a featureless mass of letters into a document that has paragraphs, bold text, italics, tables, and even images. Approximately the same language does HTML, with the only difference that its documents are displayed in the browser, and the possibilities of this tool are much wider than those of a text editor. For markup, tags are used - special commands that describe the structure of a web page. They are enclosed in angle brackets -<тег>so that the browser can distinguish them from the bulk of the text. Next, we'll cover the basics of HTML for beginners.

Visual editors

Beginners who just set foot on the path of learning HTML often start their work with programs that allow you to create sites without any knowledge. In them, you can simply arrange the elements on the screen as they will be displayed in the browser. It would seem that here it is - a source of eternal grace, allowing you to get rid of most web developers. But not everything is so simple, since visual editors have a lot of shortcomings that make it impossible to use them in serious projects.

All these programs create a lot of unnecessary tags that make the final version of the page cumbersome and suboptimal. Of course, in this age of high-speed Internet, this matters less than before, but there are a number of reasons why a concise and well-written site turns out to be more practical than its counterpart created in a visual editor. A web page made in such a program will be poorly processed by search robots, since every kilobyte of code is important for them, and cumbersome and illogical code with a bunch will hardly be to their liking. In addition, editors are often behind the times, becoming irrelevant, and it is not worth spending resources on their development, since not a single professional uses these products. Therefore, anyone who wants to work in the field of creating websites should know the basics of HTML.

tags

As mentioned above, tags describe the structure of a web page to the browser. Most of them have an opening and closing tag, but not all of them. For example, ..., where the content is instead of dots. The first one shows where the tag starts and the second closes it. There may be other page markup elements inside, they can be nested inside each other like a nesting doll. It is important to close the tags in a timely manner so that the page is displayed correctly.

There are also single tags that do not need to be closed. In them, the content is inside, just as it can be written for most HTML tags and sets the properties of the element. It is indicated in the opening tag and looks something like this: attribute = "...", where instead of dots there is an attribute value. Knowing the tags is the first and most important step in mastering HTML. The basics of this art also involve understanding the structure of a web page.

Document structure

Every HTML document has a corresponding extension, such as Index.html. So the browser can understand what it is dealing with and display the page correctly. It is advisable to store all the files used to create the site in one directory, which will greatly facilitate your life in the future. The basics of the HTML hypertext markup language require a clear understanding of the structure of a document. It starts with the tag, which tells the browser the version of HTML that is used in this document. At the moment, the fifth version of the language is relevant, so there is no need to invent anything, you can safely insert the above tag at the beginning of any page.

Then come the main paired structures that make up the "skeleton" of the site. The first tag in which all others are nested − .... Anything outside of it is not recognized as a web page by the browser, so it opens the document and closes it. This tag is required for any document. It also contains a few more required tags, which will be discussed below.

head

Inside the tag ... contains technical information that will not be displayed on the page, but is nevertheless an important part of the HTML document. The foundations of the site are laid in this place, here the encoding is selected and the page name is entered. It is contained within a required tag .... The name is displayed at the top of the browser, where you can also place a small icon that characterizes the content of the page. It is advisable to immediately specify the encoding of the document for its correct display. This can be done with the tag . Meta tags provide information about the structure of the page and are usually located inside the head.

Link

Knowing the basics of HTML also involves using cascading styles, or css. They set the properties of the elements that will be displayed on the page. The modern approach to this task involves the removal of such characteristics as the color, height and location of the element in an external file for greater convenience. The tag is used to connect the css file . When finished, it looks like this: , where href indicates the location of the file and type indicates its type.

Body

It is in this part of the HTML document that the visible part of the page is created. Everything that is done inside the "body" will be shown by the browser. IN a huge number of HTML tags are used. The basics are text formatting, working with links, and the simplest tools for structuring a web page. To get started in HTML, it is enough to know the basic tags and be able to use them. Below are the most popular ones:

mob_info