Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 05:14 Go to next message
Kevin Perez is currently offline Kevin PerezFriend
Messages: 1
Registered: January 2021
Junior Member
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 16:02 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

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.


_
Nitin Dahyabhai
Eclipse Web Tools Platform

[Updated on: Tue, 07 March 2023 18:28]

Report message to a moderator

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


Current Time: Fri Apr 26 19:37:08 GMT 2024

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

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

Back to the top