HTML Title
The title (Heading) is defined by tags such as
< H1 > This was a heading</H1><H2>This is a heading </h2><h3>This is a heading</ h3>
Note: The browser automatically adds blank lines to and from the title.
Note: By default, HTML automatically adds an extra blank line before and after a block-level element, such as a paragraph or a heading element.
Title is important.
Make sure that the HTML heading tag is used only for headings. Don't use headings just to produce bold or large text.
Search engines use headings to index the structure and content of your Web pages.
Because users can quickly navigate through your pages with headings, it is important to use headings to present the structure of the document.
H1 should be used as the main title (most important), followed by H2 (minor), followed by H3, and so on.
HTML Horizontal Line
<HR/> Tags Create horizontal lines in the HTML page.
The HR element can be used to delimit content.
<P>This is a paragraph</P><HR/><P>This is a paragraph</P><HR/><P>This is a paragraph</P>
Tip: Using horizontal lines (
HTML annotations
You can insert comments into HTML code, which improves readability and makes your code easier to understand. The browser ignores comments and does not display them.
The comments are written like this:
<!-- -
HTML Paragraph
The paragraph is defined by the <p> tag.
< P > This was a paragraph</p><p>This is another Paragraph</p>
Note: The browser automatically adds blank lines to and from the paragraph. (<p> is a block-level element)
Tip: Using an empty paragraph mark <p></p> to insert a blank line is a bad habit. Replace it with a <br/> tag! (But don't use the <br/> tag to create a list.) Do not worry, you will learn the HTML list later in the space. )
HTML Wrapping
If you want to wrap (a new line) without creating a new paragraph, use the <BR/> Label:
< P > This are</>a para</>graph with line breaks< /P>
<br> or the <br/>
You may find that <br> is very similar to <br/>.
HTML elements with no end tags (closed tags) are not allowed in XHTML, XML, and future HTML versions.
Even if <br> has no problem displaying in all browsers, using <br/> is also a long-term guarantee .
HTML output-Useful hints
We cannot determine the exact effect of HTML being displayed. The size of the screen, as well as the adjustment of the window, can result in different results.
For HTML, you cannot change the effect of the output by adding extra spaces or line breaks in the HTML code.
When a page is displayed, the browser removes extra spaces and blank lines from the source code . All contiguous spaces or blank lines are counted as a single space. Note that all consecutive empty lines (line breaks) in the HTML code are also displayed as a single space.
HTML Basics-1