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 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 Vedanta can help you deal with fear and anxiety

Suppose you are going through a lot of troubles, trapped in a tragic situation and you are feeling so helpless amidst all the difficulties. What will happen if you suddenly wake up to realize that it was just a dream, a nightmare? Won’t you feel so relaxed after knowing that whatever tragedy was happening with you was not real but it was just happening in a dream? According to Vedanta, there are mainly three states of reality: waking, dreaming and deep sleep. Waking life(Jagrat) is where we experience physical realities, dreaming life(Swapna) means the world of only mental thoughts and dreams without physical experience and deep sleep(Sushupta) is the state where physical and mental existence disappear. While we dream, we think that it is real. Only when we wake up, we realize that it was just a dream. Similarly, waking life is also like a dream. This can be experienced by simple logic that whenever we remember past, the past moments appear like a dream. The only differenc...

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.