Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

1. Discuss Html Document structure?

Ans HTML stands for HyperText Markup Language HTML used predefined tags and attributes to tell
the browser how to display content, means in which format, style, font size, and images to display.

HTML is a case insensitive language.

Case insensitive means there is no difference in upper case and lower case ( capital and small letters)
both treated as the same.

There are generally two types of tags in HTML:

1.Paired Tags: These tags come in pairs. That is they have both opening(< >) and closing(</ >) tags.

2.Empty Tags: These tags do not require to be closed.

The <!DOCTYPE html> declaration defines that this document is an HTML document.

The <html> element is the root element of an HTML page.

The <head> element contains meta information about the HTML page.

The <title> element specifies a title for the HTML page (which is shown in the browser's title bar or in
the page's tab)

The <body> element defines the document's body, and is a container for all the visible contents, such
as headings, paragraphs, images, hyperlinks, tables, lists, etc.

The <h1> element defines a large heading.

The <p> element defines a paragraph.

2. Illustrate HTML Attributes?

Ans HTML Attributes provide additional information about HTML elements.

1.All HTML elements can have attributes.

2.Attributes provide additional information about elements.

3.Attributes are always specified in the start tag.

4.Attributes usually come in name/value pairs like: name="value“.

*The href Attribute: The <a> tag defines a hyperlink. The href attribute

Specifies the URL of the page the link goes to:

<a href="https://adypu.com">ADYPU</a>.

*The src Attribute: The <img> tag is used to embed an image in

an HTML page.
The src attribute specifies the path to the image

to be displayed:

<img src="img_girl.jpg">

*The width and height Attributes:The <img> tag should also contain the width and height
attributes, which specify the width and height of the image (in pixels)

<img src="img_girl.jpg" width="500"

height="600">

*The style Attribute:Styles in HTML are basically rules that describe how a document will be
presented in a browser

<html>
<head>
<style>
h1 {color:red;}
p {color:blue;}
</style>
</head>
<body>

<h1>A heading</h1>
<p>A paragraph.</p>

</body>
</html>

*The title Attribute:The title attribute is used to specify extra information about the element.

<!DOCTYPE html>
<html>
<head>
<title>HTML Elements Reference</title>
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>.

3. Annotate Html Editors?


Ans

You might also like