Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 21, 2021 04:12 am GMT

What do you think about strongly-annotated HTML?

I want to know what you all think about strongly-annotated HTML?
Let me know!




What is strongly-annotated HTML?


Strongly-annotated HTML is where you don't leave any optional attributes unset, even if they have a default value.
E.g.

<!DOCTYPE html><html lang="en-US" dir="ltr">  <head>    <title>Hello!</title>    <style language="css" type="text/css">      /* ... */    </style>    <link href="./icon.png" type="image/png" rel="icon"/>    <link language="css" href="./_.css" type="text/css" rel="stylesheet"/>  </head>  <body>    <p>Hello World!</p>    <img type="image/png" alt="An image of Katty." src="./katty.png"/>  </body></html>

An example of non-annotated HTML:

<!DOCTYPE html><html lang="en">  <head>    <title>Hello!</title>    <style>      /* ... */    </style>    <link href="./icon.png" rel="icon"/>    <link href="./_.css" rel="stylesheet"/>  </head>  <body>    <p>Hello World!</p>    <img alt="An image of Katty." src="./katty.png"/>  </body></html>

Original Link: https://dev.to/baenencalin/what-do-you-think-about-strongly-annotated-html-94o

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To