• How to make your html neater
    17 replies, posted
lets be fair, div's suck, so lets use h1 tags instead, instead of this ugly shit: <div class="some gay shit"> <h1>help</h1> </div> <div class="div sux"> <p>help</p> </div> use: <h1 "some gay shit"> <h1>help</h1> </h1> <h1 "h1 is so neat! > <h1>help</h1> </h1> hope someone uses this in their upcoming web project
I think proper indenting in common sense among most web developers. But after a taking high school web dev class I have ptsd from their horrible html.
example?
<h1 "some gay shit"> <h1>help</h1> </h1> <h1 "h1 is so neat! > <h1>help</h1> </h1>
That is disgusting. Sorry mate, not this time.
Indenting HTML just makes it harder for me to read for whatever reason. I think it's because I'm stupid.
Is it HTML only though?
What about this? <html> <body> <div> <?= "<p>Hello World!</p>" ?> </div> </body> </html> I mean it's proper indented, but on the same side it isn't? Or would you include whitespaces in the echo for indention?
I do it that way, it looks nicer. Also a browser should auto-indent things for you so no need to worry about it.
Alternatively, you can use a HTML pre-processor like Haml or Pug (formerly Jade), if that's what you're into. But generally I indent, and use HTML5 tags where possible to avoid div-hell
I'd probably annoy people because I do this for HTML tags that get long: <a href='blah' target='whatever' class='idk' /> Something about having it all on one line seems really awful to me.
Here's the preview on web browser: https://i.imgur.com/071xvEb.png
Aliased text? Are you on Windows XP?
This is how you must write your HTML pages in 2018. And yeah who needs these shitty <div> and <h1> tags when you have <P>? <?php $opentext = "<p>"; $closetext = "</p>"; $content = "hello everyone someone hire as backend or frontend developer please"; if ($opentext != "<p>") { echo = 'oops it is not working sorry'; } ?> <html> <title>master of web development of all times lives here</title> <body> <?php echo = ''.$opentext.''; echo = ''.$closetext.''; echo = ''.$content.''; ?> as you can see this is totally written on PHP so you will not regret if you will hire me : ) i know u need a professional developer for you site</body></html>
syntax error, unexpected '=' Sorry you failed the job interview
Someday you'll hire me anyway i promise.
Id also like to do that, but whenever I do it it just annoys me, for some reason
I wrap my code in <!-- --> makes it way faster
Sorry, you need to Log In to post a reply to this thread.