Computer Science, asked by Ratendrasingh, 1 year ago

what is html and what type of tag used in it

Answers

Answered by tejasgupta
11

Heya !!

What is HTML ??

The  acronym for HTML is Hyper Text Markup Language. Initially, it was known by the name of GML (General Markup Language). In 1986, it was renamed to SGML (Standard Generalized Markup Language). In 1989, Sir Tim Berners-Lee and his team redesigned this language and named it Hyper Text Markup Language (HTML), as we know it today.

HTML is a markup language usually used to create the basic structure of a web-page. Using HTML with JavaScript (JS is a client-side programming language used to make HTML pages alive), we can even create Windows 10 Store Applications through Visual Studio.

What are Tags ??

Tags are a piece of code that tells the web-browser what to show and how to show. HTML is a tag-based language.

Two types of Tags.

Tags can broadly be classified into\

  • Container Tags, and
  • Empty Tags.

Container Tags are those tags which have both an opening and a closing tag.

Empty tags are those tags which have only an opening tag.

Some commonly used Tags.

Some common tags used in creating even the simplest of web-pages are listed below:

  1. < html > .... < /html > - This tag is used in the beginning of each and every html document. This is a container tag and contains all the elements/tags of a html page.
  2. < body > .... > - This tag contains the elements of a web-page that show up in the browser like text, images, forms etc...
  3. < head > .... < /head > - This tag contains the elements of a web-page that don't show in the browser window such as style sheets, JS code, metadata, link to JS/CSS files, favicon.ico etc...
  4. < h1 > < h6 > - Heading 1 to heading six are heading tags used in html. H1 is used for the largest heading. The font-size of the text in h1 to h6 tags reduces as we move from h1 to h6.
  5. < p > .... < /p > - This tag is used for typing text in a website. It is generally used when we have to type a paragraph or more on a web-page.

These were some commonly used tags in HTML.

Hope it helps !!

Answered by Anonymous
2

HTML - Hypertext Markup Language

HTML(Hyper text Markup Language) is a standard Markup language generally used for creating web pages and websites front layer. HTML is assisted with the programming languages CSS and JavaScript to display the documents on web browser. HTML is one of the easiest programming language that can be useful in creating web pages and designing websites with the front and back end layer.

HTML latest version is "HTML 5". HTML is a programming language by "WHATWG" and HTML is a type of document file language which helps us to display our documents and files on web-browser in the form of Website. Along with HTML, CSS and Javascript are also used to make the look and functions of site better.

HTML Tags:

There are three main types of Tags in HTML; Opening Tag, Closing tag and Content tag. Each tag have it's different functions and methods. This all tags helps us to run our program and documents without any error and correctly.

  • HTML program is started using <HTML> tag. This tag indicates that, this is HTML code or text to be displayed in browser.

  • Second tag in any HTML document is <Head> tag. This tag represents the title of the webpage.

  • The most important tag; Body tag; Indicates the all visible content on the web. This tag represents the all sub-tags on the webpages.

  • <p> - This tag represents the Paragraph on the webpage.

  • <article> - This tag represents that, this is Article on the webpage.

  • <h1> - This tag represents the heading; <h2> represents the subheading and so go on.

  • <b> - Defines the Bold text.

  • <i> - Defines the italic text.

  • <u> - Underline the text on the webpage.

  • <table> - To create a table like excel on website.

Advantages of using HTML:

1. HTML helps us to show our documents and files on the website.

2. HTML is a very easy language, so anyone can learn it and can do job.

3. HTML is easy language to program. This helps programmers to write the code for their websites without any error and without any mistakes.

4. HTML is free to use and easy to learn.

5. All browsers support HTML language.

6. It is simple to edit HTML documents.

7. HTML is a lightweight and it is basic of all programming languages.

Disadvantages of HTML:

1. Errors made while programming HTML can be very costly.

2. If we have to create dynamic pages, then HTML is not useful their.

3. There are some security issues using HTML language.

4. We have to write lot of codes to make simple web pages.

5. All browsers don't render the HTML codes same.

What is Dynamic HTML ?

Dynamic HTML, also referred as "DHTML" is basically a collection of various technologies. We can create only static web-pages using HTML, But DHTML can be used for creating dynamic web pages. DHTML is a collection of various technologies which helps us to create a responsive and interactive websites with animations and effects.  

Similar questions