HTML name attribute deprecated
Just now somebody on IRC was claiming that the "name" attribute in HTML - the one that is used to give form input fields a name to be used in $_GET and _$POST in PHP is in fact deprecated. Quoting About.com that seems indeed true - but you should always double check on the internet, as nobody ever reads specifications right.
The W3C has also a section on this available , and if you only skim you might only see:
"Note that in XHTML 1.0, the name attribute of these elements is formally deprecated, and will be removed in a subsequent version of XHTML."
But if you read correctly, it's only for the elements: a, applet, form, frame, iframe, img, and map.
Today's lesson: always read the specs carefully .
Comments
No name for anchor tags? Does that mean no more #section to jump from place to place in a document?
"Sorry screen readers, I can no longer provide you with a way to skip my 20 item long menu at the top of each page. Enjoy!"
@Josh: Nah... there is the ID attribute for this of course.
@Josh, as is mentioned, you should use the ID element.
On a (Strict?) Doctyped XHTML page, you can reference any element with an ID by the standard hash URL.
For example, I have an ID called content (...). Adding #content to the URL will take me to that location on the page (foo.php#content). Exactly the same behavior as the old name attribute but far easier :)
Life Line
Spoonbill
This lovely bird just randomly dropped in when looking at a Little and Great Egret. Great entrance, and th m it started wading and foraging. It's by far the closest I've been to one.
#photography #Birds #BirdPhotography #BirdsOfFediverse #NaturePhotography #wildlife #Zeeland
Specify maximum physical heights
Survey opening hours
Determine place names
Survey postbox collection times
Specify street/place names to addresses
Survey if places still exist
Add whether public transport stops are lit
Specify whether public transport stops have tactile paving
Specify whether public transport stops have bins
Specify whether there are cycleways
Survey housenumbers
Specify road surfaces
I walked 5.9km in 1h3m11s
Mirrored Redshank
There were a bunch of them just standing next to the streaming Zeeland. We thought one of them could have been a Spotted Redshank, but that didn't turn out to be the case. The others were hiding behind reeds and grass, but this one flew to the other side and posed nicely.
#photography #Birds #BirdPhotography #BirdsOfFediverse #NaturePhotography #wildlife #Zeeland
I walked 1.7km in 14m57s
Updated an estate_agent office
Survey housenumbers
Specify path surfaces
Specify parking types
Survey opening hours
Specify street/place names to addresses
Specify road surfaces
Specify whether roads have sidewalks
I walked 4.2km in 50m37s



Shortlink
This article has a short URL available: https://drck.me/hnad-5qa