Docsity

HTML Basics- BASICS OF HTML(CODING), Lecture notes of Web Design and Development

Toggle sidebar
bg1
Headings Are Important
Search engines use the headings to index the structure and content of your web pages.
Users often skim a page by its headings. It is important to use headings to show the document structure.
<h1> headings should be used for main headings, followed by <h2> headings, then the less important <h3>, and so on.
HTML headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important heading:
<html>
<body>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
</body>
</html>
HTML Paragraphs
HTML paragraphs are defined with the <p> tag:
<html>
<body>
pf2

Partial preview of the text

Download HTML Basics- BASICS OF HTML(CODING) and more Lecture notes Web Design and Development in PDF only on Docsity!

Headings Are Important

Search engines use the headings to index the structure and content of your web pages. Users often skim a page by its headings. It is important to use headings to show the document structure. headings should be used for main headings, followed by headings, then the less important , and so on. HTML headings are defined with the to tags. defines the most important heading. defines the least important heading:

This is heading 1 This is heading 2 This is heading 3 This is heading 4 This is heading 5 This is heading 6

HTML Paragraphs

HTML paragraphs are defined with the

tag:

This is a paragraph.

This is another paragraph.


tag

This is a
paragraph with a line break.