Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Website Design
Templates
Free | Simple | HTML Web Template
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Heaplink" data-source="post: 233587" data-attributes="member: 8966"><p>Ok, for a first attempt it's okay. But just some things to keep in mind when you learn more HTML:</p><ul> <li data-xf-list-type="ul">Properly indent your code for readability.</li> <li data-xf-list-type="ul">Never (<strong>NEVER</strong>) use IDs in CSS (it's a slow selector). Use IDs for JavaScript only.</li> <li data-xf-list-type="ul">The <span style="font-family: 'Courier New'"><marquee></span> tag is deprecated. It's a non-standard tag and should never be used. Use JavaScript instead.</li> <li data-xf-list-type="ul">Use <span style="font-family: 'Courier New'"><p></span> tags for paragraphs. Always.</li> <li data-xf-list-type="ul">If you're going to use JavaScript. <strong>Always </strong>include it in the body tag right above the ending <span style="font-family: 'Courier New'"></body></span> tag</li> <li data-xf-list-type="ul">IDs are <strong>unique </strong>to one element, and one element only. (See line 17-19 in index.html)</li> <li data-xf-list-type="ul">I know it's easier to set the radius by each side. But keep it simpler by using only the <span style="font-family: 'Courier New'">border-radius: top-left top-right bottom-right bottom-left</span> <strong>- </strong>this counts for all properties.</li> </ul><p>These are some aspects to look at when you get more into HTML. It's<strong> very important</strong> to follow these guidelines.</p><p></p><p>EDIT:</p><p></p><p>If you're using CSS3 make sure to use prefix' too. For instance if you want a <span style="font-family: 'Courier New'">border-radius</span> - we need to support other browsers too:</p><p></p><p>[CODE]border-radius: 4px; /* WebKit (Chrome, Safari, Opera) */</p><p>-ms-border-radius: 4px; /* Presto (IE 7+) */</p><p>-o-border-radius: 4px; /* Opera */</p><p>-moz-border-radius: 4px; /* Mozilla Firefox */[/CODE]</p><p></p><p>This is needed for mostly all CSS3 properties (excl. <span style="font-family: 'Courier New'">text-shadow</span> and some others)</p></blockquote><p></p>
[QUOTE="Heaplink, post: 233587, member: 8966"] Ok, for a first attempt it's okay. But just some things to keep in mind when you learn more HTML: [LIST] [*]Properly indent your code for readability. [*]Never ([B]NEVER[/B]) use IDs in CSS (it's a slow selector). Use IDs for JavaScript only. [*]The [FONT=Courier New]<marquee>[/FONT] tag is deprecated. It's a non-standard tag and should never be used. Use JavaScript instead. [*]Use [FONT=Courier New]<p>[/FONT] tags for paragraphs. Always. [*]If you're going to use JavaScript. [B]Always [/B]include it in the body tag right above the ending [FONT=Courier New]</body>[/FONT] tag [*]IDs are [B]unique [/B]to one element, and one element only. (See line 17-19 in index.html) [*]I know it's easier to set the radius by each side. But keep it simpler by using only the [FONT=Courier New]border-radius: top-left top-right bottom-right bottom-left[/FONT] [B]- [/B]this counts for all properties. [/LIST] These are some aspects to look at when you get more into HTML. It's[B] very important[/B] to follow these guidelines. EDIT: If you're using CSS3 make sure to use prefix' too. For instance if you want a [FONT=Courier New]border-radius[/FONT] - we need to support other browsers too: [CODE]border-radius: 4px; /* WebKit (Chrome, Safari, Opera) */ -ms-border-radius: 4px; /* Presto (IE 7+) */ -o-border-radius: 4px; /* Opera */ -moz-border-radius: 4px; /* Mozilla Firefox */[/CODE] This is needed for mostly all CSS3 properties (excl. [FONT=Courier New]text-shadow[/FONT] and some others) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Website Design
Templates
Free | Simple | HTML Web Template
Top