HTML Basic - Code4xU


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>
Example:


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.
Div Tag:-
      • 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.
Text Formatting Tags:-
      • We can use Bold,Italic and Underline tag anywhere,but we shouls close all tags properly.
      • Example:
                                        <b>Content</b>        -    Content
                                        <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 &nbsp;
      • And for New Line we uses <br> tag.





Sajal Gupta

Hi, i am sajal.I am a hardworking engineering graduate specialised in Computer Science Engineering ... Along with my degree, I completed C/C++,.Net,Java and SQL courses From Youtube and Other sources and various technologies.I learnt helped me develop my final year project called Code4xU..

Post a Comment