Basic HTML interviews questions

                           HTML NOTES
<img src="">:-image source name(web address or local address) for an image
         alt="">:-image url represent(Specifies an alternative text for an image
------------------------------------------------------------------------------------------------------------
<pre> element defines preformatted text.
<small> element defines small text:
 <abbr>Marking abbreviations can give useful information to browsers, translation systems and search-engines.
             (<abbr title="World Health Organization">WHO</abbr>)
---------------------------------------------------------------------------------------------------------------------------------------------------------
<bdo> element defines bi-directional override.(text change)
 <code> element does not preserve extra whitespace and line-breaks:(this code not new line)
---------------------------------------------------------------------------------------------------------------
<a href=""target="_blank"(The target attribute specifies where to open the linked document.) 
_blank    Opens the linked document in a new window or tab
_self    Opens the linked document in the same frame as it was clicked (this is default)
_parent    Opens the linked document in the parent frame
_top    Opens the linked document in the full body of the window
----------------------------------------------------------------------------------------------------------
<img src="planets.gif" alt="Planets" usemap="#planetmap" style="width:145px;height:126px;">

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" alt="Sun" href="sun.htm">
  <area shape="circle" coords="90,58,3" alt="Mercury" href="mercur.htm">
  <area shape="circle" coords="124,58,8" alt="Venus" href="venus.htm">
</map>
-----------------------------------------------------------------------------------------------------------
The <span> element is an inline element that is often used as a container for some text.

The <span> element has no required attributes, but style and class are common.
(<h1>My <span style="color:red">Important</span> Heading</h1>)
<div>    Defines a section in a document (block-level)
<span>    Defines a section in a document (inline)
-------------------------------------------------------------------------------------------------------------------------
<iframe>=iframe is used to display a  new web page
----------------------------------------------------------------------------------------------------------
The <meta> element is used to specify page description, keywords, author, and other metadata.

Metadata is used by browsers (how to display content), by search engines (keywords), and other web services.

Define keywords for search engines:
(<meta name="description" content="Free Web tutorials">
<meta name="keywords" content="HTML,CSS,XML,JavaScript">
<meta name="author" content="Hege Refsnes">
<meta charset="UTF-8">)
-----------------------------------------------------------------------------------------------------------
<form> Element=HTML forms are used to collect user input.
HTML Form Attributes:>=
                                           <form action="action_page.php" method="GET" target="_blank" accept-charset="UTF-8"
enctype="application/x-www-form-urlencoded" autocomplete="off" novalidate>
.
form elements
.
</form>
-----------------------------------------------------------------------------------------------------------------
 <legend> element defines a caption for the <fieldset> element.
 <select> element defines a drop-down list:
<option> elements defines the options to select.
<textarea> element defines a multi-line input field
<output> element represents the result of a calculation
------------------------------------------------------------------------------------------------------------
readonly attribute specifies that the input field is read only (cannot be changed):
----------------------------------------------------------------------------------------------------------------
<canvas>    Defines graphic drawing using JavaScript
<svg>    Defines graphic drawing using XML
-------------------------------------------------------------------------------------------------------------
<video width="320" height="240" controls>
   (The controls attribute adds video controls, like play, pause, and volume.)
                                                      autoplay=(automatic play this video)
  <source src="movie.mp4" type="video/mp4">
(<source> elements can link to different video files)
-----------------------------------------------------------------------------------------------------------
<object> element defines an embedded object within an HTML document.
(used the plug-ins and insert the data to data attributes)
(<object width="400" height="50" data="bookmark.swf"></object>)
 <embed> element also defines an embedded object within an HTML document.
(used tha plug-ins and insert the data to src attributes)
-------------------------------------------------------------------------------------------------------------
formaction attribute=twice form action represent
(<form action="action_page.php">
  First name: <input type="text" name="fname"><br>
  Last name: <input type="text" name="lname"><br>
  <input type="submit" value="Submit"><br>
  <input type="submit" formaction="demo_admin.asp" value="Submit as admin">
</form>)
----------------------------------------------------------------------------------------------------------------
    <col span="2" style="background-color:red">
    <col style="background-color:yellow">(span attributes is chose the row and column)

Comments

Post a Comment

Popular posts from this blog

50 Beautiful Color Palettes for Your Next Web Project

right side toggle by js, toggle from ride side by js, toggle js for website, form toggle from right side js, js for form toggle from right side