Some useful links are:-
There are two ways you can put label on radios
for="id_of_your_radio" in the label tag
- Put the
radio inside of
lable tag; no need of
for attribute. It will be implicit
The basic idea is: we want to modify the label according to our design demands. But the later technique explained above has
label as parent to
input tag; CSS has limitation; we cannot select parent on the basis of child. In our case
child (input) changes events and need to modify the
So going with the former technique
See here for More details
The HTML stands for HyperText Markup Language.
What is HyperText?
Hypertext is text which contains links to other texts. The term was coined by Ted Nelson around 1965 (see History ).
HyperMedia is a term used for hypertext which is not constrained to be text: it can include graphics, video and sound , for example. Apparently Ted Nelson was the first to use this term too.
Hypertext and HyperMedia are concepts, not products.
What is Markup?
Markup is detailed instructions, usually written on a manuscript to be typeset, concerning style of type and makeup of pages.
So, HTML is concept of enhancing the visual appearance of the HyperText.
Lets say, you have a feature in your application such that you have a text-area (Integrated with text-editor plugin) in your form and use can write markups. These markups are supposed to be rendered in the view as HTML Tags (Just like they appeared in TextEditor like CKEditor). Suppose you write Continue reading
Problem I Faced:
Actually I wanted to render a partial and get it back to the DOM using UJS and html() function of jQuery. But I faced an error Uncaught SyntaxError: Unexpected token ILLEGAL in browser console. After few hours of research I found that the problem was LF (Line Feed) Continue reading
Don’t use this method unless you’re sure your string isn’t nil. Instead use the raw() method, which wont raise an exception on nil.
HTML forms provide three methods of encoding.
application/x-www-form-urlencoded (the default)
The specifics of the formats don’t matter to most developers. The important points are:
When you are writing client-side code, all you need to know is use
multipart/form-data when your form includes any
<input type="file"> elements.
When you are writing server-side code: Use a prewritten form handling library (e.g. Perl’s
CGI->paramor the one exposed by PHP’s
$_POST superglobal) and it will take care of the differences for you. Don’t bother trying to parse the raw input received by the server.
<link rel=“stylesheet” type=“text/css” media=“screen, projection” href=“REGULAR-STYLESHEET.css” />