Loading...

Sample Questions-1

Very Short Questions

Q. Who invented the World Wide Web?
Ans. In 1990 computer scientist Tim Berners-Lee invented the World Wide Web.

Q. What is www (World Wide Web)?
Ans. The World Wide Web (WWW or simply the web) is a collection of electronic documents (called web pages) that are linked together like a spider web. These documents are stored on computers called servers located around the world.

Q. What is URL?
Ans. Uniform Resource Locator (URL) is the address of internet sites and files in web browsers. In a web browser, you may use a URL to find certain sites and files. The simplest format for a URL is as follows. protocol://host/path/filename

Q. What is HTML?
Ans. HTML stands for Hyper Text Markup Language , which is the most widely used language on Web to develop web pages.

Q. What are HTML tags?
Ans. HTML tags are the keywords on a web page that define how your web browser must format and display your web page. Syntax content

Q. What are HTML Attributes?
Ans. Attributes are the properties that can be added to an HTML tag. For example, a tag has an src attribute, which you use to add the source from which the image should be displayed.

Q. What is a marquee in HTML?
Ans. Marquee is used for scrolling text on a web page. It scrolls the image or text up, down, left, or right automatically. To apply for a marquee, you have to use < marquee > tags.

Q. How do you separate a section of texts in HTML?
Ans. We separate a section of texts in HTML using the below tags: •
tag – It is used to separate the line of text. It breaks the current line and shifts the flow of the text to a new line. •

tag–This tag is used to write a paragraph of text.

Q. What is an element in HTML?
Ans. An element in HTML is a set of tags that define a specific part of a web page. It consists of a start tag, content, and an end tag.

Q. What is the difference between HTML and CSS?
Ans. HTML is used to create the structure and content of a web page, while CSS is used to define the appearance and layout of the page.

Q. How do we insert a comment in HTML?
Ans. We can insert a comment in HTML by beginning with a lesser than sign and ending with a greater than sign. For example, “.”

Q. How do you create a hyperlink in HTML?
Ans. We use the anchor tag < a > to create a hyperlink in HTML that links one page to another page. The hyperlink can be added to images too.

Q. What are the different types of headings in HTML?
Ans. There are six types of heading tags in HTML which are defined with the < h1 > to < h6 > tags. Each type of heading tag displays a different text size from another. < h1 > is the largest heading tag and < h6 > is the smallest. For example:

< html >
< body >
< h1 >This is Heading 1< /h1 >
< h2 >This is Heading 2< /h2 >
< h3 >This is Heading 3< /h3 >
< h4 >This is Heading 4< /h4 >
< h5 >This is Heading 5< /h5 >
< h6 >This is Heading 6< /h6 >
< /body >
< /html >

Q. How do you insert an image in the HTML webpage?
Ans. You can insert an image in the HTML webpage by using the following code:

< html >
< body >
< h2 >HTML Image Example< /h2 >
< img src="tulip.jpeg" />
< /body >
< /html >

Q. Do all HTML tags have an end tag?
Ans. No. There are some HTML tags that don't need a closing tag. For example: tag,
tag. More details.