HTML Questions

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

How to insert a copyright symbol on a browser page?

&copy

What is a style sheet?

A file that describes how an HTML file should look. It can also be embedded in the html file

What is the use of figure tag in HTML 5?

As we know image tag is already available in HTML to display the pictures on web pages. But HTML 5 <figure> tag is used to handle the group of diagrams, photos, code listing etc. with some embedded content. You can also add a caption for the photo with the help of <figcaption> tag. Example: <p>The Taj Mahal is widely recognized as "the jewel of Muslim art in India and one of the universally admired masterpieces of the world's heritage". It is regarded by many as the finest example of Mughal architecture, a style that combines elements from Islamic, Persian, Ottoman, Turkish and Indian architectural styles.</p> <figure> <img src="htmlpages/images/tajmahal.jpg" alt="Taj Mahal"/> </figure>

Explain the layout of HTML?

Every website has a specific layout to display content in a specific manner. <header>: It is used to define a header for a document or a section. <nav>: It is used to define a container for navigation links <section>: It is used to define a section in a document <article>: It is used to define an independent, self-contained article <aside>: It is used to define content aside from the content (like a sidebar) <footer>: It is used to define a footer for a document or a section

What is the use of details and summary tag?

HTML <details> tag is used to specify the additional details on the web page that the user can view or hide on demand. According to W3C HTML specification, it is used as a disclosure widget from which user can retrieve additional information or control. It is used together with a relevant tag known as <summary>. Technically, there is no need of summary tag, but if you ignore this then the browser will use some default text. Example: <details> <summary>Copyright 2011-2014.</summary> <p> - by JavaTpoint. All Rights Reserved.</p> <p>All content and graphics on this web site are the property of the javatpoint.com</p> </details>

What is SVG?

HTML SVG is used to describe the two-dimensional vector and vector/raster graphics. <svg width="100" height="100"> <circle cx="50" cy="50" r="40" stroke="yellow" stroke-width="4" fill="red" /> </svg>

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.

What are empty elements?

HTML elements with no content are called empty elements. For example: <br>, <hr> etc.

What is HTML?

HTML stands for Hypertext Markup Language, it is used to create and display pages on the Web

What are Tags?

HTML tags are used to create HTML documents and render their properties. Each HTML tags have different properties.

What is formatting in HTML?

It enables us to format text without using CSS. <b> <strong> <i> <mark>

What is a marquee?

Marquee is used to put the scrolling text on a web page. It scrolls the image or text up, down, left or right automatically. You should put the text which you want to scroll within the <marquee>......</marquee> tag.

What are some common lists in HTML

Ordered List <ol> Unordered List <ul> Definition List <dl>, <dt>, <dd>

What is semantic HTML?

Semantic HTML, or "semantically-correct HTML", is HTML where the tags used to structure content are selected and applied appropriately to the meaning of the content. For example, <b></b> (for bold), and <i></i> (for italic) should never be used, because they're to do with formatting, not with the meaning or structure of the content. Instead, use the replacements <strong></strong> and <em></em> (meaning emphasis), which by default will turn text bold and italic (but don't have to do so in all browsers), while adding meaning to the structure of the content.

What is the use of figcaption tag in HTML 5?

The <figcaption> element is used to provide a caption to an image. It is an optional tag and can appear before or after the content within the <figure> tag. Only one <figcaption> element can be nested within a <figure> tag although the <figure> element itself may contain multiple other elements like <img> or <code>.

What is datalist tag?

The HTML 5 datalist tag provides an autocomplete feature on the form element. It facilitates users to choose the predefined options to the users to select data.

How to create a nested webpage in HTML?

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. <!DOCTYPE html> <html> <body> <h2>HTML Iframes example</h2> <p>Use the height and width attributes to specify the size of the iframe:</p> <iframe src="https://www.javatpoint.com/" height="300" width="400"></iframe> </body> </html>

What is the difference between progress and meter tag?

The progress tag is used to represent the progress of the task only while the meter tag is used to measure data within a given range.

What is the use of a span tag?

The span tag is used for following things: For adding color on text For adding background on text Highlight any color text Example: <p> <span style="color:#ffffff;"> In this page we use span. </span> </p>

How many tags can be used to separate a section of texts?

Three tags are used to separate the texts. <br> tag - Usually <br> tag is used to separate the line of text. It breaks the current line and conveys the flow to the next line <p> tag - The <p> tag contains the text in the form of a new paragraph. <blockquote> tag - It is used to define a large quoted section. If you have a large quotation, then put the entire text within <blockquote>.............</blockquote> tag.

What is the canvas element in HTML5?

he <canvas> element is a container that is used to draw graphics on the web page using scripting language like JavaScript. It allows for dynamic and scriptable rendering of 2D shapes and bitmap images.


Kaugnay na mga set ng pag-aaral

Supreme COurt cases - contemplary america

View Set

the art of public speaking chapter 8 Part 2, public speaking chapter 8

View Set

Strategic Management ch. 10 Global Strategy: Competing Around the World

View Set

Exercise 7 - The Integumentary System

View Set

I NEED 120 QUESTION CORRECT TO PASS TEST WITH A 70

View Set