Spread the love

Summary –,

Article –

Understanding HTML Syntax Rules

Basic Structure of an HTML Document

An HTML document typically begins with a <!DOCTYPE html> declaration, followed by the <html> tag which encloses the entire content. Inside it, there are two main sections:

  • <head>: Contains meta-information, title, and links to stylesheets or scripts.
  • <body>: Contains all the content visible to the user like text, images, and other media.

Paragraphs and Headings

Paragraphs in HTML are marked using the <p> tag. Headings are defined with <h1> through <h6> tags, where <h1> represents the most important heading and <h6> the least.

Emphasizing Text

To emphasize certain important words or phrases, use the <strong> tag. This not only makes the text bold but also indicates importance.

Lists in HTML

There are two types of lists:

  1. Ordered Lists (<ol>): Used when the order of items matters.
  2. Unordered Lists (<ul>): Used for items where order does not matter.

List items within these lists are enclosed in the <li> tag.

About The Author

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

You cannot copy content of this page

0
Would love your thoughts, please comment.x
()
x