1.What are the attributes that make up a DHTML?
DHTML is called as Dynamic HTML. This is used to increase the interactive ability and the visual effect of the web pages which is loaded in the browser.
The main technologies that are used in DHTML are namely:
=> HTML
=> JavaScript
=> CSS which is also called as Cascading Style Sheet
=> DOM also called as Document Object Model
2.What is meant by iframe ?
iframe is used for creating an inline or floating frame. As most of know frames are mainly used to structure the page or for placing a menu bar on the side and so on. But iframe is used in a different context. That is in other words iframe is used to embed or insert content on a page of padding. This is done for several reasons. Say the content may be large enough that the user may wish to place it separately and scroll through it.
3.How to place a background for a single table cell?
You can put a background for a single table cell in two ways namely: Either by
using HTML
Using CSS
4.What are differences between DIV and SPAN?
DIV is used to select a block of text so that one can apply styles to it.
SPAN is used to select inline text and let users to apply styles to it.
The main difference between DIV and SPAN is SPAN does not do formatting by itself. Also the DIV tag is used as a paragraph break as it creates a logical division of the document in which it is applied. This is in contrast to the SPAN as SPAN simply dos the functionality of applying the style and alignment whatever was specified in it. DIV has ALIGN attribute in it which is not present in case of SPAN. Thus DIV is used in cases where one wants to apply styles to a block of text. But there may be situations in which there might not be clear well structured block of text to work with. In those cases one can opt to apply SPAN which is used to apply styles inline. That is in other words DIV is generally used for block of text and SPAN is generally used for words or sentences.
5.What are the differences between cell spacing and cell padding?
Cell padding is used for formatting purpose which is used to specify the space needed between the edges of the cells and also in the cell contents.
Cell spacing is one also used f formatting but there is a major difference between cell padding and cell spacing. It is as follows: Cell padding is used to set extra space which is used to separate cell walls from their contents. But in contrast cell spacing is used to set space between cells.
6.what is the Html?
HyperText is the method by which you move around on the web — by clicking on special text called hyperlinks which bring you to the next page. The fact that it is hyper just means it is not linear — i.e. you can go to any place on the Internet whenever you want by clicking on links — there is no set order to do things in.
Markup is what HTML tags do to the text inside them. They mark it as a certain type of text (italicised text, for example).
7.How do I specify page breaks in HTML?
Here is no way in standard HTML to specify where page breaks will occur when printing a page. HTML was designed to be a device-independent structural definition language, and page breaks depend on things like the fonts and paper size that the person viewing the page is using.
8.How do I add scrolling text to my page?
Add a Tag of marquee
9.How do I close a browser window with HTML code?
Use the below code example. < type=”button” value=”Close this window” onclick=”self.close()”>
10.Is it possible to make the HTML source not viewable?
There is no real method or script for making standard HTML source code not viewable.
There are various script that Disable Right click feature.
11.How do I align a table to the right (or left)?
You can use <TABLE ALIGN=”right”> to float a table to the right. (Use ALIGN=”left” to float it to the left.) Any content that follows the closing </TABLE> tag will flow around the table. Use <BR CLEAR=”right”> or <BR CLEAR=”all”> to mark the end of the text that is to flow around the table, as shown in this example:
The table in this example will float to the right.
<table align=”right”>…</table>
This text will wrap to fill the available space to the left of (and if the text is long enough, below) the table.
<br clear=”right”>
This text will appear below the table, even if there is additional room to its left.
12.How do I do multiple colors of text?
To do the multicolor text adjust the color of your font tag as:
< font color=”blue”>blue
13.What is a tag?
In HTML, a tag tells the browser what to do. When you write an HTML page, you enter tags for many reasons — to change the appearance of text, to show a graphic, or to make a link to another page.
14.What is the simplest HTML page?
HTML Code:
<HTML>
<HEAD>
<TITLE>This is my page title! </TITLE>
</HEAD>
<BODY>
This is my message to the world!
</BODY>
</HTML>
Browser Display:
This is my message to the world!
15.How do I create frames? What is a frameset?
Frames allow an author to divide a browser window into multiple (rectangular) regions. Multiple documents can be displayed in a single window, each within its own frame. Graphical browsers allow these frames to be scrolled independently of each other, and links can update the document displayed in one frame without affecting the others.
You can’t just “add frames” to an existing document. Rather, you must create a frameset document that defines a particular combination of frames, and then display your content documents inside those frames. The frameset document should also include alternative non-framed content in a NOFRAMES element.
The HTML 4 frames model has significant design flaws that cause usability problems for web users. Frames should be used only with great care.
16.How can I include comments in HTML?
Technically, since HTML is an SGML application, HTML uses SGML comment syntax. However, the full syntax is complex, and browsers don’t support it in its entirety anyway. Therefore, use the following simplified rule to create HTML comments that both have valid syntax and work in browsers:
An HTML comment begins with “<!–”, ends with “–>”, and does not contain “–” or “>” anywhere in the comment.
The following are examples of HTML comments:
* <!– This is a comment. –>
* <!– This is another comment,
and it continues onto a second line. –>
* <!—->
Do not put comments inside tags (i.e., between “<” and “>”) in HTML markup.
17.What is a Hypertext link?
A hypertext link is a special tag that links one page to another page or resource. If you click the link, the browser jumps to the link’s destination.
18.How comfortable are you with writing HTML entirely by hand?
Very. I don’t usually use WYSIWYG. The only occasions when I do use Dreamweaver are when I want to draw something to see what it looks like, and then I’ll usually either take that design and hand-modify it or build it all over again from scratch in code. I have actually written my own desktop HTML IDE for Windows (it’s called Less Than Slash) with the intention of deploying it for use in web development training. If has built-in reference features, and will autocomplete code by parsing the DTD you specify in the file. That is to say, the program doesn’t know anything about HTML until after it parses the HTML DTD you specified. This should give you some idea of my skill level with HTML.
19.What is everyone using to write HTML?
Everyone has a different preference for which tool works best for them. Keep in mind that typically the less HTML the tool requires you to know, the worse the output of the HTML. In other words, you can always do it better by hand if you take the time to learn a little HTML
20.What is a DOCTYPE? Which one do I use?
According to HTML standards, each HTML document begins with a DOCTYPE declaration that specifies which version of HTML the document uses. Originally, the DOCTYPE declaration was used only by SGML-based tools like HTML validators, which needed to determine which version of HTML a document used (or claimed to use).
21.Can I nest tables within tables?
Yes, a table can be embedded inside a cell in another table. Here’s a simple example:
<table>
<tr>
<td>this is the first cell of the outer table</td>
<td>this is the second cell of the outer table,
with the inner table embedded in it
<table>
<tr>
<td>this is the first cell of the inner table</td>
<td>this is the second cell of the inner table</td>
</tr>
</table>
</td>
</tr>
</table>The main caveat about nested tables is that older versions of Netscape Navigator have problems with them if you don’t explicitly close your TR, TD, and TH elements. To avoid problems, include every </tr>, </td>, and </th> tag, even though the HTML specifications don’t require them. Also, older versions of Netscape Navigator have problems with tables that are nested extremely deeply (e.g., tables nested ten deep). To avoid problems, avoid nesting tables more than a few deep. You may be able to use the ROWSPAN and COLSPAN attributes to minimize table nesting. Finally, be especially sure to validate your markup whenever you use nested tables.
22.How can I use tables to structure forms?
Small forms are sometimes placed within a TD element within a table. This can be a useful for positioning a form relative to other content, but it doesn’t help position the form-related elements relative to each other.
To position form-related elements relative to each other, the entire table must be within the form. You cannot start a form in one TH or TD element and end in another. You cannot place the form within the table without placing it inside a TH or TD element. You can put the table inside the form, and then use the table to position the INPUT, TEXTAREA, SELECT, and other form-related elements, as shown in the following example.
<FORM ACTION=”[URL]“>
<TABLE BORDER=”0″>
<TR>
<TH>Account:</TH>
<TD><INPUT TYPE=”text” NAME=”account”></TD>
</TR>
<TR>
<TH>Password:</TH>
<TD><INPUT TYPE=”password” NAME=”password”></TD>
</TR>
<TR>
<TD> </TD>
<TD><INPUT TYPE=”submit” NAME=”Log On”></TD>
</TR>
</TABLE>
</FORM>
23.How do I center a table?
In your HTML, use
<div>
<table>…</table>
</div>
In your CSS, use
div.center {
text-align: center;
}
div.center table {
margin-left: auto;
margin-right: auto;
text-align: left;
}
24.How do I use forms?
The basic syntax for a form is: <FORM ACTION=”[URL]“>…</FORM>
When the form is submitted, the form data is sent to the URL specified in the ACTION attribute. This URL should refer to a server-side (e.g., CGI) program that will process the form data. The form itself should contain
=> at least one submit button (i.e., an <INPUT TYPE=”submit” …> element),
=> form data elements (e.g., <INPUT>, <TEXTAREA>, and <SELECT>) as needed, and
=> additional markup (e.g., identifying data elements, presenting instructions) as needed.
25.How can I check for errors?
HTML validators check HTML documents against a formal definition of HTML syntax and then output a list of errors. Validation is important to give the best chance of correctness on unknown browsers (both existing browsers that you haven’t seen and future browsers that haven’t been written yet).
HTML checkers (linters) are also useful. These programs check documents for specific problems, including some caused by invalid markup and others caused by common browser bugs. Checkers may pass some invalid documents, and they may fail some valid ones.
All validators are functionally equivalent; while their reporting styles may vary, they will find the same errors given identical input. Different checkers are programmed to look for different problems, so their reports will vary significantly from each other. Also, some programs that are called validators (e.g. the “CSE HTML Validator”) are really linters/checkers. They are still useful, but they should not be confused with real HTML validators.
26.Do I have to memorize a bunch of tags?
No. Most programs that help you write HTML code already know most tags, and create them when you press a button. But you should understand what a tag is, and how it works. That way you can correct errors in your page more easily.
27.How do I make a form so it can be submitted by hitting ENTER?
The short answer is that the form should just have one <INPUT TYPE=TEXT> and no TEXTAREA, though it can have other form elements like check boxes and radio buttons.
28.How do I set the focus to the first form field?
You cannot do this with HTML. However, you can include a script after the form that sets the focus to the appropriate field, like this:
<form id=”myform” name=”myform” action=…>
<input type=”text” id=”myinput” name=”myinput” …>
</form>
<script type=”text/javascript”>
document.myform.myinput.focus();
</script>
A similar approach uses <body onload=…> to set the focus, but some browsers seem to process the ONLOAD event before the entire document (i.e., the part with the form) has been loaded.
29. How do we make a comment inside the CSS file?
/* include your comment here*/
30. How can we make each word in a text start with a capital letter using CSS?
We can use this property text-transform: capitalize;
31. What are? the main difference between css2 and css3?
The main and biggest difference between CSS2 and CSS3 is that CSS3 has been split up into different sections, called modules. Each of these modules is making it?s way through the W3C in various stages of the recommendation process.
32. What is the? grouping in CSS?
We can write style for two or more selectors that share the same style, only we need to comma separated list of every selector. Grouping is decrease number of line in our code.
33. What is difference between margin and padding in CSS ?
Below is the main difference between margin and padding…
Padding – defines space between border and element content
Margin – defines space between border and other outer elements
34.How can we call the external style sheet in HTML for referring?
<link rel=”stylesheet” type=”text/css” href=”mystyle.css”>
35.How do we comment a CSS file?
/* include your comment here*/
36.How can we make each word in a text start with a capital letter?
With this one in css —– text-transform: capitalize
37.Why we use ‘clear ‘in HTML?
We use the clearance in HTML code for separating the content from one <div> content after floating the position of other<div> content.
38.How many types of graphics?
There are two types of graphics
Raster Graphics –pixels (photoshop)
Vector Graphics – Lines & Curves( Illustrator)
39.What is a Layer in photoshop?
Layer is a component which holds the object. Without affecting the other content, we can modify the object in it.
40.What is Gradient? How to apply gradient?
Gradient is a mixing of two or more colors.
41.What is DHTML?
DHTML is a combination of HTML, XHTML, Javascript, Jquery and CSS.
DHTML is a TERM describing the art of making dynamic and interactive web pages.
42.What is XML?
XML stands for extensible Markup Language.
XML is designed to transport and store data.
43. What is CSS?
CSS stands for Cascading Style Sheets
Styles define how to display HTML elements.Styles were added to HTML 4.0 to solve a problem
External Style Sheets can save a lot of work.External Style Sheets are stored in CSS files
44.What is HTML5?
HTML5 will be the new standard for HTML, XHTML, and the HTML DOM.
HTML5 is still a work in progress. However, most modern browsers have some HTML5 support.
45.Are HTML tags case sensitive?
No HTML tags are not case sensitive.
46.What is most used email form script?
PHP
47. How do you insert a comment in html?
Comments in html begins with “<!–”nd ends with “–>”.
48.Do all character entities display properly on all systems?
No, there are some character entities that cannot be displayed when the operating system that the browser is running on does not support the characters. When that happens, these characters are displayed as boxes.
49.What is image map?
Image map lets you link to many different web pages using a single image. You can define shapes in images that you want to make part of an image mapping.
50.What is the advantage of collapsing white space?
White spaces are blank sequence of space characters, which is actually treated as a single space character in html. Because the browser collapses multiple space into a single space, you can indent lines of text without worrying about multiple spaces. This enables you to organize the html code into a much more readable format.
51.Can attribute values be set to anything or are there specific values that they accept?
Some attribute values can be set to only predefined values. Other attributes can accept any numerical value that represents the number of pixels for a size.
52.How do you insert a copyright symbol on a browser page?
To insert the copyright symbol, you need to type © or & #169; in an HTML file.
53.How do you create links to sections within the same page?
Links can be created using the <a> tag, with referencing through the use of the number (#) symbol. For example, you can have one line as <a href=”#topmost”>BACK TO TOP</a>, which would result in the words “BACK TO TOP” appearing on the webpage and links to a bookmark named topmost. You then create a separate tag command like <a name=”topmost”> somewhere on the top of the same webpage so that the user will be linked to that spot when he clicked on “BACK TO TOP”.
54.Is there any way to keep list elements straight in an html file?
By using indents, you can keep the list elements straight. If you indent each subnested list in further than the parent list that contains it, you can at a glance determine the various lists and the elements that it contains.
55.If you see a web address on a magazine, to which web page does it point?
Every web page on the web can have a separate web address. Most of these addresses are relative to the top-most web page. The published web address that appears within magazines typically points this top-most page. From this top level page, you can access all other pages within the web site.
56.What is the use of using alternative text in image mapping?
When you use image maps, it can easily become confusing and difficult to determine which hotspots corresponds with which links. Using alternative text lets you put a descriptive text on each hotspot link.
57.Do older html files work on newer browsers?
Yes, older html files are compliant to the HTML standard. Most older files work on the newer browsers, though some features may not work.
58.Does a hyperlink apply to text only?
No, hyperlinks can be used on text as well as images. That means you can convert an image into a link that will allow user to link to another page when clicked. Just surround the image within the <a href=” “>…</a> tag combinations.
59.If the user’s operating system does not support the needed character, how can the symbol be represented?
In cases wherein their operating system does not support a particular character, it is still possible to display that character by showing it as an image instead.
60.How do you change the number type in the middle of a list?
The <li> tag includes two attributes – type and value. The type attribute can be used to change the numbering type for any list item. The value attribute can change the number index.
61.What are style sheets?
Style sheets enable you to build consistent, transportable, and well-defined style templates. These templates can be linked to several different web pages, making it easy to maintain and change the look and feel of all the web pages within a site.
62.What bullet types are available?
With ordered lists, you can select to use a number of different list types including alphabetical and Roman numerals. The type attribute for unordered lists can be set to disc, square, or circle.
63.How do you create multicolored text in a webpage?
To create text with different colors, use the <font color=”color”>…</font> tags for every character that you want to apply a color. You can use this tag combination as many times as needed, surrounding a single character or an entire word.
64.Why are there both numerical and named character entity values?
The numerical values are taken from the ASCII values for the various characters, but these can be difficult to remember. Because of this, named character entity values were created to make it easier for web page designers to use.
65.What is the advantage of grouping several checkboxes together?
Although checkboxes don’t affect one another, grouping checkboxes together helps to organize them. Checkbox buttons can have their own name and do not need to belong to a group. A single web page can have many different groups of checkboxes.
66.What will happen if you overlap sets of tags?
If two sets of html tags are overlapped, only the first tag will be recognized. You will recognize this problem when the text does not display properly on the browser screen.
67.What are applets?
Applets are small programs that can be embedded within web pages to perform some specific functionality, such as computations, animations, and information processing. Applets are written using the Java language.
68.What if there is no text between the tags or if a text was omitted by mistake? Will it affect the display of the html file?
If there is no text between the tags, then there is nothing to format, so no formatting will appear. Some tags, especially tags without a closing tag like the <img> tag, do not require any text between them.
69.Is it possible to set specific colors for table borders?
You can specify a border color using style sheets, but the colors for a table that does not use style sheets will be the same as the text color.
70.How do you create a link that will connect to another web page when clicked?
To create hyperlinks, or links that connect to another web page, use the href tag. The general format for this is: <a href=”site”>text</a>
Replace “site” with the actual page url that is supposed to be linked to when the text is clicked.
71.What other ways can be used to align images and wrap text?
Tables can be used to position text and images. Another useful way to wrap text around an image is to use style sheets.
72.Can a single text link point to two different web pages?
No. The <a> tag can accept only a single href attribute, and it can point to only a single web page.
73.What is the difference between the directory and menu lists and the unordered list?
The key differences is that the directory and menu lists do not include attributes for changing the bullet style.
74.Can you change the color of bullets?
The bullet color is always the same as that of the first character in the list litem. If you surround the <li> and the first character with a set of <font> tags with the color attribute set, the bullet color and the first character will be a different color from the text.
75.What are the limits of the text field size?
The default size for a text field is around 13 characters, but if you include the size attribute, you can set the size value to be as low as 1. The maximum size value will be determined by the browser width. If the size attribute is set to 0, the size will be set to the default size of 13 characters.
76.Do <th> tags always need to come at the start of a row or column?
Any <tr> tag can be changed to a <th> tag. This causes the text contained within the <th> tag to be displayed as bold in the browser. Although <th> tags are mainly used for headings, they do not need to be used exclusively for headings.
77.What is the relationship between the border and rule attributes?
Default cell borders, with a thickness of 1 pixel, are automatically added between cells if the border attribute is set to a nonzero value. Likewise, If the border attribute is not included, a default 1-pixel border appears if the rules attribute is added to the <table> tag.
78.What is a marquee?
A marquee allows you to put a scrolling text in a web page. To do this, place whatever text you want to appear scrolling within the <marquee> and </marquee> tags.
79.Are <br> tags the only way to separate sections of text?
No. The <br> tag is only one way to separate lines of text. Other tags, like the <p> tag and <blockquote> tag, also separate sections of text.
80.Are there instances where text will appear outside of the browser?
By default, the text is wrapped to appear within the browser window. However, if the text is part of a table cell with a defined width, the text could extend beyond the browser window.
81.How are active links different from normal links?
The default color for normal and active links is blue. Some browsers recognize an active link when the mouse cursor is placed over that link; others recognize active links when the link has the focus. Those that don’t have a mouse cursor over that link is considered a normal link.
82.Do style sheets limit the number of new style definitions that can be included within the brackets?
Style sheets do not limit the number of style definitions that can be included within the brackets for a given selector. Every new style definition, however, must be separated from the others by a semicolon symbol.
83.Can I specify fractional weight values such as 670 or 973 for font weight?
Implementation largely depends on the browser, but the standard does not support fractional weight values. Acceptable values must end with two zeroes.
84.What is the hierarchy that is being followed when it comes to style sheets?
If a single selector includes three different style definitions, the definition that is closest to the actual tag takes precedence. Inline style takes priority over embedded style sheets, which takes priority over external style sheets.
85.Can several selectors with class names be grouped together?
You can define several selectors with the same style definition by separating them with commas. This same technique also works for selectors with class names.
86.What happens if you open the external CSS file in a browser?
If you try to open the external CSS file in a browser, the browser cannot open the file, because the file has a different extension. The only way to use an external CSS file is to reference it using <link/> tag within another html document.
87.What happens if the list-style-type property is used on a non-list element like a paragraph?
If the list-style-type property is used on a non-list element like a paragraph, the property will be ignored and have no effect on the paragraph.
88.When is it appropriate to use frames?
Frames can make navigating a site much easier. If the main links to the site are located in a frame that appears at the top or along the edge of the browser, the content for those links can be displayed in the remainder of the browser window.
89.What happens if the number of values in the rows or cols attribute doesn’t add up to 100 percent?
The browser sizes the frames relative to the total sum of the values. If the cols attribute is set to 100%, 200%, the browser displays two vertical frames with the second being twice as big as the first.
90.How do I make a link to another web page?
Specify the complete URL in the A HREF tag as shown below.
Visit ComputerHope Replace our address with the address that you would like to link. Where it says “Visit ComputerHope” replace this what you want to name the link.
91.What is Semantic HTML?
Semantic HTML means using HTML tags for their implied meaning, rather than just using (meaningless) div and span tags for absolutely everything. Why would you want to do this? Depending on the tag, the content in the tag can be interpreted in a certain way.
92.What is Document Type Definition?
Document Type Defination (DTD) specifies the syntax of a web page in SGML,It is used to specify rules that apply to the markup of the document of a particular type,including a set of element and entity declarations.
93.What is DIV in HTML?
DIV is same as span but it has an additional property of align in it with the help of which we can align the text within it,furhter if we want to palce our code anywhere in our page we use DIV tag and our code within it.
94.What is HEAD in HTML document?
The head of an HTML document is an unordered collection of information about the document. The HEAD contains general information, or meta-information, about the document. The head appears first in a document above the BODY.
95.What are the differences between cell spacing and cell padding?
Cell Padding: Cell padding is used for formatting purpose which is used to specify the space needed between the edges of the cells and also in the cell contents.
Cell Spacing: Cell spacing is one also used f formatting but there is a major difference between cell padding and cell spacing.It is as follows: Cell padding is used to set extra space which is used to separate cell walls from their contents. But in contrast cell spacing is used to set space between cells.
96.What are the attributes that make up a DHTML?
DHTML is called as Dynamic HTML. This is used to increase the interactive ability and the visual effect of the web pages which is loaded in the browser.
97.The main difference between XML and HTML?
* XML was designed to describe data and to focus on what data is. HTML was designed to display data and to focus on how data looks
* HTML is about displaying information, while XML is about describing information.
* The tags used to mark up HTML documents and the structures of HTML documents are predefined.
* XML allows the author to define his own tags and his own document structure.
98.What are META tags?
META tags areuseful for Web developers and serch engines. They can be used to identify the creator of the page, what HTML specs the page follows, the keywords and description of the page, and the refresh parameter (which can be used to cause the page to reload itself, or to load another page).
99.Why is XHTML needed? Isn’t HTML good enough?
HTML is probably the most successful document markup language in the world. But when XML was introduced, a two-day workshop was organised to discuss whether a new version of HTML in XML was needed.
The opinion at the workshop was a clear ‘Yes’: with an XML-based HTML other XML languages could include bits of XHTML, and XHTML documents could include bits of other markup languages.
We could also take advantage of the redesign to clean up some of the more untidy parts of HTML, and add some new needed functionality, like better forms.
100. Why do you say “user agent” everywhere, instead of “browser”?
Although browsers are indeed important users of HTML and XHTML, there are other programs and systems that read those documents. Search engines for instance read documents, but are not browsers. By using the term “user agent” we are trying to remind people of the difference.
For example, when you do a Google search often you will see under some of the search results something like “This web page uses frames, but your browser doesn’t support them.” therefore surely frightening off some people from clicking on that link.
The author of the website in question hasn’t realised that there are more than just browsers, and that they ought to include better text in their section, so that they don’t appear so foolish when people search their site.
101.How do I add scrolling text to my page?
Keep in mind not all browsers support scrolling text. however to do this add a tag similar to the below example.
THIS WOULD SCROLL
The above example would create the below scrolling text. If your browser supports scrolling text the below example should be scrolling.
102.How you define index document?
Many times we have require index.htm / document because it is a standard for the host-server to look for the document and deploy it.Default document to be displayed in the web.
103.How you define HEAD in HTML?
Head is placed before the body in the HTML.It is use to display only the general information or unordered collection to information about the HTML document.
104. How you define SPAN in HTML?
We use SPAN by using <SPAN> tag in HTML.Syntax:<SPAN>…………</SPAN>Used to highlightthe any color text, for adding colored text, for adding background image to text. SPAN not a cause of line break. It delimits text and using them we can use style to the \’elemental\’ region without any break in Text.
Example:
p>
<span style=”color:#FF0000;”>
In this page we use span.
</span>
105.How you define body in HTML?
Body in HTML specifies the all contents of the document.Means that it contain the text,images, colors,graphics etc.
106.How you display an picture in background of HTML?
We can display an picture in background of HTML page using that code.
Syntax:
<body style=”background-image:url(image path)”>
107.What is Semantic in HTML?
I have given two reasons of use Semantic HTML.
1.Always avoid the use of markup that present you HTML document.Like: element, attribute etc.
2.Try to use available markup to differentiate the meanings of phrases and structure in the document.
Example:
<cite>The Grapes of Wrath</cite>
Above,the <cite> element is used because it most closely matches the meaning of this phrase in the text.
DHTML is called as Dynamic HTML. This is used to increase the interactive ability and the visual effect of the web pages which is loaded in the browser.
The main technologies that are used in DHTML are namely:
=> HTML
=> JavaScript
=> CSS which is also called as Cascading Style Sheet
=> DOM also called as Document Object Model
2.What is meant by iframe ?
iframe is used for creating an inline or floating frame. As most of know frames are mainly used to structure the page or for placing a menu bar on the side and so on. But iframe is used in a different context. That is in other words iframe is used to embed or insert content on a page of padding. This is done for several reasons. Say the content may be large enough that the user may wish to place it separately and scroll through it.
3.How to place a background for a single table cell?
You can put a background for a single table cell in two ways namely: Either by
using HTML
Using CSS
4.What are differences between DIV and SPAN?
DIV is used to select a block of text so that one can apply styles to it.
SPAN is used to select inline text and let users to apply styles to it.
The main difference between DIV and SPAN is SPAN does not do formatting by itself. Also the DIV tag is used as a paragraph break as it creates a logical division of the document in which it is applied. This is in contrast to the SPAN as SPAN simply dos the functionality of applying the style and alignment whatever was specified in it. DIV has ALIGN attribute in it which is not present in case of SPAN. Thus DIV is used in cases where one wants to apply styles to a block of text. But there may be situations in which there might not be clear well structured block of text to work with. In those cases one can opt to apply SPAN which is used to apply styles inline. That is in other words DIV is generally used for block of text and SPAN is generally used for words or sentences.
5.What are the differences between cell spacing and cell padding?
Cell padding is used for formatting purpose which is used to specify the space needed between the edges of the cells and also in the cell contents.
Cell spacing is one also used f formatting but there is a major difference between cell padding and cell spacing. It is as follows: Cell padding is used to set extra space which is used to separate cell walls from their contents. But in contrast cell spacing is used to set space between cells.
6.what is the Html?
HyperText is the method by which you move around on the web — by clicking on special text called hyperlinks which bring you to the next page. The fact that it is hyper just means it is not linear — i.e. you can go to any place on the Internet whenever you want by clicking on links — there is no set order to do things in.
Markup is what HTML tags do to the text inside them. They mark it as a certain type of text (italicised text, for example).
7.How do I specify page breaks in HTML?
Here is no way in standard HTML to specify where page breaks will occur when printing a page. HTML was designed to be a device-independent structural definition language, and page breaks depend on things like the fonts and paper size that the person viewing the page is using.
8.How do I add scrolling text to my page?
Add a Tag of marquee
9.How do I close a browser window with HTML code?
Use the below code example. < type=”button” value=”Close this window” onclick=”self.close()”>
10.Is it possible to make the HTML source not viewable?
There is no real method or script for making standard HTML source code not viewable.
There are various script that Disable Right click feature.
11.How do I align a table to the right (or left)?
You can use <TABLE ALIGN=”right”> to float a table to the right. (Use ALIGN=”left” to float it to the left.) Any content that follows the closing </TABLE> tag will flow around the table. Use <BR CLEAR=”right”> or <BR CLEAR=”all”> to mark the end of the text that is to flow around the table, as shown in this example:
The table in this example will float to the right.
<table align=”right”>…</table>
This text will wrap to fill the available space to the left of (and if the text is long enough, below) the table.
<br clear=”right”>
This text will appear below the table, even if there is additional room to its left.
12.How do I do multiple colors of text?
To do the multicolor text adjust the color of your font tag as:
< font color=”blue”>blue
13.What is a tag?
In HTML, a tag tells the browser what to do. When you write an HTML page, you enter tags for many reasons — to change the appearance of text, to show a graphic, or to make a link to another page.
14.What is the simplest HTML page?
HTML Code:
<HTML>
<HEAD>
<TITLE>This is my page title! </TITLE>
</HEAD>
<BODY>
This is my message to the world!
</BODY>
</HTML>
Browser Display:
This is my message to the world!
15.How do I create frames? What is a frameset?
Frames allow an author to divide a browser window into multiple (rectangular) regions. Multiple documents can be displayed in a single window, each within its own frame. Graphical browsers allow these frames to be scrolled independently of each other, and links can update the document displayed in one frame without affecting the others.
You can’t just “add frames” to an existing document. Rather, you must create a frameset document that defines a particular combination of frames, and then display your content documents inside those frames. The frameset document should also include alternative non-framed content in a NOFRAMES element.
The HTML 4 frames model has significant design flaws that cause usability problems for web users. Frames should be used only with great care.
16.How can I include comments in HTML?
Technically, since HTML is an SGML application, HTML uses SGML comment syntax. However, the full syntax is complex, and browsers don’t support it in its entirety anyway. Therefore, use the following simplified rule to create HTML comments that both have valid syntax and work in browsers:
An HTML comment begins with “<!–”, ends with “–>”, and does not contain “–” or “>” anywhere in the comment.
The following are examples of HTML comments:
* <!– This is a comment. –>
* <!– This is another comment,
and it continues onto a second line. –>
* <!—->
Do not put comments inside tags (i.e., between “<” and “>”) in HTML markup.
17.What is a Hypertext link?
A hypertext link is a special tag that links one page to another page or resource. If you click the link, the browser jumps to the link’s destination.
18.How comfortable are you with writing HTML entirely by hand?
Very. I don’t usually use WYSIWYG. The only occasions when I do use Dreamweaver are when I want to draw something to see what it looks like, and then I’ll usually either take that design and hand-modify it or build it all over again from scratch in code. I have actually written my own desktop HTML IDE for Windows (it’s called Less Than Slash) with the intention of deploying it for use in web development training. If has built-in reference features, and will autocomplete code by parsing the DTD you specify in the file. That is to say, the program doesn’t know anything about HTML until after it parses the HTML DTD you specified. This should give you some idea of my skill level with HTML.
19.What is everyone using to write HTML?
Everyone has a different preference for which tool works best for them. Keep in mind that typically the less HTML the tool requires you to know, the worse the output of the HTML. In other words, you can always do it better by hand if you take the time to learn a little HTML
20.What is a DOCTYPE? Which one do I use?
According to HTML standards, each HTML document begins with a DOCTYPE declaration that specifies which version of HTML the document uses. Originally, the DOCTYPE declaration was used only by SGML-based tools like HTML validators, which needed to determine which version of HTML a document used (or claimed to use).
21.Can I nest tables within tables?
Yes, a table can be embedded inside a cell in another table. Here’s a simple example:
<table>
<tr>
<td>this is the first cell of the outer table</td>
<td>this is the second cell of the outer table,
with the inner table embedded in it
<table>
<tr>
<td>this is the first cell of the inner table</td>
<td>this is the second cell of the inner table</td>
</tr>
</table>
</td>
</tr>
</table>The main caveat about nested tables is that older versions of Netscape Navigator have problems with them if you don’t explicitly close your TR, TD, and TH elements. To avoid problems, include every </tr>, </td>, and </th> tag, even though the HTML specifications don’t require them. Also, older versions of Netscape Navigator have problems with tables that are nested extremely deeply (e.g., tables nested ten deep). To avoid problems, avoid nesting tables more than a few deep. You may be able to use the ROWSPAN and COLSPAN attributes to minimize table nesting. Finally, be especially sure to validate your markup whenever you use nested tables.
22.How can I use tables to structure forms?
Small forms are sometimes placed within a TD element within a table. This can be a useful for positioning a form relative to other content, but it doesn’t help position the form-related elements relative to each other.
To position form-related elements relative to each other, the entire table must be within the form. You cannot start a form in one TH or TD element and end in another. You cannot place the form within the table without placing it inside a TH or TD element. You can put the table inside the form, and then use the table to position the INPUT, TEXTAREA, SELECT, and other form-related elements, as shown in the following example.
<FORM ACTION=”[URL]“>
<TABLE BORDER=”0″>
<TR>
<TH>Account:</TH>
<TD><INPUT TYPE=”text” NAME=”account”></TD>
</TR>
<TR>
<TH>Password:</TH>
<TD><INPUT TYPE=”password” NAME=”password”></TD>
</TR>
<TR>
<TD> </TD>
<TD><INPUT TYPE=”submit” NAME=”Log On”></TD>
</TR>
</TABLE>
</FORM>
23.How do I center a table?
In your HTML, use
<div>
<table>…</table>
</div>
In your CSS, use
div.center {
text-align: center;
}
div.center table {
margin-left: auto;
margin-right: auto;
text-align: left;
}
24.How do I use forms?
The basic syntax for a form is: <FORM ACTION=”[URL]“>…</FORM>
When the form is submitted, the form data is sent to the URL specified in the ACTION attribute. This URL should refer to a server-side (e.g., CGI) program that will process the form data. The form itself should contain
=> at least one submit button (i.e., an <INPUT TYPE=”submit” …> element),
=> form data elements (e.g., <INPUT>, <TEXTAREA>, and <SELECT>) as needed, and
=> additional markup (e.g., identifying data elements, presenting instructions) as needed.
25.How can I check for errors?
HTML validators check HTML documents against a formal definition of HTML syntax and then output a list of errors. Validation is important to give the best chance of correctness on unknown browsers (both existing browsers that you haven’t seen and future browsers that haven’t been written yet).
HTML checkers (linters) are also useful. These programs check documents for specific problems, including some caused by invalid markup and others caused by common browser bugs. Checkers may pass some invalid documents, and they may fail some valid ones.
All validators are functionally equivalent; while their reporting styles may vary, they will find the same errors given identical input. Different checkers are programmed to look for different problems, so their reports will vary significantly from each other. Also, some programs that are called validators (e.g. the “CSE HTML Validator”) are really linters/checkers. They are still useful, but they should not be confused with real HTML validators.
26.Do I have to memorize a bunch of tags?
No. Most programs that help you write HTML code already know most tags, and create them when you press a button. But you should understand what a tag is, and how it works. That way you can correct errors in your page more easily.
27.How do I make a form so it can be submitted by hitting ENTER?
The short answer is that the form should just have one <INPUT TYPE=TEXT> and no TEXTAREA, though it can have other form elements like check boxes and radio buttons.
28.How do I set the focus to the first form field?
You cannot do this with HTML. However, you can include a script after the form that sets the focus to the appropriate field, like this:
<form id=”myform” name=”myform” action=…>
<input type=”text” id=”myinput” name=”myinput” …>
</form>
<script type=”text/javascript”>
document.myform.myinput.focus();
</script>
A similar approach uses <body onload=…> to set the focus, but some browsers seem to process the ONLOAD event before the entire document (i.e., the part with the form) has been loaded.
29. How do we make a comment inside the CSS file?
/* include your comment here*/
30. How can we make each word in a text start with a capital letter using CSS?
We can use this property text-transform: capitalize;
31. What are? the main difference between css2 and css3?
The main and biggest difference between CSS2 and CSS3 is that CSS3 has been split up into different sections, called modules. Each of these modules is making it?s way through the W3C in various stages of the recommendation process.
32. What is the? grouping in CSS?
We can write style for two or more selectors that share the same style, only we need to comma separated list of every selector. Grouping is decrease number of line in our code.
33. What is difference between margin and padding in CSS ?
Below is the main difference between margin and padding…
Padding – defines space between border and element content
Margin – defines space between border and other outer elements
34.How can we call the external style sheet in HTML for referring?
<link rel=”stylesheet” type=”text/css” href=”mystyle.css”>
35.How do we comment a CSS file?
/* include your comment here*/
36.How can we make each word in a text start with a capital letter?
With this one in css —– text-transform: capitalize
37.Why we use ‘clear ‘in HTML?
We use the clearance in HTML code for separating the content from one <div> content after floating the position of other<div> content.
38.How many types of graphics?
There are two types of graphics
Raster Graphics –pixels (photoshop)
Vector Graphics – Lines & Curves( Illustrator)
39.What is a Layer in photoshop?
Layer is a component which holds the object. Without affecting the other content, we can modify the object in it.
40.What is Gradient? How to apply gradient?
Gradient is a mixing of two or more colors.
41.What is DHTML?
DHTML is a combination of HTML, XHTML, Javascript, Jquery and CSS.
DHTML is a TERM describing the art of making dynamic and interactive web pages.
42.What is XML?
XML stands for extensible Markup Language.
XML is designed to transport and store data.
43. What is CSS?
CSS stands for Cascading Style Sheets
Styles define how to display HTML elements.Styles were added to HTML 4.0 to solve a problem
External Style Sheets can save a lot of work.External Style Sheets are stored in CSS files
44.What is HTML5?
HTML5 will be the new standard for HTML, XHTML, and the HTML DOM.
HTML5 is still a work in progress. However, most modern browsers have some HTML5 support.
45.Are HTML tags case sensitive?
No HTML tags are not case sensitive.
46.What is most used email form script?
PHP
47. How do you insert a comment in html?
Comments in html begins with “<!–”nd ends with “–>”.
48.Do all character entities display properly on all systems?
No, there are some character entities that cannot be displayed when the operating system that the browser is running on does not support the characters. When that happens, these characters are displayed as boxes.
49.What is image map?
Image map lets you link to many different web pages using a single image. You can define shapes in images that you want to make part of an image mapping.
50.What is the advantage of collapsing white space?
White spaces are blank sequence of space characters, which is actually treated as a single space character in html. Because the browser collapses multiple space into a single space, you can indent lines of text without worrying about multiple spaces. This enables you to organize the html code into a much more readable format.
51.Can attribute values be set to anything or are there specific values that they accept?
Some attribute values can be set to only predefined values. Other attributes can accept any numerical value that represents the number of pixels for a size.
52.How do you insert a copyright symbol on a browser page?
To insert the copyright symbol, you need to type © or & #169; in an HTML file.
53.How do you create links to sections within the same page?
Links can be created using the <a> tag, with referencing through the use of the number (#) symbol. For example, you can have one line as <a href=”#topmost”>BACK TO TOP</a>, which would result in the words “BACK TO TOP” appearing on the webpage and links to a bookmark named topmost. You then create a separate tag command like <a name=”topmost”> somewhere on the top of the same webpage so that the user will be linked to that spot when he clicked on “BACK TO TOP”.
54.Is there any way to keep list elements straight in an html file?
By using indents, you can keep the list elements straight. If you indent each subnested list in further than the parent list that contains it, you can at a glance determine the various lists and the elements that it contains.
55.If you see a web address on a magazine, to which web page does it point?
Every web page on the web can have a separate web address. Most of these addresses are relative to the top-most web page. The published web address that appears within magazines typically points this top-most page. From this top level page, you can access all other pages within the web site.
56.What is the use of using alternative text in image mapping?
When you use image maps, it can easily become confusing and difficult to determine which hotspots corresponds with which links. Using alternative text lets you put a descriptive text on each hotspot link.
57.Do older html files work on newer browsers?
Yes, older html files are compliant to the HTML standard. Most older files work on the newer browsers, though some features may not work.
58.Does a hyperlink apply to text only?
No, hyperlinks can be used on text as well as images. That means you can convert an image into a link that will allow user to link to another page when clicked. Just surround the image within the <a href=” “>…</a> tag combinations.
59.If the user’s operating system does not support the needed character, how can the symbol be represented?
In cases wherein their operating system does not support a particular character, it is still possible to display that character by showing it as an image instead.
60.How do you change the number type in the middle of a list?
The <li> tag includes two attributes – type and value. The type attribute can be used to change the numbering type for any list item. The value attribute can change the number index.
61.What are style sheets?
Style sheets enable you to build consistent, transportable, and well-defined style templates. These templates can be linked to several different web pages, making it easy to maintain and change the look and feel of all the web pages within a site.
62.What bullet types are available?
With ordered lists, you can select to use a number of different list types including alphabetical and Roman numerals. The type attribute for unordered lists can be set to disc, square, or circle.
63.How do you create multicolored text in a webpage?
To create text with different colors, use the <font color=”color”>…</font> tags for every character that you want to apply a color. You can use this tag combination as many times as needed, surrounding a single character or an entire word.
64.Why are there both numerical and named character entity values?
The numerical values are taken from the ASCII values for the various characters, but these can be difficult to remember. Because of this, named character entity values were created to make it easier for web page designers to use.
65.What is the advantage of grouping several checkboxes together?
Although checkboxes don’t affect one another, grouping checkboxes together helps to organize them. Checkbox buttons can have their own name and do not need to belong to a group. A single web page can have many different groups of checkboxes.
66.What will happen if you overlap sets of tags?
If two sets of html tags are overlapped, only the first tag will be recognized. You will recognize this problem when the text does not display properly on the browser screen.
67.What are applets?
Applets are small programs that can be embedded within web pages to perform some specific functionality, such as computations, animations, and information processing. Applets are written using the Java language.
68.What if there is no text between the tags or if a text was omitted by mistake? Will it affect the display of the html file?
If there is no text between the tags, then there is nothing to format, so no formatting will appear. Some tags, especially tags without a closing tag like the <img> tag, do not require any text between them.
69.Is it possible to set specific colors for table borders?
You can specify a border color using style sheets, but the colors for a table that does not use style sheets will be the same as the text color.
70.How do you create a link that will connect to another web page when clicked?
To create hyperlinks, or links that connect to another web page, use the href tag. The general format for this is: <a href=”site”>text</a>
Replace “site” with the actual page url that is supposed to be linked to when the text is clicked.
71.What other ways can be used to align images and wrap text?
Tables can be used to position text and images. Another useful way to wrap text around an image is to use style sheets.
72.Can a single text link point to two different web pages?
No. The <a> tag can accept only a single href attribute, and it can point to only a single web page.
73.What is the difference between the directory and menu lists and the unordered list?
The key differences is that the directory and menu lists do not include attributes for changing the bullet style.
74.Can you change the color of bullets?
The bullet color is always the same as that of the first character in the list litem. If you surround the <li> and the first character with a set of <font> tags with the color attribute set, the bullet color and the first character will be a different color from the text.
75.What are the limits of the text field size?
The default size for a text field is around 13 characters, but if you include the size attribute, you can set the size value to be as low as 1. The maximum size value will be determined by the browser width. If the size attribute is set to 0, the size will be set to the default size of 13 characters.
76.Do <th> tags always need to come at the start of a row or column?
Any <tr> tag can be changed to a <th> tag. This causes the text contained within the <th> tag to be displayed as bold in the browser. Although <th> tags are mainly used for headings, they do not need to be used exclusively for headings.
77.What is the relationship between the border and rule attributes?
Default cell borders, with a thickness of 1 pixel, are automatically added between cells if the border attribute is set to a nonzero value. Likewise, If the border attribute is not included, a default 1-pixel border appears if the rules attribute is added to the <table> tag.
78.What is a marquee?
A marquee allows you to put a scrolling text in a web page. To do this, place whatever text you want to appear scrolling within the <marquee> and </marquee> tags.
79.Are <br> tags the only way to separate sections of text?
No. The <br> tag is only one way to separate lines of text. Other tags, like the <p> tag and <blockquote> tag, also separate sections of text.
80.Are there instances where text will appear outside of the browser?
By default, the text is wrapped to appear within the browser window. However, if the text is part of a table cell with a defined width, the text could extend beyond the browser window.
81.How are active links different from normal links?
The default color for normal and active links is blue. Some browsers recognize an active link when the mouse cursor is placed over that link; others recognize active links when the link has the focus. Those that don’t have a mouse cursor over that link is considered a normal link.
82.Do style sheets limit the number of new style definitions that can be included within the brackets?
Style sheets do not limit the number of style definitions that can be included within the brackets for a given selector. Every new style definition, however, must be separated from the others by a semicolon symbol.
83.Can I specify fractional weight values such as 670 or 973 for font weight?
Implementation largely depends on the browser, but the standard does not support fractional weight values. Acceptable values must end with two zeroes.
84.What is the hierarchy that is being followed when it comes to style sheets?
If a single selector includes three different style definitions, the definition that is closest to the actual tag takes precedence. Inline style takes priority over embedded style sheets, which takes priority over external style sheets.
85.Can several selectors with class names be grouped together?
You can define several selectors with the same style definition by separating them with commas. This same technique also works for selectors with class names.
86.What happens if you open the external CSS file in a browser?
If you try to open the external CSS file in a browser, the browser cannot open the file, because the file has a different extension. The only way to use an external CSS file is to reference it using <link/> tag within another html document.
87.What happens if the list-style-type property is used on a non-list element like a paragraph?
If the list-style-type property is used on a non-list element like a paragraph, the property will be ignored and have no effect on the paragraph.
88.When is it appropriate to use frames?
Frames can make navigating a site much easier. If the main links to the site are located in a frame that appears at the top or along the edge of the browser, the content for those links can be displayed in the remainder of the browser window.
89.What happens if the number of values in the rows or cols attribute doesn’t add up to 100 percent?
The browser sizes the frames relative to the total sum of the values. If the cols attribute is set to 100%, 200%, the browser displays two vertical frames with the second being twice as big as the first.
90.How do I make a link to another web page?
Specify the complete URL in the A HREF tag as shown below.
Visit ComputerHope Replace our address with the address that you would like to link. Where it says “Visit ComputerHope” replace this what you want to name the link.
91.What is Semantic HTML?
Semantic HTML means using HTML tags for their implied meaning, rather than just using (meaningless) div and span tags for absolutely everything. Why would you want to do this? Depending on the tag, the content in the tag can be interpreted in a certain way.
92.What is Document Type Definition?
Document Type Defination (DTD) specifies the syntax of a web page in SGML,It is used to specify rules that apply to the markup of the document of a particular type,including a set of element and entity declarations.
93.What is DIV in HTML?
DIV is same as span but it has an additional property of align in it with the help of which we can align the text within it,furhter if we want to palce our code anywhere in our page we use DIV tag and our code within it.
94.What is HEAD in HTML document?
The head of an HTML document is an unordered collection of information about the document. The HEAD contains general information, or meta-information, about the document. The head appears first in a document above the BODY.
95.What are the differences between cell spacing and cell padding?
Cell Padding: Cell padding is used for formatting purpose which is used to specify the space needed between the edges of the cells and also in the cell contents.
Cell Spacing: Cell spacing is one also used f formatting but there is a major difference between cell padding and cell spacing.It is as follows: Cell padding is used to set extra space which is used to separate cell walls from their contents. But in contrast cell spacing is used to set space between cells.
96.What are the attributes that make up a DHTML?
DHTML is called as Dynamic HTML. This is used to increase the interactive ability and the visual effect of the web pages which is loaded in the browser.
97.The main difference between XML and HTML?
* XML was designed to describe data and to focus on what data is. HTML was designed to display data and to focus on how data looks
* HTML is about displaying information, while XML is about describing information.
* The tags used to mark up HTML documents and the structures of HTML documents are predefined.
* XML allows the author to define his own tags and his own document structure.
98.What are META tags?
META tags areuseful for Web developers and serch engines. They can be used to identify the creator of the page, what HTML specs the page follows, the keywords and description of the page, and the refresh parameter (which can be used to cause the page to reload itself, or to load another page).
99.Why is XHTML needed? Isn’t HTML good enough?
HTML is probably the most successful document markup language in the world. But when XML was introduced, a two-day workshop was organised to discuss whether a new version of HTML in XML was needed.
The opinion at the workshop was a clear ‘Yes’: with an XML-based HTML other XML languages could include bits of XHTML, and XHTML documents could include bits of other markup languages.
We could also take advantage of the redesign to clean up some of the more untidy parts of HTML, and add some new needed functionality, like better forms.
100. Why do you say “user agent” everywhere, instead of “browser”?
Although browsers are indeed important users of HTML and XHTML, there are other programs and systems that read those documents. Search engines for instance read documents, but are not browsers. By using the term “user agent” we are trying to remind people of the difference.
For example, when you do a Google search often you will see under some of the search results something like “This web page uses frames, but your browser doesn’t support them.” therefore surely frightening off some people from clicking on that link.
The author of the website in question hasn’t realised that there are more than just browsers, and that they ought to include better text in their section, so that they don’t appear so foolish when people search their site.
101.How do I add scrolling text to my page?
Keep in mind not all browsers support scrolling text. however to do this add a tag similar to the below example.
THIS WOULD SCROLL
The above example would create the below scrolling text. If your browser supports scrolling text the below example should be scrolling.
102.How you define index document?
Many times we have require index.htm / document because it is a standard for the host-server to look for the document and deploy it.Default document to be displayed in the web.
103.How you define HEAD in HTML?
Head is placed before the body in the HTML.It is use to display only the general information or unordered collection to information about the HTML document.
104. How you define SPAN in HTML?
We use SPAN by using <SPAN> tag in HTML.Syntax:<SPAN>…………</SPAN>Used to highlightthe any color text, for adding colored text, for adding background image to text. SPAN not a cause of line break. It delimits text and using them we can use style to the \’elemental\’ region without any break in Text.
Example:
p>
<span style=”color:#FF0000;”>
In this page we use span.
</span>
105.How you define body in HTML?
Body in HTML specifies the all contents of the document.Means that it contain the text,images, colors,graphics etc.
106.How you display an picture in background of HTML?
We can display an picture in background of HTML page using that code.
Syntax:
<body style=”background-image:url(image path)”>
107.What is Semantic in HTML?
I have given two reasons of use Semantic HTML.
1.Always avoid the use of markup that present you HTML document.Like: element, attribute etc.
2.Try to use available markup to differentiate the meanings of phrases and structure in the document.
Example:
<cite>The Grapes of Wrath</cite>
Above,the <cite> element is used because it most closely matches the meaning of this phrase in the text.
This is truly a standout amongst the most gainful online journals I've ever skimmed on this subject. I am exceptionally happy to peruse such an incredible blog and thank you for offering this great information to us.Continue sharing.
ReplyDeleteDOTNET Training in Chennai | DOTNET course in Chennai | DOTNET Training Institute in Chennai