The most important tags in HTML are those that define headings, paragraphs, and career change.
The best way to learn HTML is through an example practice. W3s has created a very good HTML editor.
With this editor, you can edit your HTML code at will and click the button to see its results.
Instance
A simple HTML document
This is a very simple example of an HTML document that uses only a small amount of HTML tags. What it is trying to demonstrate is how the text in the BODY element in the browser appears.
A simple paragraph
This example shows how the text in a paragraph element in a browser appears.
Title
The title tag is defined in the range
is is is is is is a heading
HTML automatically adds an extra blank line up and down the title.
Paragraphs define paragraphs with <p> tags.
is is another paragraph</p>
HTML adds an extra blank line to the paragraph.
Line break
When you just want to change lines instead of starting a new paragraph, you can use the <br> tag. placing it on any line will cause it to wrap.
is <br/>a<br/>paragraph<br/>with <br/>a< br/>line <br/>break <br/>
<br> tags are empty tags. It does not have a closed label.
HTML annotations
Note tags are usually inserted into the HTML source.
Comments are ignored by the browser. You can use annotations to explain your code, which will help you to re-edit the code in the future.
is a comment-
Note that the exclamation mark is written after the front angle brackets, not before the post-angle brackets.
Practical Tips
When you write an HTML document, it is generally not certain what the document will look like in each of the different browsers. Because some people use a large screen display, some are smaller. The document changes as the window changes. Do not attempt to format your document with blank lines or spaces in the editor.
HTML will truncate the open space in the document. More spaces will only be displayed with the effect of a single space. Additional information: Each line in the HTML can be imagined as a separate space.
HTML will automatically add extra blank lines, like paragraphs and headings, to some elements before and after.
We use a horizontal line
More examples
Defining HTML documents
<body> define body of document define heading 1th to 6th heading <p> defining paragraphs <br> Insert line break Define horizontal divider <!--> define Annotations