Posts

headings in html

  HTML headings are titles.that you want to display on a webpage. In HTML h1,h2,h3,h4,h5,h6 are headings. h1=very big size h2=very big size but smaller than h1 tag h3= smaller than h2 tag h4= smaller than h3 tag h5= smaller than h4 tag h6= smaller than h5 tag < !DOCTYPE  html > < html > < head > < title > headings < /title > < /head > < body > < h1 > Heading 1 < /h1 > < h2 > Heading 2 < /h2 > < h3 > Heading 3 < /h3 > < h4 > Heading 4 < /h4 > < h5 > Heading 5 < /h5 > < h6 > Heading 6 < /h6 > < /body > < /html > OUTPUT: Heading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading 6

html basics

All HTML documents must start with a document type declaration:  <!DOCTYPE html> . The HTML document itself begins with  <html>  and ends with  </html> . The visible part of the HTML document is between  <body>  and  </body> . code:   < !DOCTYPE  html > < html > < head > < title > < /title > < /head > < body > < /body > < /html > The <!DOCTYPE> Declaration: The  <!DOCTYPE>  declaration represents the document type, and helps browsers to display web pages correctly. It must only appear once, at the top of the page . The  <!DOCTYPE>  declaration is not case sensitive. The  <!DOCTYPE>  declaration for HTML5 is:                     < !DOCTYPE  html > HTML Paragraphs: HTML paragraphs are defined with the  <p>  tag: Example: ...