Skip to main content

Basics of HTML -1

HTML or Hypertext Markup Language in full form is the markup language to create webpages.
Any HTML document has mainly two parts:

  • Head
  • Body
An HTML code is written using tags. Like <html> tag means the beginning of  an HTML document and </html>tag  means the end of the HTML section. Similarly for head,  <head >tag is used and for body, <body>tag is used. 

Usually and HTML consists of a start tag and an end tag, the content is written between these two tags. Like:
<p>           content abc.... ...of paragraph       </p>
(start tag)                                                       (end tag)

Note:
  • <title> tag is always written within <head> tag.
List of popular tags

Tag                            Description
<!DOCTYPE>           Defines the document type
<html>                       Defines an HTML document
<head>                       Defines information about the document
<title>                        Defines a title for the document
<body>                      Defines the document's body
<h1> to <h6>            Defines HTML headings
<p>                            Defines a paragraph
<br>                          Inserts a single line break


Example of HTML program:

<!DOCTYPE html>
<html>
<head>
<title>
My first program
</title>
</head>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.<br>
   Here I start learning. </p>

</body>
</html>



Result:

My First Heading

My first paragraph.
Here I start learning.


Comments

Post a Comment

Popular posts from this blog

How to treat Jaundice at home

Jaundice is a disease which leads to yellowing of the skin, whites of the eyes and urine because of a high level of bilirubin. The treatment of jaundice is simple if the patient is willing to bring a  change in food habit. Do's: Drink plenty of water. Eat green vegetables, mashed potato, rice with no spice and turmeric added. Curd is very beneficial. Eat fruits. Cucumber and watermelon will provide much relief. Dont's: Don't consume hot food. Strictly avoid the use of oil, ghee, spices and turmeric in food. Avoid doing physically hard work. Avoid milk products, pulses and non-vegetarian food. Precaution and proper diet are the best solutions for jaundice.

How to Sleep Well- A simple treatment for Insomnia without pills

  Many people suffer from sleeping disorders like insomnia, oversleeping or nightmares while dreaming. A restless sleep makes the whole day boring and non-productive. A person suffering from these problems feels irritated throughout the day and has to depend on pills. The most unfortunate thing is that it becomes very difficult to get treatment for these problems as the doctors charge very high fees and yet can't provide any permanent solution.                 Thankfully, some ancient meditative traditions provide very simple solutions to these problems. Let the few things be very clear. There are three states of life which are known as waking life, dreaming life and deep sleep. Let us know these terms in detail : Waking Life : The state which we know as a conscious state and experience it mostly in the daytime. It contains the active part of life when we experience our body as true identity with our eyes open and sense organs workin...

How to get permanent motivation in life

It has been the biggest query of the ambitious masses since time immemorial, how to get permanent motivation in life.      For most people, the main problem lies in the fact that when we read or listen to any motivational thing, the motivation remains for some time, and then slowly fades away. Without motivation, it becomes difficult for the mind to come out of the comfort zone and do the tasks required for achieving higher goals.    After going through many works of spiritual literature, I found a unified theory of being happy, peaceful, and motivated for whole life which would keep our mental energy at best to accomplish any target we have set.    Let's begin this theory with a basic understanding of our own existence. The world exists outside only because our body has consciousness. No matter whatever we achieve in this physical world, the material comforts or pleasures don't give us permanent happiness ...