Professional Documents
Culture Documents
Assignment 1 WTA
Assignment 1 WTA
The DOCTYPE is used to tell the browser to render an HTML document using the so-called
standards mode algorithm or render it with the particular browser’s older non standards
algorithm, called quirks mode.
HTML pages are divided into two sections: the head and the body, which correspond to the and
elements
The head contains descriptive elements about the document, such as its title, any style sheets
or JavaScript files it uses, and other types of meta information used by search engines and
other programs.
The body contains content (both HTML elements and regular text) that will be displayed by the
browser.
PRIYANSHU SINGH(1DT19IS101)
OUTPUT:
PRIYANSHU SINGH(1DT19IS101)
OUTPUT:
PRIYANSHU SINGH(1DT19IS101)
elements can make the resulting markup confusing and hard to modify. The
idea behind using these elements is that your markup will be easier to
understand because you will be able to replace some of your
with more self explanatory HTML5 elements
PRIYANSHU SINGH(1DT19IS101)
5)Explain three types of list with an example.
OUTPUT
PRIYANSHU SINGH(1DT19IS101)
OUTPUT
OUTPUT
PRIYANSHU SINGH(1DT19IS101)
6)Illustrate the CSS Box model usage to label each of the components
of the box.
PRIYANSHU SINGH(1DT19IS101)
PRIYANSHU SINGH(1DT19IS101)
7)Define CSS along with syntax
PRIYANSHU SINGH(1DT19IS101)
8)Explain the location of styles. Provide necessary examples.
PRIYANSHU SINGH(1DT19IS101)
PRIYANSHU SINGH(1DT19IS101)
9)Explain the benefits of CSS .
PRIYANSHU SINGH(1DT19IS101)
PRIYANSHU SINGH(1DT19IS101)
OUTPUT
PRIYANSHU SINGH(1DT19IS101)
11)With the sample HTML form, explain how form work.
PRIYANSHU SINGH(1DT19IS101)
PRIYANSHU SINGH(1DT19IS101)
PRIYANSHU SINGH(1DT19IS101)
12)List various form related HTML elements. Discuss about query
string and micro formats.
PRIYANSHU SINGH(1DT19IS101)
PRIYANSHU SINGH(1DT19IS101)
PRIYANSHU SINGH(1DT19IS101)
PRIYANSHU SINGH(1DT19IS101)
PRIYANSHU SINGH(1DT19IS101)
13)List any 6 HTML attributes. Show the usage and purpose of each
of these HTML attributes.
The <img> tag should also contain the width and height attributes, which
specifies the width and height of the image (in pixels)
The required alt attribute for the <img> tag specifies an alternate text for an
image, if the image for some reason cannot be displayed. This can be due to
slow connection, or an error in the src attribute, or if the user uses a screen
reader.
The style attribute is used to add styles to an element, such as color, font,
size, and more.
PRIYANSHU SINGH(1DT19IS101)
The lang Attribute
You should always include the lang attribute inside the <html> tag, to declare
the language of the Web page. This is meant to assist search engines and
browsers.
OUTPUT
PRIYANSHU SINGH(1DT19IS101)
14)Compare the two types of URL referencing. Infer which one of them
is better with appropriate justification.
An absolute URL contains more information than a relative URL does. Relative URLs
are more convenient because they are shorter and often more portable. However, you
can use them only to reference links on the same server as the page that contains
them.
PRIYANSHU SINGH(1DT19IS101)
15)List overflow properties.
PRIYANSHU SINGH(1DT19IS101)
PRIYANSHU SINGH(1DT19IS101)
17)What is the smallest header in HTML by default?
● H6
● H1
● H5
● H4
HTML headings are titles or subtitles that you want to display on a webpage.
PRIYANSHU SINGH(1DT19IS101)
An HTML element is defined by a start tag, some content, and an end tag.
PRIYANSHU SINGH(1DT19IS101)
19)
PRIYANSHU SINGH(1DT19IS101)
PRIYANSHU SINGH(1DT19IS101)
OUTPUT
PRIYANSHU SINGH(1DT19IS101)