Computer Science, asked by Steph0303, 1 year ago

WHAT IS HTML AND WHAT ARE THE DIFFERENT TAGS USED IN IT


Steph0303: WHAT DO YOU MEAN

Answers

Answered by simranjitk
6
HTML stands for hyper text mark up language.Its is used for designing the web pages for internet. Many tags are used are in it . Each tag has its own function and attribute .
<html>tag is used to start the language in notepad and </html>closing tag is used for ending up the language.
<body>tag is used for representing the text to be written in the web page.
<head>tag is used for writing the title for our web page.
 Font tag is used for emphasising the text and for its physical markup.
there are too many tags. you must do practices of using html language and making web pages.

Steph0303: WHAT ABOUT OTHER TAGS .IN MY READER THEY HAVE DESCRIBED MANY TAGS LIKE" P ALIGN " "BG COLOR"
simranjitk: p align refers to parragraph alignment. its used for aligning the paragraph to right,left,or p alighn justify is used for aligning it to center.equal distance for all sides.
simranjitk: bg color refers to background color bg color attribute is written within body tag to set the background color
simranjitk: any other query?
Steph0303: COULD YOU PLEASE SEND ME THE CODING THAT HOW TO MAKE AN HTML DOCUMENT
Steph0303: i mean a program to make html document
Steph0303: what is visual basic
Answered by Anonymous
53

Answer:

What  is HTML ?

  • HTML is a basic web language used to design websites.
  • HTML is not a programming language but it is a language which is used to create most basic (layout of a website). HTML is the basics of basics. without HTML we cannot create websites.

So now let us see where we write a program in html:

  • go to your start button and search for notepad and open it. notepad is the place to make a HTML code.
  • now as we have opened notepad , let us come to coding.
  • Every html programme contains a <html> tag
  • followed by <head> tag, under head tag,
  • we add title with a <title> tag.
  • remember that you should end every tag
  • then end title with </title> tag
  • then end the </head> tag
  • then open the <body> tag
  • type your content in it
  • then close the body tag with</body>
  • now end the html with </html> tag

Here is an example of a basic code in HTML:

<html>

<head>

<title>a basic structure</title>

</head>

 <body>

 a basic code in html consists of html tag,head tag,title tag,body tag.

</body>

</html>

  • this has to be saved as with a html extension.
  • for example i am saving it as Puneeth, then it is Puneeth.html
  • then you can save it in desktop,
  • then you can see the output of your html code

There are more features available in HTML, they are:

  • we can insert background colour of black if i want red using <bg color = "black">
  • HTML includes six levels of headings, which are ranked according to importance, they are: <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>.
  • To create a paragraph, simply type in the <p> element with its opening and closing tags:
  • HTML documents consist of nested HTML elements.  the body element includes the <p> tags, the <br /> tag and the content.
  • if my image is saved as image in the form of jpeg then i can use     <img src="image.jpg" />
  • For linking use <a href=" your file name.html"></a>
  • an ordered list starts with <ol> tag and an unordered list starts with <ul> tag
  • the html canvas is used to draw graphics. the below is an example of using canvas element.<canvas id="canvas1" width="200" height="100"> </canvas>
  • The Geolocation API’s main method is getCurrentPosition, which retrieves the current geographic location of the user's device.  navigator.geolocation.getCurrentPosition();

Audio on HTML:

<audio controls>

<source src="puneeth.mp3" type="audio/mpeg">

<source src="puneeth.ogg" type="audio/ogg">

Audio element not supported by your browser.  

</audio>

Video on HTML:

<video controls>

<source src="puneeth.mp4" type="video/mp4">

<source src="puneeth.ogg" type="video/ogg">

Video is not supported by your browser

</video>

Web storage on HTML:

There are two types of web storage objects:

- sessionStorage()

- localStorage()

Local vs. Session

  • Session Storage is destroyed once the user closes the browser

  • Local Storage stores data with no expiration date

Attachments:
Similar questions