xhtml Questions

6

Solved

I need to sanitize HTML submitted by the user by closing any open tags with correct nesting order. I have been looking for an algorithm or Python code to do this but haven't found anything except s...
Vtehsta asked 16/11, 2008 at 4:14

5

Solved

I'm using Flying Saucer to convert XHTML to a PDF document. I've gotten the code to work with just basic HTML and in-line CSS, however, now I'm attempting to add an image as a sort of header to the...
Lob asked 13/7, 2012 at 19:26

17

Solved

It seems like there are a few different techniques out there, so I was hoping to get a "definitive" answer on this... On a website, it's common practice to create a logo that links to the homepage...
Brawn asked 20/3, 2009 at 4:57

14

Solved

I want to make an HTML div tag fade in and fade out. I have some code that fades out, but when I fade in, the opacity of the div stays at 0.1 and doesn't increase. <!DOCTYPE html PUBLIC "-//W...
Arraignment asked 25/5, 2011 at 7:51

33

I have a <div> block with some fancy visual content that I don't want to change. I want to make it a clickable link. I'm looking for something like <a href="…"><div> … </div&g...
Elisavetgrad asked 28/4, 2009 at 3:15

2

Solved

This seems like it ought to be easy, but I'm just not getting something. I want to make an HTML page containing a single SVG image that automatically scales to fit the browser window, without any ...
Futch asked 13/4, 2011 at 0:47

6

Solved

I'm trying to create a table to display an individual's BMI. As a part of this, I'd like, on :hover, for the <tr> and <col> (or <colgroup>) to be highlighted also, in order for t...
Girish asked 11/5, 2009 at 16:11

6

Solved

I need to adjust the width of a select HTML box without using css, is there a way? I tried size but then it's adjusting the height, and width does nothing? Is there another way?
Chainplate asked 11/9, 2009 at 15:6

4

Solved

String body = "<br>"; Document document = Jsoup.parseBodyFragment(body); document.outputSettings().escapeMode(EscapeMode.xhtml); String str = document.body().html(); System.out.println(str); ...
Paneling asked 16/3, 2015 at 21:17

5

Solved

Am I allowed to place <noscript> in the <head>?
Hydrosome asked 31/10, 2008 at 8:42

4

Solved

I was just reading somebody's HTML who never closed meta and link tags in the HTML head section. The code worked fine; is closing these tags optional? I thought it would be malformed if a tag was ...
Birchard asked 21/10, 2013 at 22:34

4

Solved

Since I learned to serve XHTML pages as XML, I have started noticing something odd: whenever I view an XHTML page in the Firefox source code viewer, the DOCTYPE is always marked as an error. Accord...
Crossness asked 8/11, 2013 at 0:45

12

Solved

How can the cursor be focus on a specific input box on page load? Is it posible to retain initial text value as well and place cursor at end of input? <input type="text" size="25" id="myinputb...
Stollings asked 2/12, 2010 at 2:8

6

Solved

I am using Eclipse Kepler,version=4.3.0(tried with version=3.7.0 also).I tried using javax.faces-2.2.5.jar and javax.faces-2.2.1.jar. Steps that i am following : File -> New -> Dynamic Web Project...
Incest asked 1/3, 2014 at 18:22

4

Solved

If I set display:inline for any element then will margin, padding, width, height not affect on that element? Is it necessary to use float:left or display:block or display:inline-block to use margi...
Glossa asked 18/4, 2011 at 7:50

4

Solved

I use Visual Studio for teaching HTML. We use HTML 4.01 Transitional. Visual Studio defaults to XHTML 1.0, and I need to solve one problem with a typical difference among these two HTML standards: ...
Semela asked 23/10, 2012 at 13:36

8

Solved

How do you link (with <a>) so that the browser goes to certain subheading on the target page as opposed to the top?
Standpoint asked 14/5, 2010 at 14:59

25

Solved

What's the difference between <b> and <strong>, <i> and <em> in HTML/XHTML? When should you use each?
Potvaliant asked 7/11, 2008 at 10:56

19

Solved

I understand that an id must be unique within an HTML/XHTML page. For a given element, can I assign multiple ids to it? <div id="nested_element_123 task_123"></div> I realize...
Illtreat asked 10/10, 2008 at 16:4

8

Solved

i can't find any information inside the w3c html strict spec http://www.w3.org/TR/html4/sgml/dtd.html
Cari asked 7/12, 2010 at 6:39

15

I have a form with radio buttons that are on the same line as their labels. The radio buttons are however not aligned vertically with their labels as shown in the screenshot below. How can I ve...
Babettebabeuf asked 22/11, 2012 at 9:50

11

I am using following simple HTML : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <body> <img src="l...
Babylon asked 26/1, 2013 at 19:9

9

Solved

Alright, so my favicon isn't showing up for some reason. It's at image/favicon.ico (I've checked it like 5 times). This is the code I use for it: <link rel="shortcut icon" href="i...
Floorage asked 22/11, 2010 at 17:34

8

Solved

You can set the width of inline elements like <span>, <em> and <strong>, but you won’t notice any effect until you position them. a) I thought the width of inline an inline el...
Gibe asked 14/9, 2009 at 18:56

22

Solved

Is there a way to create a list-style in HTML with a dash (i.e. - or – – or — —) i.e. <ul> <li>abc</li> </ul> Outputting: - abc It's o...
Alleviative asked 8/7, 2010 at 2:6

© 2022 - 2025 — McMap. All rights reserved.