HTML-5 || TAGS || BASIC TO ADVANCE || PART-2
Programming
Codester
HTML[TUTORIAL-2]
Hello Wonderful
People!
Let’s start with HTML basic!
In previous
tutorial we were studied about basic introduction of HTML
Previous tutorial’s
link is here:
Html tags start with
<> and end with </>.
Tutorial : 2
Topic : paragraph image and heading And Title tags
HTML Paragraphs:
· The
HTML <p>
element defines a paragraph.
· A
paragraph always starts on a new line, and browsers automatically add some
white space (a margin) before and after a paragraph.
Ex.
<p>my name is programming codester</p>
<p>coding is my passion</p>
So output will be,
my name is programming codester
coding is my passion.
HTML Page Title
Every web page should have a
page title to describe the meaning of the page.
The <title> element adds a title to
your page:
·
The
title should describe the content and the meaning of the page.
·
The
page title is very important for search engine optimization (SEO). The text is
used by search engine algorithms to decide the order when listing pages in
search results.
The <title> element:
- defines
a title in the browser toolbar
- provides
a title for the page when it is added to favorites
- displays
a title for the page in search engine-results
So, try to make the title as
accurate and meaningful as possible!
HTML Headings
An HTML
heading tag is used to define the headings of a page. There are six levels of
headings defined by HTML. These 6 heading elements are h1, h2, h3, h4, h5, and
h6; with h1 being the highest level and h6 being the least.
·
<h1> is
used for the main heading. (Biggest in size)
·
<h2> is
used for subheadings, if there are further sections under the subheadings then
the <h3> elements are used.
·
<h6> for
the small heading (smallest one).
Browsers
display the contents of headings in different sizes. The exact size at which
each browser shows the heading can vary slightly. Users can also adjust the
size of the text in their browser.
Syntax:
<h1>------</h1>
Headings
are used for highlighting important topics.
Example:
Output:
my other tutorials are here:
Comments
Post a Comment