html

How do you parse a web page and extract all the href links?

I want to parse a web page in Groovy and extract all of the href links and the associated text with it. If the page contained these links: <a href="http://www.google.com">Google&lt;/a> <a href="http://www.apple.com">Apple&lt;/a> The output would be: Google, http://www.google.com Apple, http://www.apple.com I'm looking for a Groovy an...

Looking for C# HTML parser

I would like to extract the structure of the HTML document - so the tags are more important than the content. Ideally, it would be able to cope reasonably with badly-formed HTML to some extent also. Anyone know of a reliable and efficient parser? ...

How to do picture overlay in HTML (something like marker on top of google map)?

Hi, Anyone know how to do picture overlay or appear on top of each other in HTML? The effect will be something like the marker/icon appear on Google Map where the user can specify the coordinate of the second picture appear on the first picture. Thanks. ...

How to open an external file from HTML

OK, I know this is a total newbie question, but I can't find any solutions with Google that work for me. I want a list of hyperlinks on a basic html page, which point to files on our corporate intranet. When a user clicks the link, I want the file to open. They are excel spreadsheets, and this is an intranet environment, so I can count...

Best Way To Format An HTML Email?

I am implementing a comment control that allows a person to select comments and have them sent to specified departments. The email needs to be formatted in a specific way, and I was wondering what the best way to do this would be. Should I just hard code all of the style information into one massive method, or should I try and create a...

Is XHTML compliance pointless?

I'm building a site right now, so far I've painfully forced everything to be compliant and it looks pretty much the same across browsers. However, I'm starting to implement some third party/free javascripts which do things like add attributes (eg. order=2). I could work around this but it's a pain, and I'm starting to lose my principals ...

Sending values through links (html)

Here is the case, i got 2 pages. What i want is to have a number of text links( ) on page 1 all directing to page 2, but i want each link to send a different value. On page 2 i want to show that value like: Hello you clicked {value} Another point to take in account is that i cant use any php in this situation, just html. ...

How do I embed an image in a .NET HTML Mail Message?

I have an HTML Mail template, with a place holder for the image. I am getting the image I need to send out of a database and saving it into a photo directory. I need to embed the image in the HTML Message. I have explored using an AlternateView: AlternateView htmlView = AlternateView.CreateAlternateViewFromString("<HTML> <img src=cid:V...

Information on how to use margins

I need some info on how to use margins and how exactly "padding" works: For example: should I put a line to occupate the whole width of the page (no matter what resolution is used to display the web page) letting just a small border on each side, how could I put this? Thank you! ...

Applying Styles To ListItems in CheckBoxList

How can styles be applied to CheckBoxList ListItems. Unlike other controls, such as the Repeater where you can specify , you can't seem to specify a style for each individual control. Is there some sort of work around? ...

Is there a way to force a style to a div element which already has a style="" attribute

I'm trying to skin HTML output which I don't have control over. One of the elements is a DIV with a style="overflow: auto" attribute. Is there a way in CSS to force that DIV to use "overflow: hidden"? ...

Always have to use .css files?

Are .css files always needed? Or may I have a .css "basic" file and store other style items inside the HTML page? Does padding, borders and so on always have to be defined into a .css file stored separately, or may I use them normally into an HTML page? ...

Position An HTML Element Relative to its Container Using CSS

I'm trying to create a horizontal 100% stacked-bar graph using HTML and CSS. I'd like to create the bars using DIVs with background colors and percentage widths depending on the values I want to graph. I also want to have a grid lines to mark an arbitrary position along the graph. In my experimentation, I've already gotten the bars to s...

What are some excellent examples of user sign-up forms on the web?

I'm trying to get a sampling of what people think are the best sign-up forms. Good design, usability. Smart engineering. Helpful feedback. Etc. ...

What's a good book to learn Javascript DOM manipulation?

I'm looking for a book I could use to learn the subject of DOM scripting. So far I just have been learning only the things I needed for my given projects online, but I would like to buy a book on the topic so I can fully learn the material as a whole. Any suggestions? ...

adding html to my RSS/Atom feed in Rails

The default rails XML builder escapes all html so something like: atom_feed do |feed| @stories.each do |story| feed.entry story do |entry| entry.title story.title entry.content "<b>foo</b>" end end end will produce the text: <b>foo</b> instead of: foo Is there any way to instruct the XML builder ...

webpage template where content takes full height of viewport if has 1 line minus footer

I am looking for a css based web page template where the main content div takes full height of the view port (minus header and footer heights) when its content has few lines. Footer should be at the bottom of the view port (instead of right below content and instead of showing in middle of viewport). Content area needs to extent vertical...

Getting Image height before the image loads in HTML

I have a table that is dynamically created using DIVs. Each row of the table has two images. I want to set the height for the div (that represents a particular row) to the height of image that is greater of the two images being displayed in that particular row. The images to displayed will always change, and they are from an external ser...

How to add some non standard font to website?

Is there any way to add some custom font on website without using images, flash or some other graphics. For example, I was working on some wedding website, and I was found a lot of nice fonts for that subject, but I can't find the right way to add that font on the server, and how to include that font with css into the html. Is this possi...

What is the best way to replace the file browse button in html?

I know that it's possible to replace the browse button, which is generated in html, when you use input tag with type="file". I'm not sure what is the best way, so if someone has experience with this please contribute. ...