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

10 Inspirational Quotes of Steve Jobs

    1.      We’re here to put a dent in the universe. Otherwise why else even be here? 2.        Quality is much better than quantity. One home run is much better than two doubles. 3.        You’ve got to have a problem that you want to solve; a wrong that you want to right. 4.        It (what you choose to do) has got to be something you’re passionate about because otherwise you won’t have the perseverance to see it through. 5.        We’ve got to make the small things unforgettable. 6.        I would rather gamble on our vision than make a ‘me’, ‘too’ product. 7.        Everything around you that you call life was made up by people that were no smarter than you, and you can change it, you can influence it, you can build your own things that other people can use. ...

Vipassana Meditation 10 days Retreat Experience: Review

Vipassana is a Pali word which means to see the reality as it is. This technique was discovered by  Gautam Buddha.     Vipassana course structure All over the world, Vipassana centres run the same course structure. It is mandatory for a beginner to attend 10 days retreat.     Fees No fees, Vipassana centre run solely on a donation basis. On the tenth day, you can give the donation on your own voluntary choice.   Code of Discipline Noble Silence: Do not talk to anyone. Wear comfortable dresses covering the whole body. No past ritual including worship, chanting mantras or wearing any talisman. Only vegetarian food will be served. No physical exercises.   Daily Routine The day starts from 4 a.m. and ends at 9.30 p.m. Meditate for 10 hours daily. 5 mins breaks are given after every 1 hour or 2 hours meditation. Sufficient time is given for brea...

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.