Found 693 Articles for Front End Scripts

How to create a link to send email with a subject in HTML?

Updated on 09-Jan-2020 06:49:01
To create a link to send email, use tag, with href attribute. The mail to link is added inside the tag. To add a subject, you need to add ? and then include the subject. All this comes inside the tag.Just keep in mind to add the email address where you want to receive the email in the mail to link. Also, the spaces between words for the subject shouldn’t be space, instead include %20. This is to ensure the browser displays the text properly.ExampleYou can try to run the following code to create a link to ... Read More

What is the difference between id and name attributes in HTML?

Surya Prakash
Updated on 30-Jul-2019 22:30:22
IDThe ID of a form Element nothing to do just an identification and nothing to do with the data contained within the element. The IDs are attached in writing and using in Javascript and CSS.Referened with JS method getElementByID()NameThe NAME attribute is used in the HTTP request sent by browser to the server as a variable name and it is associated with the data contained in the value attribute. We Cannot be referenced in CSS or any URLReferenced with JS method getElementByName()

What is the difference between HTML tags

Samual Sam
Updated on 12-Sep-2019 08:29:44
Both and is used to define parts of a web page. The element shows the inline portion of a document. The elements show a block-level portion of a document.A div is a block-level element and a span is an inline element.The div should be used to wrap sections of a document, while use spans to wrap small portions of text, images, etc.Here’s an example:Demo Text, with some other text.The element is used while creating CSS based layouts in html, whereas element is used to stylize texts.