Code Writer is a nice text editor for Windows 8. I found it very useful when learning HTML and CSS.
Code Writer is very good, Brackets.io is even better imo.
Code Writer is a nice text editor for Windows 8. I found it very useful when learning HTML and CSS.
Atom.io is out for Windows, so that's my new go to after Sublime.
Don't know if this is the right thread but we have this "hacking" competition where one challenge involves implementing a successful XSS (Cross Site Scripting). There is a search field that removes ALL < and > symbols. It does not turn them into their ascii code equivalent (e.g. < it just removes them. The inputted text is then displayed to the user after this filtering. Is XSS still possible here?
A second question is the exact same except now ALL html characters (", &, <, >, etc) are simply turned into their ascii equivalent (they are not removed). Would XSS be possible here?
Been trying to find a solution for god knows how long. Any help would be appreciated.
Atom.io is out for Windows, so that's my new go to after Sublime.
It really depends on the code. Without seeing it it's hard to say. In general I'd say doing that would prevent certain obvious classes of XSS attacks.
Do people usually make headers with photoshop,illustrator,etc instead of html and css? I usually use html and css but they look rudimentary. I also was told if you use images it will be kind of a bad idea because it can take some time to load. If i was to use photoshop it will be an image. So what is the consensus?
Yea you are right. Also how can i make the top header take up the whole width of a page? Usually i center everything but then my header is not taking up the whole top since it is in the center.Thing is, you can't see the code since its server side, you just see the end result (the printed text). The only thing that actually prints the symbols (instead of taking them out altogether) is by first converting them to hex and letting the browser figure it out. But then they're just text, and not executable code so that doesn't work.
What do you mean by headers? The banner/slideshow thingy most sites have at the top of their home page? I don't see how you could make an image out of just html and css. Maybe if it was basic shapes, then there are a lot of css tricks to make circles, arrows, etc out of plain html elements, but anything more detailed then that and you'll be forced to use images wouldn't you?
Yea you are right. Also how can i make the top header take up the whole width of a page? Usually i center everything but then my header is not taking up the whole top since it is in the center.
Thing is, you can't see the code since its server side, you just see the end result (the printed text). The only thing that actually prints the symbols (instead of taking them out altogether) is by first converting them to hex and letting the browser figure it out. But then they're just text, and not executable code so that doesn't work.
Do people usually make headers with photoshop,illustrator,etc instead of html and css? I usually use html and css but they look rudimentary. I also was told if you use images it will be kind of a bad idea because it can take some time to load. If i was to use photoshop it will be an image. So what is the consensus?
Yea you are right. Also how can i make the top header take up the whole width of a page? Usually i center everything but then my header is not taking up the whole top since it is in the center.
The rule: if the image is a photo or otherwise taken by an image sensor use an image. For everything else use CSS/HTML or SVGs.
Use percentages in your css for the dimensions. e.g. width: 100% (make sure it isnt contained within a parent element that has a fixed width or it will fill that instead of the page.)
How reliable are SVGs when it comes to browser compatibility? I've tried before and it was sort of a hassle (apparently I had to edit the code within the file?), and ultimately the displayed images was 3 times the size it was suppose to be. At that point I gave up and resorted to a png.
That can change things. If there are posts or querystring those definitely can be an avenue of attack from external pages. For instance, if the removal happens in JS before it's posted another modified page could still post bad data to it.
The rule: if the image is a photo or otherwise taken by an image sensor use an image. For everything else use CSS/HTML or SVGs.
Hey web developer gaf
I am thinking on pulling the trigger on this theme for a service I am working on for entrepeneurs in my country, where people will get legal and accounting council, logo/web design, etc... Would this theme work for this purpose? It's a Wordpress theme btw.
http://www.elegantthemes.com/gallery/divi/
Thanks!
I love Divi. Very robust, and ET over the years has just become my favorite easy to setup themes. With Divi I really don't feel that there's any design I can't recreate, and it makes it very easy to split-test which design is better for users.
yea i noticed the width was fixed elsewhere so i had to delete that for it can work. What if i want the content in the main page to all be centered at the same time though? Also it's a good idea to have the header width set to 100% all the time right? It just looks strange otherwise if it is just set in the middle of the page.
How reliable are SVGs when it comes to browser compatibility? I've tried before and it was sort of a hassle (apparently I had to edit the code within the file?), and ultimately the displayed images was 3 times the size it was suppose to be. At that point I gave up and resorted to a png.
Atom.io is out for Windows, so that's my new go to after Sublime.
What is the best and most efficient way to move words around the main page? Whether its a single word or a few of them i always have a hard time moving them exactly where i want. What i do is lots of <br> tags and i know that is bad coding habits. So anyone know the best way to move words and/or images in a certain spot of a main page?
Question: Is it worth going through Code School? I haven't really touched anything besides HTML, CSS, JavaScript and JQuery. Is it worth learning Angular.JS, Node.JS, and Backbone.JS? How in depth are the courses?
If text is right near an image, how can i make that text move under the image?
for ex: here is some code:
[text here]
<img src="LisaMellinger.jpg" class="lisa" >
The class is to float it to the left. Right on top of the image is some text and when you view that in the browser the text is on the right side of the picture,right near the image. I want to know how i can move that text under the image? I also have another image to the right and the text moves that image around which i don't want.
You need to reorder them in markup.
If text is right near an image, how can i make that text move under the image?
for ex: here is some code:
[text here]
<img src="LisaMellinger.jpg" class="lisa" >
The class is to float it to the left. Right on top of the image is some text and when you view that in the browser the text is on the right side of the picture,right near the image. I want to know how i can move that text under the image? I also have another image to the right and the text moves that image around which i don't want.
Any place better than Openshift for some free Node.js hosting?
Never messed with markup. What is that?
If text is right near an image, how can i make that text move under the image?
for ex: here is some code:
[text here]
<img src="LisaMellinger.jpg" class="lisa" >
The class is to float it to the left. Right on top of the image is some text and when you view that in the browser the text is on the right side of the picture,right near the image. I want to know how i can move that text under the image? I also have another image to the right and the text moves that image around which i don't want.
He means the HTML. You need to move the text underneath the image in your editor. Like so:
<img src="LisaMellinger.jpg" >
[text here]
Removing the class will kill the float, so the image will display on its own line with the text underneath it.
Removing the class helps but i noticed it's not under the image but almost[on the bottom right corner of the image] It's just text thought with no heading,paragraphs,etc. So what i did was add a <p> tag to the text and that fixed it and it was spaced nicely. Is that considered bad coding habits though? Using a <p> tag just for two words? Also now my other image is at the bottom although neatly lined up. I want that image to be to the right of my other image and not under it. I can't float it to the right because it wont also move to the top so what should i do?
I'm not an expert, so assume anything I say is going to be wrong, but as far as I know:Removing the class helps but i noticed it's not under the image but almost[on the bottom right corner of the image] It's just text thought with no heading,paragraphs,etc. So what i did was add a <p> tag to the text and that fixed it and it was spaced nicely. Is that considered bad coding habits though? Using a <p> tag just for two words? Also now my other image is at the bottom although neatly lined up. I want that image to be to the right of my other image and not under it. I can't float it to the right because it wont also move to the top so what should i do?
<figure>
<img src="http://i.imgur.com/Po2mz0V.jpg">
<figcaption>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vitae mi ultricies, aliquet nulla vel, luctus velit. </figcaption>
</figure>
<figure>
<img src="http://i.imgur.com/Po2mz0V.jpg">
<figcaption>Lorem Ipsum</figcaption>
</figure>
figure {
display: inline-block;
text-align: center;
max-width: 300px;
vertical-align: top;
}
I mentioned earlier that you should use a clear:both if you want your text to appear normally below a floated image. A float will make your text wrap around your pic. To remove that effect you use "clear".
For example try this sample code and replace the pic1 and pic2 with actual pictures (I'd suggest you keep the styles in an external css sheet and not inline like I'm showing you):
<img style="float:left;" src="pic1.jpg"/>
<img style="float:left;margin-left:10px;" src="pic2.jpg"/>
<div style="clear:both;"></div>
<p> Test paragraph</p>
It will display your two pics side by side and the paragraph will be below the pictures.
Now try it without this <div style="clear:both;"></div>
See the difference?
I'm not an expert, so assume anything I say is going to be wrong, but as far as I know:
Using <p> for things other than paragraphs isn't terrible, but you want your html to be more semantic. That is, you want people to be able to guess what it is from the tag name. You can use <p>, but any block element (that doesn't have conflicting style already set) should do. If nothing else fits, <div> is the generic one to use.
As for the other issue, are you sure whatever they're in is wide enough to hold them? You may need to set a max width or something like that (though that feels like it would be bad practice, idk.) Otherwise the text seems to keep stretching it if it gets long. Anyway, if the image or something is too wide to fit, it pretty much has to go to the next line.
After some playing around and a little Googleing, I came up with this. Is it the kind of thing you're going for? (Enter into the Codepen from above):
Html
Code:<figure> <img src="http://i.imgur.com/Po2mz0V.jpg"> <figcaption>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vitae mi ultricies, aliquet nulla vel, luctus velit. </figcaption> </figure> <figure> <img src="http://i.imgur.com/Po2mz0V.jpg"> <figcaption>Lorem Ipsum</figcaption> </figure>
CSS
Code:figure { display: inline-block; text-align: center; max-width: 300px; vertical-align: top; }
Yea this is helpful but what if i want two separate names under each image?
When you guys make a site from scratch do you use html 5 layout with header,side bar,footer,etc? Or just html and divs?
When you guys make a site from scratch do you use html 5 layout with header,side bar,footer,etc? Or just html and divs?
go with the html5 tags: header, nav, main, section, footer, etc
your code will be more semantic
If you're content is fairly static I'd go with semantic HTML. You'll probably want to learn some of the sectioning rules so you don't wind up with untitled sections (http://gsnedders.html5.org/outliner/). For more dynamic applications you could try custom elements (see: polymer) but they aren't really mature enough to go nuts with yet.