Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » <html> <input type="text" label="name">(How to include the html equiv of text box)
<html> <input type="text" label="name"> [message #1855711] Fri, 28 October 2022 01:14 Go to next message
Eclipse UserFriend
Hello there,

I am quite new to the HTML and PHP scene. Basically, I am trying to include a box, which allows the user to input text. This will eventually be stored in a string. Yet, when I include:
<html>
<input type="text" label = "name">
</html>
<?php
$name;
?>

the compiler claims label is not a valid attribute. Unfortunately, when I press <f2> to find out what fields are acceptable in this tag, nothing happens. What is wrong with the label attribute?
Re: <html> <input type="text" label="name"> [message #1857943 is a reply to message #1855711] Tue, 07 March 2023 11:02 Go to previous message
Eclipse UserFriend
Kevin, the Moderators aren't necessarily the ones to answer forum questions. Please don't report a post to "bump" it in that manner.

If you check the HTML5 documentation, the input element does not have a label attribute (https://html.spec.whatwg.org/#the-input-element) . Why
would you expect F2 to show you the valid attributes? What functionality or command is it tied to? Typically you'd do that with Content Assist or the Properties view.

[Updated on: Tue, 07 March 2023 13:28] by Moderator

Previous Topic:Must have tools while developing in PHP?
Next Topic:Eclipse 2022-12 issues
Goto Forum:
  


Current Time: Thu May 15 16:46:47 EDT 2025

Powered by FUDForum. Page generated in 0.03619 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top