Introduction
What does HTML mean, and how is it related to the web? In other words, what role does HTML play in web development?
HTML stands for HyperText Markup Language. First comes hypertext. It contains links to other texts, and that's the entire web. One document points to another document. It’s not just about the text; hypermedia is playing a massive role in the web. You can watch videos, listen to music. The next comes Markup, which means to mark something up. For example, if you have some content like a writing document, Why I Love This Article. That is the content, and if you annotate the content to the browser or some other program present, you will need HTML to do it.
Quotations and Comments in HTML
At a depth of HTML is the HTML tag. So it's quite important to understand what an HTML tag consists of and how to code up an HTML tag properly. Today we will study Quotations and Comments in HTML.
<Quotation> tag in HTML
Let’s first begin with Quotations in HTML:
The <q> tag or the quotation tag indicates that the enclosed text is a short inline quotation.
It has a start tag as <q> and an end tag as </q>
We often use Quotations in our writings. We can understand this with the help of an example.
Input:
<!DOCTYPE html>
<p>Browser usually insert quotation mark around q element </p> <p>WWF's goal is to: <q>Build a future </q></p> <p </body>
|
Output:
Browsers usually insert quotation marks around the q element WWF's goal is to: “Build a future” |
Now you might be wondering what to use for long quotations. We got you covered. We use the <blockquote> tag for the same.
The <blockquote> tag
This tag is used to quote something from other sources. One advantage of this tag is that the browser identifies this tag and intends it accordingly.
We can see the following example to see the above tag.
Input:
<!DOCTYPE html> <blockquote> here is the text for blockquote </blockquote> |
Output:
Browser indent blockquote element here is the text for blockquote |