Profile cover photo
Profile photo
Chris Laygo
26 followers
26 followers
About
Posts

Post has attachment
Chris Laygo commented on a post on Blogger.
Use JSFiddle on stuff like this, you can link to it & it'll save your code! Even edit it more later. I even included an example in this one:

http://jsfiddle.net/d29te/

Post has attachment
Chris Laygo commented on a post on Blogger.
The wonders of HTMTL5, it's no longer necessary to do <a name="target"></a> (always close tags that have a closing tag).

The 2nd half of your example is still applicable, but now, you don't need to do the a:name. You can put an id on ANY tag & target it:

<span id="target">Some content</span>
<p id="target">etc etc</p>

Try it out . . . make sure you're using an HTML5 doctype (look it up, it's really easy!).

Did you buy the course from W3Schools? They're known for being wrong in a lot of examples.

Post has attachment
Chris Laygo commented on a post on Blogger.
Here's a couple of more links you'll find helpful: Javascript Weekly & HTML5 Weekly.

http://javascriptweekly.com/
http://html5weekly.com/

A lot of times there are how to handle special cases, some new way to do something, or just some cool examples.

Post has attachment
Chris Laygo commented on a post on Blogger.
A lil bit of feedback . . .

Javascript is NOT dependent on the Option string & Value to be the same. In fact, most of the time they are independent. When you get to database relationships, the value will be the ID from the database while the option will be the string. It's much easier to find the relationship based on the ID.

Consider:
<select>
    <option value="1">Red Shirt, short sleeve</option>
    <option value="2">Red Shirt, long sleeve</option>
    <option value="3">Blue Shirt, short sleeve</option>
    <option value="4">Blue Shirt, long sleeve</option>
</select>

You would NOT want the value to be the same as the option.

Textarea has an opening & closing tag. It's required.

A form tag almost always wraps more than one input type. You can have multiple form tags, but they are typically independent of each other.

Input types are important stuff. Really get to know the types. HTML5 has given us a ton more types for the input, so there is a lot more to play with. Select/Textarea are the 2 oddballs for how they are formed, but checkbox/radio are odd because they have to have the same name in order to group correctly.

Hope that helps . . .
Wait while more posts are being loaded