Computer Science, asked by sushmita62, 1 year ago

Difine the term HTML? What are different between tags and attributes?

Answers

Answered by dhruvbadaya1
1

HTML is the standard markup language for creating Web pages.

•HTML stands for Hyper Text Markup Language
•HTML describes the structure of Web pages using markup
•HTML elements are the building blocks of HTML pages
•HTML elements are represented by tags
•HTML tags label pieces of content such as "heading", "paragraph", "table", and so on
•Browsers do not display the HTML tags, but use them to render the content of the page

•••••••••••
HTML tags
Tags are used to mark up the start and end of an HTML element.

A start tag consists of an opening angle bracket (<) followed by the element name, zero or more space separated attribute/value pairs, and a closing angle bracket (>).

A start tag with no attributes:

<p>
A start tag with an attribute:

<p class="info">
End tags consist of an opening angle bracket followed by a forward slash, the element name, and a closing angle bracket:

</p>
There are also some elements that are empty, meaning that they only consist of a single tag and do not have any content. In HTML, such tags look just like opening tags:

<br>
The syntax is slightly different in XHTML. Empty elements must either have an end tag or the start tag must end with />.




HTML attributes
An attribute defines a property for an element, consists of an attribute/value pair, and appears within the element's start tag. An element's start tag may contain any number of space separated attribute/value pairs.

The most popular misuse of the term "tag" is referring to alt attributes as "alt tags". There is no such thing in HTML. Alt is an attribute, not a tag.

<img src="foobar.gif" alt="A foo can be balanced on a bar by placing its fubar on the bar's foobar.">

Similar questions