Tag: html
-
How to responsive YouTube video ?
Certainly! Utilizing the aspect-ratio CSS property is a modern and convenient way to make YouTube videos responsive without explicitly setting padding values. Here’s how you can achieve it: 3. CSS Styling: Apply CSS styles using the aspect-ratio property to make the video container responsive. The aspect-ratio property maintains the specified aspect ratio for the container,…
-
Free PHP, HTML, CSS, JavaScript/TypeScript editor – CodeLobster IDE
CodeLobster IDE allows you to edit PHP, HTML, CSS, JavaScript and TypeScript files, it highlights the syntax and gives hints for tags, functions and their parameters. This editor easily deals with those files that contain a mixed content.
-
Auto save form using PHP, jQuery
This blog is regarding how to auto save form using PHP, jQuery. There are many tutorial available but it is very simple method. HTML Form : <form id=”auto-save-form”> Name : <input name=”name” type=”text” /> Email : <input name=”email” type=”text”> <input name=”submit” type=”submit”/> </form> JQuery Code: /*Form Auto Submit Logic*/ var changeFlag = false; var focusFlag…
-
How to read html table tag in php?
<?php // new dom object $dom = new DOMDocument(); //load the html $html = $dom->loadHTMLFile(“test.html”); //discard white space $dom->preserveWhiteSpace = false; //the table by its tag name $tables = $dom->getElementsByTagName(‘table’); //get all rows from the table $rows = $tables->item(0)->getElementsByTagName(‘tr’); // loop over the table rows foreach ($rows as $row) { // get each column by…