In: Computer Science
1.Briefly describe the traditional connection process for getting and displaying an HTML page.
2.Which of these statements is most correct?(please give some reasons)
a) Browsers create a link with the server for displaying images
b) Browser provides an environment for displaying HTML and running JS
c) Browsers allow a page to have style and layout
d) Browsers provide an environment for running JS and displaying CSS
3. HTML uses ________ to create areas that obey display criteria and can further define that behaviour through ________(please give some reasons)
a) Elements / Attributes
b) CSS / JavaScript
c) Elements / JavaScript
d) Attributes / CSS
4.HTML contains two major sections in HEAD and BODY. Briefly describe the purpose of each section and give an example of a tag you would expect to find in each.
5.Within the provided body tags replicate the provided text with the necessary HTML to mimic the visual appearance. Your HTML should follow strict tag guidelines
Formatting in HTML
• Sometimes in HTML you need to use bold text
• Sometimes in HTML you need to use italic text
• Sometimes in HTML you need to use both
6.The div and span tags are the two primary element tags for sectioning an HTML document. What is the primary difference between the two attributes?
1.
The internet is a network which helps to get and display an HTML page. This connection helps to display a HTML page in a web browser through HTTP. The Hypertext Transfer Protocol (TTP) is an application protocol for distributed information systems. It is used for data communication for the World Wide Web (WWW).
HTTP have request and response protocol functions in the client-server computing model. If the client submits an HTTP request to the server, then the server will respond and provides the resources such as HTML files.
Thus, this connection process helps for getting and displaying an HTML page.
2.
The browser provides an environment to display an HTML page and the browser can run the JavaScripts code.
The HTML page can be opened using the browser. The Hypertext Markup Language is the standard markup language which is used to design the documents and display in a web browser.
The javascript is a scripting language which is used to run the functions in the client machine in the web browser.
Hence, option b is a correct answer.
3.
HTML uses Elements to display a text, buttons, style, scripts, checkboxes, images, tables etc. All these HTML elements have display criteria so that it creates area in the web page and display the text/ buttons/frames/graphics etc.
An attribute is a characteristic of a page element, such as font size, bold etc. When a web browser interprets an HTML tag it will also check the attributes to display the web page elements properly.
Hence, the option (a) is correct.
4.
The HEAD section contains information related to the document. It contains other tag elements such as TITLE, META, LINK, STYLE, etc. Every tag is used for the different purpose. The HEAD section purpose is used to link the CSS style sheets, styles, Javascript files, script tags, web page ico, title of the page, adding keywords for the SEO using the META tag, etc. But nothing will display in the web page.
The HEAD section starts and end with <head> and </head> tags
Example:
<head>
<title>Title of the page</title>
<link rel="stylesheet" type="text/css" href="mystyle.css">
<script src="js/script.js"></script>
<meta charset="UTF-8">
<meta name="description" content="Learning">
<meta name="keywords" content="HTML,CSS,XML,JavaScript">
<meta name="author" content="author name">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
The BODY section is purpose is to display the content in the web page. The HTML tag elements and attributes are used to display the text or day in the special formats.
This section contains lot of tags to display the content such as text, hyperlinks, tables, lists etc. This tag indicates the main content section of the HTML document.
Example:
<body>
<h1>A Web Page</h1>
<p id="demo">A Paragraph</p>
<button> Try it</button>
</body>
5.
The italic tag <i></i> is used to display the text in the italic style. This tag is used for alternate text such technical terms, foreign words or inline stage directions.
The bold tag <b></b> is used to display the text in bold style. This tag is used for stylistic offset such as keywords link product names etc.
Sometimes The bold tags are also required to mention the priority.
Hence, the final answer is Sometimes in HTML you need to use both.
6.
The difference between the div tag and span tag is as
follows:
Div Tag |
Span Tag |
This is a block-level element. |
This is an inline element. |
This element always starts on a new line. |
This element does not start on a new line. |
It takes the full available width area in the web page. |
It takes the area as much width as necessary in the web page |