Q #1) What does HTML stand for?
Q #2) Describe HTML?
Ans: HTML stands for Hypertext Markup Language.
Q #3) Write the basic structure of the HTML template?
Ans: Hypertext Markup Language or HTML is a markup language which is used to create website templates or WebPages to present the content on the World Wide Web.
HTML pages are saved by adding .html or .html in web page name.
Q #4) What is HTML5?
Ans: The basic structure of the HTML template is:
Q #5) Name some new features which were not present in HTML but are added to HTML5?
Ans: HTML5 is the latest or updated version of markup language that defines HTML.
Ans: Some new features in HTML5 include:
DOCTYPE declaration – <!DOCTYPE html>
section – Section tag defines a section in the document, such as a header, footer or in other sections of the document. It is used to define the structure of the document. <section></section>
header – Header tag defines the head section of the document. A header section always sticks at the top of the document. <header></header>
footer – Footer tag defines the footer section of the document. A footer section always sticks at the bottom of the document. <footer></footer>
article – Article tag defines an independent piece of the content of a document. <article> </article>
main – The main tag defines the main section in the document which contains the main content of the document. <main></main>
figcaption – Figcaption tag defines the caption for the media element such as an image or video. <figcaption></figcaption>
Q #6) What is HTML?
HTML stands for Hyper Text Markup Language. It is a language of World Wide Web. It is a standard text formatting language which is used to create and display pages on the Web. It makes the text more interactive and dynamic. It can turn text into images, tables, links.
Q #7) What are Tags?
Q #8) Do all HTML tags have an end tag?
HTML tags are composed of three things: an opening tag, content and ending tag. Some tags are unclosed tags.
HTML documents contain two things:
When a web browser reads an HTML document, the browser reads it from top to bottom and left to right. HTML tags are used to create HTML documents and render their properties. Each HTML tags have different properties.
<tag> content </tag>
Content is placed between tags to display data on the web page.
Q #9) What is formatting in HTML?
No. There are some HTML tags that don’t need a closing tag. For example: <image> tag, <br> tag. More details.
Q #10) How many types of heading does an HTML contain?
The HTML formatting is a process of format the text for a better look and feel. It uses different tags to make text bold, italicized, underlined. More details.
The HTML contains six types of headings which are defined with the <h1> to <h6> tags. Each type of heading tag displays different text size from another. So, <h1> is the largest heading tag and <h6> is the smallest one. For example:
<h1>Heading no. 1</h1>
<h2>Heading no. 2</h2>
<h3>Heading no. 3</h3>
<h4>Heading no. 4</h4>
<h5>Heading no. 5</h5>
<h6>Heading no. 6</h6>
Q #11) How to create a hyperlink in HTML?
The HTML provides an anchor tag to create a hyperlink that links one page to another page. These tags can appear in any of the following ways:
Unvisited link – It is displayed, underlined and blue.
Visited link – It is displayed, underlined and purple.
Active link – It is displayed, underlined and red.
Q #12) Which HTML tag is used to display the data in the tabular form?
The HTML table tag is used to display data in tabular form (row * column). It also manages the layout of the page, e.g., header section, navigation bar, body content, footer section. Here is the list of tags used while displaying the data in the tabular form:
<table> It defines a table.
<tr> It defines a row in a table.
<th> It defines a header cell in a table.
<td> It defines a cell in a table.
<caption> It defines the table caption.
<colgroup> It specifies a group of one or more columns in a table for formatting.
<col> It is used with <colgroup> element to specify column properties for each column.
<tbody> It is used to group the body content in a table.
<thead> It is used to group the header content in a table.
<tfooter> It is used to group the footer content in a table.
Q #13) What are some common lists that are used when designing a page?
There are many common lists which are used to design a page. You can choose any or a combination of the following list types:
Ordered list – The ordered list displays elements in numbered format. It is represented by <ol> tag.
Unordered list – The unordered list displays elements in bulleted format. It is represented by <ul> tag.
Definition list – The definition list displays elements in definition form like in dictionary. The <dl>, <dt> and <dd> tags are used to define description list.
Q #14) What is the difference between HTML elements and tags?
HTML elements communicate to the browser to render text. When the elements are enclosed by brackets <>, they form HTML tags. Most of the time, tags come in a pair and surround content.
Q #15) What is semantic HTML?
Semantic HTML is a coding style. It is the use of HTML markup to reinforce the semantics or meaning of the content. For example: In semantic HTML <b> </b> tag is not used for bold statement as well as <i> </i> tag is used for italic. Instead of these we use <strong></strong> and <em></em> tags.
Q #16) What is an image map?
Q #17) How to insert a copyright symbol on a browser page?
Image map facilitates you to link many different web pages using a single image. It is represented by <map> tag. You can define shapes in images that you want to make part of an image mapping.
Q #18) How to create a nested webpage in HTML?
You can insert a copyright symbol by using © or © in an HTML file.
Q #19) How do you keep list elements straight in an HTML file?
The HTML iframe tag is used to display a nested webpage. In other words, it represents a webpage within a webpage. The HTML <iframe> tag defines an inline frame. For example:
<h2>HTML Iframes example</h2>
<p>Use the height and width attributes to specify the size of the iframe:</p>
<iframe src=”https://www.rajeshshuklacatalyst.com/” height=”300″ width=”400″></iframe>
Q #20) Does a hyperlink only apply to text?
You can keep the list elements straight by using indents.
No, you can use hyperlinks on text and images both. The HTML anchor tag defines a hyperlink that links one page to another page. The “href” attribute is the most important attribute of the HTML anchor tag.
<a href = “………..”> Link Text </a>