Thread: HTML DOJO
View Single Post
Old Oct 31st, 2012, 10:17:11 AM   #23
sandshrewz
南Potest 华Qui 人Vult
is a member of the Smogon Site Staffis an Artistis a Forum Moderatoris a Contributor to Smogon Mediais a Contributor to Smogonis a Battle Server Moderator
 
sandshrewz's Avatar
 
Moderator
Join Date: Oct 2010
Posts: 1,430
Live like there's no tomorrow
Default

Quote:
Originally Posted by Fat Brutaka View Post
Ah, I didn't even see those italics in the beginning X)

I know I could use <em> or even <i> for italics, but from all I've read, eventually tags like those will be deprecated and they encourage people to style with CSS instead of HTML. So I've been using <span style=""> for styling inline words, because it doesn't send it to a new line like <p> and I use <div> for certain reasons personally. I use <div>'s for organization of layout construction for the most part.

Is the space after the alt="" really 100% necessary? I've never seen any rules about it, and it works. Then again, just because it works doesn't mean it's right, that's something I've learned somewhat the hard way. Same thing for the <br/> and <br />

I just checked. The space isn't necessary but it's always good to have standardization :) same thing for <br /> Standardization is helpful when you're trying to replace all the tags with find+replace or something etc, so if possible just follow the standardized one ^_^

Yeah, I think I did use the <p> for that extra space, the space was bigger than a single space from the looks of it.
Quote:
Originally Posted by Fat pokemon0078 View Post
I did it I did, I had some trouble aligning the image on the bottom but eventually found what I needed to do on w3.

html


EDIT: after looking at answer key argh I was so close gdi... I had the div tags right but I tried to paragraph align it and didn't have the pixel height/width. btw how would I go about finding those?

You can get the height and width by right clicking the image and view image info. You'll get the dimensions there. It's not necessary to have the height and width thing, but it's good for large images so that the page layout doesn't constantly shift as it loads the images which may take a longer time. Also, sorry if this might sound rude but could you explain to me how you arrived at <div class="float-right">? It's only used with CSS and it doesn't work without the CSS being declared and you said you found it on w3. Oh and use [html] tags in future, thanks :)

Quote:
Originally Posted by Fat mzenken View Post
I'm kind of rusty with HTML, but I'll give it a try.

HTML


yep you can like the alt tags empty, it doesn't matter as long as they're there! The <html> <head> <title> <body> tags are not needed for this practice though! Good job! :)

Quote:
Originally Posted by Fat Raseri View Post
...



I only started learning HTML a few days ago, and this is my first time trying to apply it. I want to help out with the site one day, but hopefully this can help me learn a bit first :)

<div class="float:right"><img src="/media/smog/16/trivia_porygon.png" width="251" height="350"/></div> it's style, not class lol! div style is used to style the things within the div tag, class doesn't. A space is normally put before the / in the image tag for standardization etc refer to above but not really important. And use [HTML] tags too!
__________________
Thanks for voting for The Smog Awards! ^_^
Member of the GP Team- VM for a check / stamp!
sandshrewz is offline   Reply With Quote