Already for a long time, HTML remains popular not only among site developers, but also among Internet users, as it is a simple and convenient marking of web pages, which is supported by most text editors.
What is HTML?
HTML is not a programming language, according to many, this is an auxiliary element that is necessary for the marking of the Web document.
For a visual example, it can be said that programming language - executes a specific program that is specified by the programmer (for example, sending messages to another user on any site), and so that the browser understands who needs to be sent this message and other nuances with text, images, audio files, (As pictures are located, on web pages, what font and size of the text and so on) does it that HTML does.
HTML consists of a set of specific tags. Tags are a special word that executes the desired command to HTML.
How to create a button in html?
Method 1.
To start creating a button, you need to decide on its design, what functions it will perform. For this, it is more convenient to make a plan, or rather block diagram.
Basically, such tags are used to start creating a button:
- Use of tag input;
- Using Button Tag;
- With references to tags and CSS properties.
Separately, I would like to mention the CSS properties that help to create, bright, beautiful, original buttons. Using CSS tools, it is much easier to work with graphics.
So, in order to create a button, you need:
- Go to a text editor.
- In a text editor, specify such data:
- \u003cInput Type \u003d "Button" name \u003d "next" value \u003d "next" /\u003e where input type tag, button is responsible for creating a button itself, name - responsible for assigning a button selected by the user name, Next - the name of the button (as it It will be called), "Value \u003d" Next - using this tag sets a value, for example, displaying on the created name button. Be sure to trace all brackets to be closed. If not at least one missing bracket, the created button is not displayed in the browser.
- After entering all the necessary data, save the document in HTML format. To do this, you need to change the expansion of the document and when saving to rename it. Give a name, and after the point, specify that this is an HTML document. First click the file, then "Save As ..."
- After that, in the window that appears, enter the file name, after which you select "all files" and specify the desired extension. We also do not forget to specify the path where you want to save the file.
- File extension Write after a point without spaces.
- You can view by clicking on the created file.
- The created button will look as follows.
There are several ways to create a button in HTML. TEG INPUT, not the only tag, with which you can create a button in HTML.
Method 2.
There are still different designs for creating buttons, but it is best to use CSS tools. For example, you can make the buttons together with the image.
- For this, also in the text editor indicate such tags:
\u003cButton Name \u003d "Next" Value \u003d "Next"\u003e
\u003cImg style \u003d "vertical-align: middle; width: 24px; " src \u003d http://nubex.ru/files/siroezhkin/icon.png.
"Alt \u003d" "/\u003e
Creating a button
\u003c/ Button\u003e
- Already familiar to us, Tag Button is responsible for creating a button. The img style command is responsible for displaying the link where the image is stored, and here you need to specify all the main characteristics of the image, how many pixels, how to locate. Be sure to not forget to specify all quotes and brackets, otherwise the information cannot be displayed correctly or not completely.
Working with tags in HTML is not so difficult, but this is an indispensable assistant when creating web pages and important items on the site.