Stray end tag “head”

you need to understand — the <head> element defines attributes that are used by the browser, but are not directly visible in the page. The <title> attribute defines the title shown on your browser tab. After you close the <head> tag, you should open the <body> tag, in which all the content to be shown … Read more

How do I change the default index page in Apache?

I recommend using .htaccess. You only need to add: or whatever page name you want to have for it. EDIT: basic htaccess tutorial. 1) Create .htaccess file in the directory where you want to change the index file. no extension . in front, to ensure it is a “hidden” file Enter the line above in there. There will likely … Read more

How to extract svg as file from web page

When the SVG is integrated as <svg …></svg> markup directly into the HTML page. Right click on the SVG to inspect it in developer tools Find the root of the <svg> element and right click to “Copy element” Go to https://jakearchibald.github.io/svgomg/ and “Paste markup” Download your optimized SVG file and enjoy

Rails button_to vs. HTML Button Tag

button_to like all others helpers for the views in Rails (e.g. link_to, form_for, image_tag…) simply converts your Rails command in HTML code. We could say that is a shortcut to write “pure HTML”. In your case, for button_to, you can see the reference (and what is printed) here: http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-button_to For example: I suggest you to … Read more

HTML Links are not working

am currently creating a website, and for some reason a simple task linking to another web page is not working. When I try and link something I get This webpage is not found. No webpage was found for the web address: C:\me\me\me etc etc”. All I am trying to do is link a work to … Read more

Form inside a table

A form is not allowed to be a child element of a table, tbody or tr. Attempting to put one there will tend to cause the browser to move the form to it appears after the table (while leaving its contents — table rows, table cells, inputs, etc — behind). You can have an entire … Read more