So Today we learn how html works and its basic structure by using Simple Examples. we will learn all these topics again in our upcoming sessions, so lets get started.
HTML Documents
Before writting HTML code always remember these points mentioned below.
- HTML is case-insensitive language .
- HTML documents starts with <!DOCTYPE HTML>
- HTML document itself begins with <html> and ends with </html>
- All visible content that shows on webpage is written between body tag i.e.<body>.....</body>
Important Tags(< >) used in HTML
Paragraph Tag:-
- The <p> tag is used to define the HTML paragraph elements.
- The paragraph element begins with the <p> tag and ends with the </p> tag.
- The HTML paragraph elements should not contain tables and other block elements
Heading Tag:-
- The <h1><h2><h3><h4><h5><h6> tags are used to define HTML headings.
- <h1> defines the most important heading and important for SEO(Search Engine Optimization).
- <h6> define the least important heading.
Mark Tag:-
- This tag element represent a text by marking or highlighting it for reference purposes.
- This tag is used for marking the specific text in yellow colour.
- This tag is nothing morethan a container unit that encapsulates other page elements and divide the HTML document into sections.
- WEb Developer uses <div> elements to group together HML elements and apply CSS styles to many elements at once.
- We can use Bold,Italic and Underline tag anywhere,but we shouls close all tags properly.
- Example:
<i>Content</i> - Content
<u>Content</u> - Content
Non breaking Space And New Line:-
- HTML Doesn't allow to use more than one space and black line space.
- For More than 1 Space we use
- And for New Line we uses <br> tag.
Tags:
Basic
bold
heading tag
HTML
HTML Basic
HTML for begginers
HTML from Basic
mark tag
new line
paragraph tag